-
Notifications
You must be signed in to change notification settings - Fork 0
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 icgc-argo-workflows/update_stage_input
Update stage input
- Loading branch information
Showing
43 changed files
with
2,327 additions
and
237 deletions.
There are no files selected for viewing
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,4 +1,4 @@ | ||
sample,lane,fastq_1,fastq_2 | ||
TEST,C0HVY.2,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/C0HVY.2_r1.fq.gz,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/C0HVY.2_r2.fq.gz | ||
TEST,D0RE2.1,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RE2.1_r1.fq.gz,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RE2.1_r2.fq.gz | ||
TEST,D0RH0.2,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RH0.2_r1.fq.gz,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RH0.2_r2.fq.gz | ||
sample,lane,fastq_1,fastq_2,read_group_count,single_end | ||
TEST,C0HVY.2,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/C0HVY.2_r1.fq.gz,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/C0HVY.2_r2.fq.gz,3,False | ||
TEST,D0RE2.1,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RE2.1_r1.fq.gz,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RE2.1_r2.fq.gz,3,False | ||
TEST,D0RH0.2,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RH0.2_r1.fq.gz,https://raw.githubusercontent.com/icgc-argo-workflows/dna-seq-processing-wfs/main/tests/data/D0RH0.2_r2.fq.gz,3,False |
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
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
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,56 @@ | ||
process CHECKINPUT { | ||
tag "$samplesheet" | ||
label 'process_single' | ||
|
||
conda "conda-forge::python=3.8.3" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/python:3.8.3' : | ||
'quay.io/biocontainers/python:3.8.3' }" | ||
|
||
input: | ||
path samplesheet | ||
val workflow_name | ||
|
||
output: | ||
path 'samplesheet.valid.csv', emit: csv | ||
path "versions.yml", emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
""" | ||
case '$workflow_name' in | ||
'Pre Alignment QC') | ||
echo $workflow_name detected; | ||
prealnqc.py \\ | ||
$samplesheet \\ | ||
samplesheet.valid.csv | ||
;; | ||
'DNA Alignment QC') | ||
dnaalnqc.py \\ | ||
$samplesheet \\ | ||
samplesheet.valid.csv | ||
;; | ||
'DNA Alignment') | ||
dnaaln.py \\ | ||
$samplesheet \\ | ||
samplesheet.valid.csv | ||
;; | ||
'Germline Variant Call') | ||
germlinevar.py \\ | ||
$samplesheet \\ | ||
samplesheet.valid.csv | ||
;; | ||
*) | ||
echo -n "Unknown workflow" | ||
exit 1 | ||
;; | ||
esac | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
python: \$(python --version | sed 's/Python //g') | ||
END_VERSIONS | ||
""" | ||
} |
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,43 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/yaml-schema.json | ||
name: "checkinput" | ||
## TODO nf-core: Add a description of the module and list keywords | ||
description: write your description here | ||
keywords: | ||
- sort | ||
- example | ||
- genomics | ||
tools: | ||
- "checkinput": | ||
## TODO nf-core: Add a description and other details for the software below | ||
description: "" | ||
homepage: "" | ||
documentation: "" | ||
tool_dev_url: "" | ||
doi: "" | ||
licence: "" | ||
|
||
## TODO nf-core: Add a description of all of the variables used as input | ||
input: | ||
# | ||
## TODO nf-core: Delete / customise this example input | ||
- bam: | ||
type: file | ||
description: Sorted BAM/CRAM/SAM file | ||
pattern: "*.{bam,cram,sam}" | ||
|
||
## TODO nf-core: Add a description of all of the variables used as output | ||
output: | ||
# | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
## TODO nf-core: Delete / customise this example output | ||
- bam: | ||
type: file | ||
description: Sorted BAM/CRAM/SAM file | ||
pattern: "*.{bam,cram,sam}" | ||
|
||
authors: | ||
- "@edsu7" |
Oops, something went wrong.