Bio Sequtils, Protparam Useage Inquiry
1
1
Entering edit mode
13.6 years ago
Jesse ▴ 10

I'm trying to use the ProtParamData module, but am receiving: AttributeError: 'Seq' object has no attribute 'islower' in reference to this function of the class Protein Analysis

def __init__(self, ProtSequence):
        if ProtSequence.islower():
            self.sequence = Seq(ProtSequence.upper(), IUPAC.protein)
        else:
            self.sequence = Seq(ProtSequence, IUPAC.protein)

How can I use this module/bypass this error? Thanks

biopython • 3.3k views
ADD COMMENT
2
Entering edit mode

The ProteinAnalysis class takes a string as an argument, instead of a Seq object. If you post your usage, we may be able to offer additional suggestions.

ADD REPLY
0
Entering edit mode

Although it may make sense to allow for a Seq object as well...

ADD REPLY
0
Entering edit mode
12.8 years ago
Hamish ★ 3.3k

An example of the usage of the ProteinAnalysis class can be found in the documentation for the Bio.SeqUtils.ProtParam module: http://biopython.org/DIST/docs/api/Bio.SeqUtils.ProtParam-module.html

ADD COMMENT

Login before adding your answer.

Traffic: 1781 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