-
Notifications
You must be signed in to change notification settings - Fork 27
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 #254 from UPHL-BioNGS/update-2021-11-15
Update 2021 11 15
- Loading branch information
Showing
15 changed files
with
226 additions
and
32 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
singularity.enabled = true | ||
singularity.autoMounts = true | ||
singularity.runOptions = "--no-home" |
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,42 @@ | ||
process heatcluster { | ||
tag "HeatCluster" | ||
publishDir params.outdir, mode: 'copy' | ||
container 'quay.io/uphl/heatcluster:0.4.12-2023-11-15' | ||
maxForks 10 | ||
//#UPHLICA errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'} | ||
//#UPHLICA pod annotation: 'scheduler.illumina.com/presetSize', value: 'standard-medium' | ||
//#UPHLICA memory 1.GB | ||
//#UPHLICA cpus 3 | ||
//#UPHLICA time '10m' | ||
|
||
when: | ||
params.heatcluster | ||
|
||
input: | ||
file(matrix) | ||
|
||
output: | ||
path "heatcluster/heatcluster*" , optional : true | ||
path "heatcluster/heatcluster_mqc.png", optional : true , emit: for_multiqc | ||
path "logs/${task.process}/${task.process}.${workflow.sessionId}.log", emit: log_files | ||
|
||
shell: | ||
''' | ||
mkdir -p heatcluster logs/!{task.process} | ||
log_file=logs/!{task.process}/!{task.process}.!{workflow.sessionId}.log | ||
# time stamp + capturing tool versions | ||
date > $log_file | ||
heatcluster.py -v >> $log_file | ||
echo "container : !{task.container}" >> $log_file | ||
echo "Nextflow command : " >> $log_file | ||
cat .command.sh >> $log_file | ||
heatcluster.py !{params.heatcluster_options} \ | ||
-i !{matrix} \ | ||
-o heatcluster/heatcluster \ | ||
| tee -a $log_file | ||
if [ -f "heatcluster/heatcluster.png" ] ; then cp heatcluster/heatcluster.png heatcluster/heatcluster_mqc.png ; fi | ||
''' | ||
} |
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,40 @@ | ||
process igv_reports { | ||
tag "${sample}" | ||
label "process_high" | ||
publishDir path: "${params.outdir}", mode: 'copy' | ||
container 'quay.io/biocontainers/igv-reports:1.9.1--pyh7cba7a3_0' | ||
|
||
//#UPHLICA maxForks 10 | ||
//#UPHLICA errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'} | ||
//#UPHLICA pod annotation: 'scheduler.illumina.com/presetSize', value: 'standard-xlarge' | ||
//#UPHLICA memory 60.GB | ||
//#UPHLICA cpus 14 | ||
//#UPHLICA time '45m' | ||
|
||
when: | ||
params.igv_reports | ||
|
||
input: | ||
tuple val(sample), file(bam), file(reference_genome), file(vcf) | ||
|
||
output: | ||
path "igv_reports/${sample}/igvjs_viewer.html" | ||
path "logs/${task.process}/${sample}.${workflow.sessionId}.log" | ||
|
||
shell: | ||
''' | ||
mkdir -p igv_reports/!{sample} logs/!{task.process} | ||
log=logs/!{task.process}/!{sample}.!{workflow.sessionId}.log | ||
# time stamp + capturing tool versions | ||
date > $log | ||
create_report -v >> $log | ||
create_report !{params.igv_reports_options} \ | ||
--fasta !{reference_genome} \ | ||
--tracks !{vcf} !{bam} \ | ||
--output igv_reports/!{sample}/igvjs_viewer.html \ | ||
!{vcf} \ | ||
| tee -a $log | ||
''' | ||
} |
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
Oops, something went wrong.