Skip to content

Commit

Permalink
Stub
Browse files Browse the repository at this point in the history
  • Loading branch information
BertGalle committed May 7, 2024
1 parent 8c6fc85 commit b00e4de
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
# For example: adding multiple test runs with different parameters
# Remember that you can parallelise this by using strategy.matrix
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results -stub
1 change: 1 addition & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ process {
'--merged',
'--exclude_predicted',
'--fields "SYMBOL,Gene"',
'--transcript_filter "stable_id match ENST"'
].join(' ').trim()}
}
}
12 changes: 12 additions & 0 deletions modules/local/exomedepth/cnv_call/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,16 @@ process CNV_CALL {
R: \$(Rscript --version | sed 's/R scripting front-end //g')
END_VERSIONS
"""

stub:
def prefix = task.ext.prefix ?: "${sample}_CNVs_ExomeDepth_${meta.id}"
"""
touch ${prefix}.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
ExomeDepth: ${VERSION}
R: \$(Rscript --version | sed 's/R scripting front-end //g')
END_VERSIONS
"""
}
11 changes: 11 additions & 0 deletions modules/local/exomedepth/count/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,15 @@ process COUNT {
END_VERSIONS
"""

stub:
"""
touch ${meta.id}_${meta2.id}.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
ExomeDepth: ${VERSION}
R: \$(Rscript --version | sed 's/R scripting front-end //g')
END_VERSIONS
"""
}
5 changes: 5 additions & 0 deletions modules/local/exomedepth/merge_cnv/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ process CNV_MERGE {
tail +2 $chrx >> "${prefix}.txt"
"""

stub:
def prefix = task.ext.prefix ?: "${meta}_CNVs_ExomeDepth"
"""
touch ${prefix}.txt
"""
}
6 changes: 6 additions & 0 deletions modules/local/exomedepth/merge_count/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ process COUNT_MERGE {
fi
done
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}_${meta.chr}"
"""
touch ${prefix}.txt
"""
}
8 changes: 4 additions & 4 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,6 @@
"description": "Validation of parameters in lenient more.",
"hidden": true,
"help_text": "Allows string values that are parseable as numbers or booleans. For further information see [JSONSchema docs](https://github.com/everit-org/json-schema#lenient-mode)."
},
"yamlconfig": {
"type": "string",
"description": "YAML config file to use in BEDGOVCF module"
}
}
},
Expand All @@ -300,6 +296,10 @@
"description": "Options specific for the ExomeDepth execution",
"default": "",
"properties": {
"yamlconfig": {
"type": "string",
"description": "YAML config file to use in BEDGOVCF module"
},
"roi_auto": {
"type": "string",
"description": "Path to the default ROI (regions of interest) BED file of autosomal (merged) regions to be used for CNV analysis",
Expand Down

0 comments on commit b00e4de

Please sign in to comment.