-
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 #19 from TheJacksonLaboratory/ddradseq_handling (L…
…PWHR-9) Add process to enable ddradseq sequence data upstream processing
- Loading branch information
Showing
9 changed files
with
158 additions
and
44 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
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ LABEL Sam Widmayer <[email protected]> | |
|
||
RUN apt-get --allow-releaseinfo-change update \ | ||
&& apt-get install -y g++ \ | ||
&& apt-get install -y procps \ | ||
automake \ | ||
autoconf \ | ||
libpcre3-dev \ | ||
|
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,35 @@ | ||
process BWA_MEM_DDRADSEQ { | ||
tag "$sampleID" | ||
|
||
cpus 8 | ||
memory {60.GB * task.attempt} | ||
time {30.hour * task.attempt} | ||
errorStrategy 'retry' | ||
maxRetries 1 | ||
|
||
container 'quay.io/biocontainers/bwakit:0.7.17.dev1--hdfd78af_1' | ||
|
||
//publishDir "${params.pubdir}/${ params.organize_by=='sample' ? sampleID : 'bwa_mem' }", pattern: "*.sam", mode:'copy', enabled: params.keep_intermediate | ||
|
||
input: | ||
tuple val(sampleID), file(fq_1), file(fq_2), file(read_groups) | ||
|
||
output: | ||
tuple val(sampleID), file("*.sam"), emit: sam | ||
|
||
script: | ||
log.info "----- BWA-MEM Alignment Running on: ${sampleID} -----" | ||
|
||
if (params.read_type == "SE"){ | ||
inputfq="${fq_1}" | ||
} | ||
if (params.read_type == "PE"){ | ||
inputfq="${fq_1} ${fq_2}" | ||
} | ||
|
||
""" | ||
rg=\$(cat $read_groups) | ||
bwa mem -R \${rg} \ | ||
-t $task.cpus ${params.mismatch_penalty} ${params.ref_fa_indices} $inputfq > ${sampleID}.sam | ||
""" | ||
} |
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,32 @@ | ||
process CLONE_FILTER { | ||
|
||
tag "$sampleID" | ||
|
||
cpus 1 | ||
memory 100.GB | ||
time '02:00:00' | ||
|
||
container 'docker://sjwidmay/stitch_nf:stacks' | ||
|
||
//publishDir "${params.sample_folder}/fastp", pattern:"*_fastp_report.html", mode:'copy' | ||
|
||
input: | ||
tuple val(sampleID), file(fq_reads) | ||
|
||
output: | ||
tuple val(sampleID), file("*1.1.fq.gz*"), file("*2.2.fq.gz"), emit: clone_filtered | ||
|
||
script: | ||
log.info "----- Stacks Clone Filtering: ${sampleID} -----" | ||
|
||
|
||
""" | ||
/stacks-2.64/clone_filter -1 ${fq_reads[0]} \\ | ||
-2 ${fq_reads[1]} \\ | ||
-i gzfastq \\ | ||
-y gzfastq \\ | ||
-D \\ | ||
--oligo_len_1 8 \\ | ||
--inline_null | ||
""" | ||
} |
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,23 @@ | ||
process FASTQC_DDRADSEQ { | ||
|
||
tag "$sampleID" | ||
|
||
cpus 1 | ||
memory 5.GB | ||
time '01:00:00' | ||
|
||
container 'docker://biocontainers/fastqc:v0.11.9_cv8' | ||
|
||
input: | ||
tuple val(sampleID), file(fq_1), file(fq_2) | ||
|
||
output: | ||
tuple file("*_fastqc.html"), file("*_fastqc.zip"), emit: to_multiqc | ||
|
||
script: | ||
log.info "----- FASTQC Running on Sample: ${sampleID} -----" | ||
|
||
""" | ||
fastqc ${fq_1} ${fq_2} | ||
""" | ||
} |
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