encyclopegia.org

FASTA format

In bioinformatics and biochemistry, the FASTA format is a text-based format for representing either nucleotide sequences or amino acid (protein) sequences, in which nucleotides or amino acids are represented using single-letter codes.[src] The format allows for sequence names and comments to precede the sequences.[src] It originated from the FASTA software package and has since become a near-universal standard in bioinformatics.[src] The simplicity of FASTA format makes it easy to manipulate and parse sequences using text-processing tools and scripting languages.[src]

In bioinformatics and biochemistry, the FASTA format is a text-based format for representing either nucleotide sequences or amino acid (protein) sequences, in which nucleotides or amino acids are represented using single-letter codes.[src] The format allows for sequence names and comments to precede the sequences.[src] It originated from the FASTA software package and has since become a near-universal standard in bioinformatics.[src] The simplicity of FASTA format makes it easy to manipulate and parse sequences using text-processing tools and scripting languages.[src] >MCHU - Calmodulin - Human, rabbit, bovine, rat, and chicken MADQLTEEQIAEFKEAFSLFDKDGDGTITTKELGTVMRSLGQNPTEAELQDMINEVDADGNGTID FPEFLTMMARKMKDTDSEEEIREAFRVFDKDGNGYISAAELRHVMTNLGEKLTDEEVDEMIREA DIDGDGQVNYEEFVQMMTAK* LCBO - Prolactin precursor - Bovine a sample sequence in FASTA format MDSKGSSQKGSRLLLLLVVSNLLLCQGVVSTPVCPNGPGNCQVSLRDLFDRAVMVSHYIHDLSS EMFNEFDKRYAQGKGFITMALNSCHTSSLPTPEDKEQAQQTHHEVLMSLILGLLRSWNDPLYHL VTEVRGMKGAPDAILSRAIEIEEENKRLLEGMEMIFGQVIPGAKETEPYPVWSGLPSLQTKDED ARYSAFYNLLHCLRRDSSKIDTYLKLLNCRIIYNNNC* >MCHU - Calmodulin - Human, rabbit, bovine, rat, and chicken MADQLTEEQIAEFKEAFSLFDKDGDGTITTKELGTVMRSLGQNPTEAELQDMINEVDADGNGTID FPEFLTMMARKMKDTDSEEEIREAFRVFDKDGNGYISAAELRHVMTNLGEKLTDEEVDEMIREA DIDGDGQVNYEEFVQMMTAK* >gi|5524211|gb|AAD44166.1| cytochrome b [Elephas maximus maximus] LCLYTHIGRNIYYGSYLYSETWNTGIMLLLITMATAFMGYVLPWGQMSFWGATVITNLFSAIPYIGTNLV EWIWGGFSVDKATLNRFFAFHFILPFTMVALAGVHLTFLHETGSNNPLGLTSDSDKIPFHPYYTIKDFLG LLILILLLLLLALLSPDMLGDPDNHMPADPLNTPLHIKPEWYFLFAYAILRSVPNKLGGVLALFLSIVIL GLMPFLHTSKHRSMMLRPLSQALFWTLTMDLLTLTWIGSQPVEYPYTIIGQMASILYFSIILAFLPIAGX IENY A multiple-sequence FASTA format, or multi-FASTA format, would be obtained by concatenating several single-sequence FASTA files in one file.[src] This does not imply a contradiction with the format as only the first line in a FASTA file may start with a ";" or ">", forcing all subsequent sequences to start with a ">" in order to be taken as separate sequences (and further forcing the exclusive reservation of ">" for the sequence definition line).[src] Thus, the examples above would be a multi-FASTA file if taken together.[src] Modern bioinformatics programs that rely on the FASTA format expect the sequence headers to be preceded by ">".[src] The sequence is generally represented as "interleaved", or on multiple lines as in the above example, but may also be "sequential", or on a single line.[src] Running different bioinformatics programs may require conversions between "sequential" and "interleaved" FASTA formats.[src] ==Description line== The description line (defline) or header/identifier line, which begins with ">", gives a name and/or a unique identifier for the sequence, and may also contain additional information.[src] In a deprecated practice, the header line sometimes contained more than one header, separated by a ^A (Control-A) character.[src] In the original Pearson FASTA format, one or more comments, distinguished by a semi-colon at the beginning of the line, may occur after the header.[src] Some databases and bioinformatics applications do not recognize these comments and follow the NCBI FASTA specification.[src] An example of a multiple sequence FASTA file follows: >SEQUENCE_1 MTEITAAMVKELRESTGAGMMDCKNALSETNGDFDKAVQLLREKGLGKAAKKADRLAAEG LVSVKVSDDFTIAAMRPSYLSYEDLDMTFVENEYKALVAELEKENEERRRLKDPNKPEHK IPQFASRKQLSDAILKEAEEKIKEELKAQGKPEKIWDNIIPGKMNSFIADNSQLDSKLTL MGQFYVMDDKKTVEQVIAEKEKEFGGKIKIVEFICFEVGEGLEKKTEDFAAEVAAQL >SEQUENCE_2 SATVSEINSETDFVAKNDQFIALTKDTTAHIQSNSLQSVEELHSSTINGVKFEEYLKSQI ATIGENLVVRRFATLKAGANGVVNGYIHTNGRVGVVIAAACDSAEVASKSRDLLRQICMH ==Sequence representation== Following the header line, the actual sequence is represented.[src] Sequences may be protein sequences or nucleic acid sequences, and they can contain gaps or alignment characters (see sequence alignment).[src] Sequences are expected to be represented in the standard IUB/IUPAC amino acid and nucleic acid codes, with these exceptions: lower-case letters are accepted and are mapped into upper-case; a single hyphen or dash can be used to represent a gap character; and in amino acid sequences, U and * are acceptable letters (see below).[src] Numerical digits are not allowed but are used in some databases to indicate the position in the sequence.[src] The nucleic acid codes supported are: The amino acid codes supported (22 amino acids and 3 special codes) are: ==FASTA file== ===Filename extension=== There is no standard filename extension for a text file containing FASTA formatted sequences.[src] The table below shows each extension and its respective meaning.[src] == Extensions== FASTQ format is a form of FASTA format extended to indicate information related to sequencing.[src] It is created by the Sanger Centre in Cambridge.[src] A2M/A3M are a family of FASTA-derived formats used for sequence alignments.[src] In A2M/A3M sequences, lowercase characters are taken to mean insertions, which are then indicated in the other sequences as the dot (" ") character.[src] The dots can be discarded for compactness without loss of information.[src] As with typical FASTA files used in alignments, the gap (" ") is taken to mean exactly one position.[src] A3M is similar to A2M, with the added rule that gaps aligned to insertions can too be discarded.[src] ==Working with FASTA files== A plethora of user-friendly scripts are available from the community to perform FASTA file manipulations.[src] Online toolboxes, such as FaBox or the FASTX-Toolkit within Galaxy servers, are also available.[src] These can be used to segregate sequence headers/identifiers, rename them, shorten them, or extract sequences of interest from large FASTA files based on a list of wanted identifiers (among other available functions).[src] A tree-based approach to sorting multi-FASTA files (TREE2FASTA ) also exists based on the coloring and/or annotation of sequences of interest in the FigTree viewer.[src] Additionally, the Bioconductor Biostrings package can be used to read and manipulate FASTA files in R.[src] Several online format converters exist to rapidly reformat multi-FASTA files to different formats (e.g.[src] NEXUS, PHYLIP) for use with different phylogenetic programs, such as the converter available on phylogeny.fr.[src] ==See also== The FASTQ format, used to represent DNA sequencer reads along with quality scores.[src] The SAM and CRAM formats, used to represent genome sequencer reads that have been aligned to genome sequences.[src] The GVF format (Genome Variation Format), an extension based on the GFF3 format.[src]

41 sentences · 41 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"FASTA format." encyclopegia.org, 2026, https://encyclopegia.org/wiki/fasta-format. Accessed 25 November 2026.

Chicago

"FASTA format." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/fasta-format.

APA

encyclopegia.org. (2026). FASTA format. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/fasta-format

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Knowledge Interchange Format

stub · references available

Rich Text Format

stub · references available

data format

stub · references available

Microsoft Document Imaging Format

stub · references available

Common Object File Format

stub · references available

Hierarchical Data Format

stub · references available

FASTA

stub · references available

format string attack

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1361618063 · 0.5 · snapshot enwiki-001361618063

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.