comparative-genomics-project/workflow/scripts/mcl_to_tsv.awk

17 lines
291 B
Awk
Raw Permalink Normal View History

2024-10-28 10:46:05 +01:00
#!/usr/bin/env -S awk -f
# Convert mcl output into tsv output
# with two columns 'gene id, family identifier'
BEGIN {
family_identifier=0
OFS="\t"
}
{
family_identifier++
split($0, gene_list, " ")
for (gene in gene_list) {
print gene, family_identifier
}
}