Skip to content

Potential bug: len([<filter object at 0x1051e2bc0>]) always equals 1. #3

@bbremer

Description

@bbremer

melt/melting.py

Line 127 in 3152034

fgc = len([filter(lambda x: x == 'G' or x == 'C', s)]) / float(len(s))

Is there an issue with this line? Unless I'm misunderstanding, the square brackets make a new list containing a single filter object. This will make the "GC content" 1/len(seq).

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