-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from nf-core/motif-files
Simplify handling of motif files
- Loading branch information
Showing
22 changed files
with
474 additions
and
466 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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,23 +1,26 @@ | ||
process FILTER_MOTIFS { | ||
|
||
conda 'conda-forge::python==3.9.5' | ||
conda "conda-forge::pandas==1.5.2" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/python:3.9--1': | ||
'biocontainers/python:3.9--1' }" | ||
'https://depot.galaxyproject.org/singularity/pandas:1.5.2': | ||
'biocontainers/pandas:1.5.2' }" | ||
|
||
input: | ||
tuple val(meta), path(tfs_jaspar_ids) | ||
path jaspar_motifs | ||
tuple val(meta2), path(meme_motifs) | ||
|
||
output: | ||
tuple val(meta), path("sign_motifs/*.meme"), emit: motifs | ||
path "versions.yml", emit: versions | ||
tuple val(meta), path("motifs/*.meme"), emit: motifs | ||
path "versions.yml", emit: versions | ||
|
||
script: | ||
template "filter_motifs.py" | ||
|
||
stub: | ||
""" | ||
touch motifs.meme | ||
mkdir motifs | ||
touch motifs/MA0778.1.meme | ||
touch motifs/MA0938.3.meme | ||
touch motifs/MA1272.1.meme | ||
""" | ||
} |
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
modules/local/fimo/jaspar_mapping/templates/jaspar_mapping.py
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
process CONVERT_MOTIFS { | ||
tag "$meta.id" | ||
label "process_single" | ||
|
||
conda "bioconda:bioconductor-universalmotif==1.20.0--r43hf17093f_0" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/bioconductor-universalmotif:1.20.0--r43hf17093f_0': | ||
'biocontainers/bioconductor-universalmotif:1.20.0--r43hf17093f_0' }" | ||
|
||
input: | ||
tuple val(meta), path(in_file), val(in_type) | ||
val(out_type) | ||
|
||
output: | ||
tuple val(meta), path("${out_file}"), emit: converted | ||
path "versions.yml" , emit: versions | ||
|
||
script: | ||
out_file = "${meta.id}.converted.${out_type}" | ||
template "convert.R" | ||
} |
Oops, something went wrong.