Answers.Body: <p>While there's nothing stopping anyone from doing that with the FASTA format (after all, it's just a text file with '>' defining header lines), I don't know of any software that would support such a file structure. At best, it would interpret the nucleotide sequences as protein sequences (A/C/G/T are all valid 1-letter protein codes).</p>
  
  <p>A better question to ask would be "Does ultra-cool-bioinformatics-tool X support combined nucleotide and protein sequences in the same FASTA file?" In which case the answer would most likely be, "No."</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-21T05:19:43.590Z
Answers.Text: Yep. The FASTA format is very forgiving. Tools that consume data in FASTA format are...less forgiving.
Answers.UserDisplayName: Daniel Standage
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-21T08:09:52.170Z
Answers.Text: If, on the other hand, Your software is dumb and will try to read aa sequence as nucletides, "fun" things will ensue.
  Might I suggest using nexus format in this case?
Answers.UserDisplayName: Maciej
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-21T08:57:07.330Z
Answers.Text: The only obvious use case I can think of is simply using the fasta file to store all of your sequences and then extracting whichever you want to process from it. Any tool that can extract specific sequences from a multi fasta file shouldn't care whether those sequences are protein or nucleotide.
Answers.UserDisplayName: terdon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-25T04:15:15.437Z
Answers.Text: @terdon technically yes, but it's very bad practice. You literally wouldn't be able to hand this file over to someone else without additional metadata. There is no standard to specify whether the sequence is DNA or protein, and therefore no software package should be expected to be able to tell the two apart.
Answers.UserDisplayName: Unknown artist
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-21T04:28:55.450Z
Answers.LastActivityDate: 2017-09-21T04:28:55.450Z
Answers.UserDisplayName: gringer
Body: <p>Can FASTA files have nucleotide and protein sequences within them; or must they only have 1 type? For example, a FASTA file has 2 sequences. Can the first one encode amino acids while the second one encodes bases?</p>
  
  <p>Thank you</p>
  
Tags: <fasta>
Title: Can FASTA files have nucleotide and protein sequences within them; or must they only have 1 type?
ThreadText: # Can FASTA files have nucleotide and protein sequences within them; or must they only have 1 type?
  
  (Asked by: username_0 on 2017-09-21)
  
  Can FASTA files have nucleotide and protein sequences within them; or must they only have 1 type? For example, a FASTA file has 2 sequences. Can the first one encode amino acids while the second one encodes bases?
  
  Thank you
  
  **Tags:** fasta
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-09-21. Score: 9
  
  While there's nothing stopping anyone from doing that with the FASTA format (after all, it's just a text file with '>' defining header lines), I don't know of any software that would support such a file structure. At best, it would interpret the nucleotide sequences as protein sequences (A/C/G/T are all valid 1-letter protein codes).
  
  A better question to ask would be "Does ultra-cool-bioinformatics-tool X support combined nucleotide and protein sequences in the same FASTA file?" In which case the answer would most likely be, "No."
  
  > **Comments:**
  > **username_2**: Yep. The FASTA format is very forgiving. Tools that consume data in FASTA format are...less forgiving.  
  > **username_3**: If, on the other hand, Your software is dumb and will try to read aa sequence as nucletides, "fun" things will ensue. Might I suggest using nexus format in this case?  
  > **username_4**: The only obvious use case I can think of is simply using the fasta file to store all of your sequences and then extracting whichever you want to process from it. Any tool that can extract specific sequences from a multi fasta file shouldn't care whether those sequences are protein or nucleotide.  
  > **username_5**: @username_4 technically yes, but it's very bad practice. You literally wouldn't be able to hand this file over to someone else without additional metadata. There is no standard to specify whether the sequence is DNA or protein, and therefore no software package should be expected to be able to tell the two apart.  
  
  ---
  
  