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

Support Parallel computing #71

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

geertvandeweyer
Copy link

This PR includes:

  • Activation of parallel processing through snakemake scatter/gather
  • strip 'chr' prefix in contigs

For benchmarking, see : https://hub.docker.com/repository/docker/cmgantwerpen/cadd/general

@visze
Copy link
Collaborator

visze commented Sep 19, 2024

thanks @geertvandeweyer cfor the PR. I am aware of it just found no time yet to look deeper into it. Maybe you can give some more explanations what was the intention with the rule specific threding limits.
But personally I like that you start using resources in snakemake!

Copy link
Collaborator

@visze visze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like your effort on the ressources. I have to look depper into that. But it seems to be very good. But since there are more side changes it is difficult to me to merge the whole PR

@@ -14,6 +14,7 @@ where:
-q print basic information about snakemake run
-p print full information about the snakemake run
-d do not remove temporary directory for debug puroposes
-t specify location for temporary directory [default: /tmp/]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that too. But in tehory it can be controlled via the variable $TMPDIR

Using you code will change the default behaviour creating always a tmp folder under /Ttmp/ and not in $TMPDIR if set (or not specified via -d)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, that makes sense. you might default to $TMPDIR as well, as I actually wasn't aware of $TMPDIR :-)

# wildcard_constraints:
# file=".*(?<!\\.vcf)$"
#wildcard_constraints:
# basefile="[^/]+"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's some leftover i missed. It's commented in both version, so no impact. but it can be reverted

@geertvandeweyer
Copy link
Author

thanks @geertvandeweyer cfor the PR. I am aware of it just found no time yet to look deeper into it. Maybe you can give some more explanations what was the intention with the rule specific threding limits. But personally I like that you start using resources in snakemake!

Sorry for the late reply. The rule specific threading was setup rather empirically. Some threads used high memory, so there thatwas limit (hence the resource scaling); for others (I think vep), it was mainly disk I/O. So the rules I had max'd out my SSD setup. Any higher for those would bring I/O into massive wait states... I'm not saying it's a good for all set, but it might be worth adding options to tune the threading per step somehow ?

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

Successfully merging this pull request may close these issues.

2 participants