Extracting amino acid positions from a fasta sequence
0
0
Entering edit mode
8 months ago
akang ▴ 90

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

fasta python • 324 views
1
Entering edit mode

I think, the position should be set according to the reference. Thank you.

1
Entering edit mode

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.

0
Entering edit mode