Skip to content

ZeroDivisionError when computing molecular descriptors #1

@lorenzoFabbri

Description

@lorenzoFabbri

I'm trying to use PyBioMed to compute protein molecular descriptors. Everything works just fine except that for some sequences (like "RPDDEWY"), I encounter the following error:

ZeroDivisionError: integer division or modulo by zero.

Specifically, this happens when calling GetPAAC:

descriptors = Pyprotein.PyProtein(sequence)
descriptors.GetPAAC()

The last line of the Traceback points to _GetSequenceOrderCorrelationFactor but if I call just that function it works just fine. If I instead call either _GetPseudoAAC or _GetPseudoAAC1, I get the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions