Best way to define rule ressources, and interactions with cluster submission or local submission
0
0
Entering edit mode
6.2 years ago

Hi.

I was looking for a way to access cluster_config dictionnary to define specific ressources in some particular rules (like -Xmx memory for java programs).

I understood that it's not ideally, because the Snakefile became dependant of the execution mode on a cluster.

I tried to understand the resources options and rule's tag. But it's not clear for me how it works and how it interact with --drmaa syntaxe or with --cluster

For me, ideally, I would like to define a resources.yaml that can be accessible in the Snakefile and in the submit command sheme (something like : " qsub -pe parallel_smp {resources.cpu} -l mem={resources.mem}" )

Is that possible ? If not, what is the solution : - define resources in rule AND in cluster-config if executing Snakefile on a cluster ?

I don't see any other solutions for now ....but I believe that we can do better, no ?

Any help would be much appreciate.

Best regards

Maria

snakemake • 700 views
ADD COMMENT

Login before adding your answer.

Traffic: 2799 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6