Input format: pir
A FASTA like' format introduced by the National Biomedical Research Foundation (NBRF) for the Protein Information Resource (PIR) database, now part of UniProt.
Output format: phylip
An alignment format. Truncates names at 10 characters.
How to convert from pir to phylip ?
You can also convert between these formats by using command line tools.
On Windows install WSL, on
Mac
or Linux start
terminal
Install BioPython
Run following script:
Or you can use this site as online pir to phylip converter by selecting your formats &
file.
Sequence Converter Home page
from Bio import SeqIO
records = SeqIO.parse("THIS_IS_YOUR_INPUT_FILE.pir", "pir")
count = SeqIO.write(records, "THIS_IS_YOUR_OUTPUT_FILE.phylip", "phylip")
print("Converted %i records" % count)