-
Notifications
You must be signed in to change notification settings - Fork 946
update and add topics to snakemake module #9454
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f9048c5
update and add topics
maxulysse 56b1a27
Merge branch 'master' into snakemake
mashehu 2f83977
add new topics structure
mashehu 68ba677
add stub test and capture version in snapshot
mashehu ed249da
update to 9.14.0
mashehu fe8afa9
fix singularity be setting cache_dir
mashehu 2444177
fix stub
mashehu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ channels: | |
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - bioconda::snakemake=7.31.0 | ||
| - bioconda::snakemake=9.14.0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,56 +1,51 @@ | ||
| process SNAKEMAKE { | ||
| tag "$meta.id" | ||
| tag "${meta.id}" | ||
| label 'process_low' | ||
|
|
||
| // You will have to add all modules to this Conda definition and | ||
| // replace the container definition for one that suits your needs | ||
| conda "${moduleDir}/environment.yml" | ||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
| 'https://depot.galaxyproject.org/singularity/snakemake:7.31.0--hdfd78af_1' : | ||
| 'biocontainers/snakemake:7.31.0--hdfd78af_1' }" | ||
| container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container | ||
| ? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/b9/b91b2eddb4c4c0a5e17721d29764e59a50035b9fa9996eb9cb392829f2d7a533/data' | ||
| : 'community.wave.seqera.io/library/snakemake:9.14.0--dfee75b6201d25c6'}" | ||
|
|
||
| input: | ||
| tuple val(meta), path(inputs) | ||
| tuple val(meta2), path(snakefile) | ||
|
|
||
| output: | ||
| tuple val(meta), path("[!.snakemake|versions.yml]**") , emit: outputs , optional: true | ||
| tuple val(meta), path("[!.snakemake|versions.yml]**"), emit: outputs, optional: true | ||
| tuple val(meta), path(".snakemake", type: 'dir', hidden: true), emit: snakemake_dir | ||
| path "versions.yml" , emit: versions | ||
| tuple val("${task.process}"), val("snakemake"), eval('snakemake --version'), topic: versions, emit: versions_snakemake | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def cores = task.cpus ? "--cores ${task.cpus}" : "--cores all" | ||
| def args = task.ext.args ?: '' | ||
| def cores = task.cpus ? "--cores ${task.cpus}" : "--cores all" | ||
| """ | ||
| export XDG_CACHE_HOME=\$PWD/snakemake_cache | ||
| mkdir -p \$XDG_CACHE_HOME | ||
|
|
||
| snakemake \\ | ||
| $args \\ | ||
| $cores \\ | ||
| --snakefile $snakefile | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| snakemake: \$(snakemake --version) | ||
| END_VERSIONS | ||
| ${args} \\ | ||
| ${cores} \\ | ||
| --snakefile ${snakefile} | ||
| """ | ||
|
|
||
|
|
||
| stub: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| def cores = task.cpus ? "--cores ${task.cpus}" : "--cores all" | ||
| def args = task.ext.args ?: '' | ||
| def cores = task.cpus ? "--cores ${task.cpus}" : "--cores all" | ||
| """ | ||
| export XDG_CACHE_HOME=\$PWD/snakemake_cache | ||
| mkdir -p \$XDG_CACHE_HOME | ||
|
|
||
| snakemake \\ | ||
| $args \\ | ||
| --snakefile $snakefile \\ | ||
| $cores \\ | ||
| ${args} \\ | ||
| --snakefile ${snakefile} \\ | ||
| ${cores} \\ | ||
| --dry-run | ||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| snakemake: \$(snakemake --version) | ||
| END_VERSIONS | ||
| """ | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.