Hi - I have a fasta file with proteins that I wish to do some simple protein analysis on using the ProtParam package using the following:
from Bio import SeqIO
from Bio.SeqUtils import ProtParam
handle = open("examplefasta.fasta")
for record in SeqIO.parse(handle, "fasta"):
seq = str(record.seq)
X = ProtParam.ProteinAnalysis(seq)
print X.count_amino_acids()
print X.get_amino_acids_percent()
print X.molecular_weight()
print X.aromaticity()
print X.instability_index()
print X.flexibility()
print X.isoelectric_point()
print X.secondary_structure_fraction()
however I am getting the following error:
from: can't read /var/mail/Bio
from: can't read /var/mail/Bio.SeqUtils
./protanalysis.py: line 4: syntax error near unexpected token `('
./protanalysis.py: line 4: `handle = open("examplefasta.fasta") '
I don't really understand why the program is looking in /var/mail/ . Using Linux by the way. anyone else come across this problem?
Thanks,
Arron.
in general always include the full traceback not just a small part of it