Difference between revisions of "Valid fasta format"

From TheSeed
Jump to: navigation, search
 
Line 1: Line 1:
One of the most frequent errors with uploading the data is incorrect file format. We recommend fasta format for all the sequence data to be uploaded. In particular, please check the following things:
+
One of the most frequent errors with uploading the data is incorrect file format. We recommend fasta format for all the sequence data to be uploaded.  
 +
 
 +
In particular, please check the following things:
  
 
# There should be no spaces or tabs at the start or ends of the lines
 
# There should be no spaces or tabs at the start or ends of the lines

Revision as of 18:54, 4 October 2007

One of the most frequent errors with uploading the data is incorrect file format. We recommend fasta format for all the sequence data to be uploaded.

In particular, please check the following things:

  1. There should be no spaces or tabs at the start or ends of the lines
  2. The identifier line should begin with a greater than sign ">", and only one line is allowed
  3. Typically most bioinformatics applications use the first word after the > as the identifier for the sequence. Its nice (but not essential) if this is unique
  4. In the sequence lines (not header lines), spaces and numbers are removed.


Examples of valid fasta

   >sequenceid
   gatgcagcatgcagctagcagcgacggactac...
   >1 this is a sequence that i know something about
   gatgcagcatgcagctagcagcgacggactac...

Examples of invalid fasta

  >sequenceid
  This is a comment about the sequence
  gatgcagcatgcagctagcagcgacggactac...
  Pleae don't include comments in the sequence data
         >sequenceid
   gatgcagcatgcagctagcagcgacggactac...
   please don't have spaces before the > in the identifier


fasta is probably the most common sequence format because it is relatively compact, and very easy to parse.

There is more information about the fasta format at:

  1. Wikipedia
  2. NCBI