Extract the protein residues present in a PDB structure's atom coordinates as FASTA.

Maximum file size: 50 MB. The file is checked before conversion.

PDB structure (observed residues) → FASTA

  • This reads residues present in the structure's coordinates; missing residues will not appear.

Reading the protein sequence that is actually in the coordinates

Yes, this page converts PDB structure (observed residues) to FASTA. It builds the protein sequence from the residues that have atom coordinates: residues missing at the ends of a chain do not appear, and a gap inside a chain is filled with X placeholders. No sequence-type question is asked for this pair; the sequence is read as protein.

What carries over from the structure

Data in your file In the output Details
Residues with coordinates Kept Written as sequence letters. In the sample on this page, the output is one record of 10 residues.
Residues without coordinates Lost or replaced Missing residues at the chain ends do not appear. A gap in the residue numbering inside a chain is written as X placeholders, one per missing residue, so check the output for X.
Atom coordinates and other structure data Not stored FASTA holds sequence records only.

In the sample on this page, the output header line reads >2N0N:A. Keep the structure file for any structural work; the output is a sequence file only.

Observed or declared: choose the input that matches your question

A sequence from this route can differ from the protein the structure describes, because only residues with coordinates are read and gaps inside a chain become X. PDB structure (declared sequence) to FASTA reads the full sequence declared in the SEQRES records instead, which may differ from the observed coordinates. For an mmCIF file, mmCIF structure (observed residues) to FASTA reads observed residues in the same way.

Blocked outputs and the reverse direction

GenBank and EMBL output are blocked from this input: Biopython's PDB atom reader stores the structure's keywords and source details in a form those writers cannot write correctly. For GenBank or EMBL output, choose PDB structure (declared sequence) under Convert from instead. The reverse direction, FASTA to PDB structure (observed residues), is not available, because this site reads PDB structure (observed residues) as an input only and cannot write it.

If the file is refused

If the upload cannot be read, the page says only that it could not be read as PDB structure (observed residues) and asks you to check that it is a valid file; no cause is given. Uploads are limited to 50 MB.

Run it with Biopython

For batch work, you can use Biopython's SeqIO.convert function. This pair needs no molecule type argument.

from Bio import SeqIO

count = SeqIO.convert("input.pdb-atom", "pdb-atom",
                      "output.fasta", "fasta")
print("Converted %i records" % count)

Sample input file: PDB structure (observed residues)

Copy this example into a file, or download it, to try a PDB structure (observed residues) conversion.

Download sample (sample.pdb, 15.0 KB)

Samples are small illustrative files. Some come from the Biopython test suite (see the project's sample notes); they are not real study data.

Choose another conversion