Entering edit mode
3.8 years ago
akang
▴
110
I need a suggestion regarding extracting positions from a nucleotide fasta file.
I have a fasta file like below. I am aligning the file ,then converting the sequences into amino acid sequence and finally extracting specific amino acids (say position 1,3,4) from the amino acid data. But since their is an insertion in one sequences it messes up the positions in others. So when I say aa at position 2 for abc is X, cvb is X and bnh is T. will that be correct?
fasta
> abc
atgcatgcgggcctttt
> cvb
atgcatgcgggcctttt
> bnh
atgCCcatgcgggcctttt
aligned
> abc
atg--catgcgggcctttt
> cvb
atg--catgcgggcctttt
> bnh
atgCCcatgcgggcctttt
I think, the position should be set according to the reference. Thank you.
Are you sure aligning before translating makes sense?
If you have insertions and substitutions, you should translate these first. If this leads to a frameshift for example, the result would be a radically different protein.
Your question is not clear