:::: MENU ::::
Posts tagged with: phylip

Convert a sequential phylip to fasta (with awk)

Of course, its not that difficult to open Mesquite or Seaview and do this there. But I don’t want to do it for more than two files. And I’m sure there are plenty of other more robust (perl/python) ways to do this. But this is pretty simple:

awk –posix ‘{if ($1 ~ /[:alpha:]/) print “>”$1″\n”$2}’ input_seqPhy > output_fasta