Skip to content

Convert aligned fasta format to interleaved phylip format

License

Notifications You must be signed in to change notification settings

davidmnoriega/fast2phy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fast2phy

Convert aligned FASTA format to interleaved PHYLIP format

Pronounced fɑst tu faɪ like the Greek letter Φ. Alternatively, if you are like me and you pronounce phylip as philip.

Usage

fast2phy [options] FILE

Convert aligned FASTA format to interleaved PHYLIP format

positional arguments:
  FILE                  Aligned FASTA file to convert

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Specify output PHYLIP file
  --inplace             Flatten FASTA file in place

By default, fast2phy will take the specified aligned fasta file and output an interleaved phylip file. fast2phy uses pyfasta, from Brent Pedersen, to read in fasta files. pyfasta by default will create a flattened version of the fasta, effectively copying the fasta file. The flattening process removes all the headers and new lines from the sequences. This may not be desired if the original fasta file is very large. Using the --inplace option will keep the headers in place, keeping a valid fasta file, but will remove all the new line characters.

Read pyfasta's README for more details.

About

Convert aligned fasta format to interleaved phylip format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages