Input format: fasta
This refers to the input FASTA file format introduced for Bill Pearson's FASTA tool, where each record starts with a '>' line. Resulting sequences have a generic alphabet by default.
Output format: pdb-seqres
Reads a Protein Data Bank (PDB) file to determine the complete protein sequence as it appears in the header (no dependency on Bio.PDB and NumPy).
How to convert from fasta to pdb-seqres ?
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 fasta to pdb-seqres converter by selecting your formats &
file.
Sequence Converter Home page
from Bio import SeqIO
records = SeqIO.parse("THIS_IS_YOUR_INPUT_FILE.fasta", "fasta")
count = SeqIO.write(records, "THIS_IS_YOUR_OUTPUT_FILE.pdb-seqres", "pdb-seqres")
print("Converted %i records" % count)