[Biopython] Using the Bio.SeqUtils.ProtParam module
Peter
biopython at maubp.freeserve.co.uk
Fri Jul 23 15:39:40 UTC 2010
On Fri, Jul 23, 2010 at 4:31 PM, Andrew Maher <amaher at fas.harvard.edu> wrote:
> Sorry, now I get this:
Maybe reading up on Python's import statement and name spaces will help.
You are close...
One approach is to import the module:
from Bio.SeqUtils import ProtParam
x = ProtParam.ProteinAnalysis('VPIQKVQDDTKTLIKTIVTRINDISHTQSVSS')
Or, you might prefer to import just the class - probably a good plan if you
only need one or two things from this module:
from Bio.SeqUtils.ProtParam import ProteinAnalysis
x = ProteinAnalysis('VPIQKVQDDTKTLIKTIVTRINDISHTQSVSS')
Peter
P.S.
You can even do this - but I don't think it is very clear:
import Bio.SeqUtils.ProtParam
x = Bio.SeqUtils.ProtParam.ProteinAnalysis('VPIQKVQDDTKTLIKTIVTRINDISHTQSVSS')
More information about the Biopython
mailing list