[Biopython] Using the Bio.SeqUtils.ProtParam module

Andrew Maher amaher at fas.harvard.edu
Fri Jul 23 11:49:06 EDT 2010


Thanks a lot!

Also, I've noticed that when using this module to get an isoelectric point,
x.pi() does not work, but x.isoelectric_point() does. Perhaps someone should
note that somewhere.

-Andrew

On Fri, Jul 23, 2010 at 11:39 AM, Peter <biopython at maubp.freeserve.co.uk>wrote:

> 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