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

counts_max_hits function in Scanner class unavailable in MOODS 1.9.4.1 #40

Open
rogadde opened this issue Aug 2, 2022 · 1 comment
Open
Assignees

Comments

@rogadde
Copy link

rogadde commented Aug 2, 2022

I'm using the MOODS Python module in a conda environment with Python 3.10.5, and the following lines generate an error.

scanner = MOODS.scan.Scanner(window_size)
scanner.set_motifs(matrices, bg, upper)
results = scanner.counts_max_hits(seq, LIMIT_MULT * target)

Error:
AttributeError: 'Scanner' object has no attribute 'counts_max_hits'. Did you mean: 'scan_max_hits'?

Why does the scan_max_hits function work while counts_max_hits does not, seeing as how they are both public member functions of the Scanner class?

@jhkorhonen
Copy link
Owner

Sorry for the late reply.

It's not explicitly exposed to python via the Swig interface definitions, so there isn't a corresponding python function. I think I left it out intentionally since it was mostly intended for internal usage only, though I could see a rationale for having a counting function available on python side too.

@jhkorhonen jhkorhonen self-assigned this Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants