Aminoacid Composition Using Biopython
2
0
Entering edit mode
12.9 years ago
Mkl ▴ 50

How to find amino acid composition using Biopython?

biopython • 5.6k views
ADD COMMENT
1
Entering edit mode

As it seems to be a homework, what did you try so far ?

ADD REPLY
3
Entering edit mode
12.9 years ago
Neilfws 49k

Bio.SeqUtils.ProtParam contains a method, count_amino_acids to do this for you.

However, it does it by iterating over a dictionary, exactly as Chris said: source code.

ADD COMMENT
2
Entering edit mode
12.9 years ago
Chris ★ 1.6k

Since this is so elementary you won't need biopython for this. Create a dictionary which holds the 20 aminoacids as keys and iterate over each position in your sequence collection while raising the counter (the value of the specific aminoacid) by one when seeing the specific aa. Finally, divide each number by the aa total to get relative frequencies. Very easy.

ADD COMMENT
1
Entering edit mode

but supervisor wants biopython ;)!!

ADD REPLY
0
Entering edit mode

@Chris My supervisor told me to use biopython to find aminoacid composition.Do you know how to do it using Biopython?

ADD REPLY
0
Entering edit mode

As Chris mentionned, Biopython is not necessary here.

ADD REPLY

Login before adding your answer.

Traffic: 2798 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6