Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bbremer opened this issue Mar 28, 2023 · 0 comments
Open

Comments

@bbremer
Copy link

bbremer commented Mar 28, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant