-
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.
* add gridss nf module * add preprocess gridss BAM process and update I/O/Script section * add gridss version and docker * add preprocess_BAM_GRIDSS * add gridss_reference_diir param to template.config * input preprocess channels; set variables; publish formatted filenames * add gridss2 channels, ref and process call * add gridss2 to algorithhms in template * update schema YAML * add gridss ref dir to schema * Update CHANGELOG.md * update metadata.yaml * add jvmheap memory arg to gridss * 4 CPUs and 10GB memory for gridss preprocessing * change gridss ref dir to ref FASTA * change gridss ref dir to ref FASTA * reconfigure gridss ref files variable * fix gridss ref file path * store intermediate file files in their process and store sample files in sample dirs * save logs tintask index dir * add F32, F72 and M64 configs * update memory in F32, F72 and M64 --------- Co-authored-by: Mootor <mmootor@ip-0A125937.rhxrlfvjyzbupc03cc22jkch3c.xx.internal.cloudapp.net>
- Loading branch information
1 parent
94daa7c
commit 253dd16
Showing
11 changed files
with
141 additions
and
13 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
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
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,8 +1,8 @@ | ||
--- | ||
category: "pipeline" | ||
description: "Nextflow pipeline to call somatic structural variants using DELLY and Manta" | ||
description: "Nextflow pipeline to call somatic structural variants using DELLY, Manta and GRIDSS2" | ||
maintainers: "Boutros Lab Infrastructure <[email protected]>" | ||
languages: ["Nextflow", "Docker"] | ||
dependencies: ["Java", "Nextflow", "Docker"] | ||
references: "https://uclahs.box.com/s/qfzr99sc8ntmfddn30ii62wx4273utoz" | ||
tools: ["Delly:v1.2.6", "Manta:v1.6.0", "BCFtools:v1.15.1", "PipeVal:v4.0.0-rc.2"] | ||
tools: ["Delly:v1.2.6", "Manta:v1.6.0", "GRIDSS2:v2.13.2", "BCFtools:v1.15.1", "PipeVal:v4.0.0-rc.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/usr/bin/env nextflow | ||
|
||
log.info """\ | ||
------------------------------------ | ||
G R I D S S 2 | ||
------------------------------------ | ||
Docker Images: | ||
- docker_image_gridss: ${params.docker_image_gridss} | ||
""" | ||
|
||
include { generate_standard_filename; sanitize_string } from '../external/pipeline-Nextflow-module/modules/common/generate_standardized_filename/main.nf' | ||
|
||
process preprocess_BAM_GRIDSS { | ||
container params.docker_image_gridss | ||
|
||
publishDir "${params.workflow_output_dir}/intermediate/${task.process.replace(':', '/')}", | ||
pattern: "${bam_name}.gridss.working/*", | ||
mode: "copy", | ||
saveAs: { | ||
"${output_filename}.gridss.working/${output_filename}.${sanitize_string(file(it).getName().replace("${bam_name}.", ""))}" | ||
} | ||
|
||
publishDir "${params.log_output_dir}/process-log", | ||
pattern: ".command.*", | ||
mode: "copy", | ||
saveAs: { "${task.process.replace(':', '/')}/${task.process}-${task.index}/log${file(it).getName()}" } | ||
|
||
input: | ||
tuple(val(sample_id), path(sample_bam), path(sample_index)) | ||
path(gridss_reference_fasta) | ||
path(gridss_reference_files) | ||
|
||
output: | ||
path "${bam_name}.gridss.working/*", emit: gridss_preprocess | ||
path ".command.*" | ||
|
||
script: | ||
gridss_mem = "${task.memory.toGiga()}g" | ||
gridss_jar = "/usr/local/share/gridss-${params.gridss_version}-1/gridss.jar" | ||
bam_name = file(sample_bam).getName() | ||
output_filename = generate_standard_filename( | ||
"GRIDSS2-${params.gridss_version}", | ||
params.dataset_id, | ||
sample_id, | ||
[:] | ||
) | ||
|
||
""" | ||
set -euo pipefail | ||
gridss \ | ||
-r ${gridss_reference_fasta} \ | ||
-j ${gridss_jar} \ | ||
-s preprocess \ | ||
-t ${task.cpus} \ | ||
--jvmheap ${gridss_mem} \ | ||
${sample_bam} | ||
""" | ||
} |