-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dysgu_updated #5817
dysgu_updated #5817
Changes from 62 commits
9638a8b
f00c005
293bf7a
881f4ad
cc70f48
3ad528f
f3523b7
41e0ca6
f701efd
769b1e3
5f527d9
fbd78fa
8cef393
e3415a5
b5e3ac9
55e4798
d10e6d2
d555e2f
779f7ab
30a67df
f9cd688
4ae8c45
ac16c87
1b0a9ec
c95ee98
2e9d59f
0510e9e
fc69f00
34597b1
e34f5fe
2572ace
e75fcf0
248d82c
af228ac
03d1335
9237a3f
e663a81
66bb27c
b9786b2
244018c
56950ae
ad8d9df
3e7277a
28fde1b
71a3d16
b525810
a244b1f
0d2865f
5630201
953dbef
cc5ba98
a02e2e4
9811989
3293199
789d7b5
00ca3f2
2982e42
7bf628f
a24fd75
a7941d5
615892a
7b3bbca
36617f6
037a0bb
8fa36e2
235f241
1e6f982
c140b53
e9effd3
0286369
338856c
793f370
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think you should delete this file |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json | ||
name: "dysgu" | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- defaults | ||
dependencies: | ||
- pip | ||
- pip: | ||
- dysgu==1.6.4 | ||
poddarharsh15 marked this conversation as resolved.
Show resolved
Hide resolved
|
famosab marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
process DYSGU { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "${moduleDir}/environment.yml" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'oras://community.wave.seqera.io/library/pip_dysgu:8b321eca2aa251f4' : | ||
'community.wave.seqera.io/library/pip_dysgu:8b321eca2aa251f4' }" | ||
famosab marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
input: | ||
tuple val(meta), path(input_bam), path(input_bam_index) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tool takes cram files too, given your test, so maybe call this something more generic? Can't recall off the top of my head what we typically use to mean bam/cram. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. checked main.nf of manta instead of
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change it and update in the meta accordingly |
||
tuple val(meta2), path(fasta), path(fai) | ||
|
||
output: | ||
tuple val(meta), path('*.vcf.gz') , emit: vcf | ||
tuple val(meta), path('*.vcf.gz.tbi') , emit: tbi | ||
path 'versions.yml' , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
poddarharsh15 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
def args2 = task.ext.args2 ?: '' | ||
def args3 = task.ext.args3 ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
|
||
""" | ||
|
||
dysgu run \\ | ||
-p ${task.cpus} \\ | ||
-x \\ | ||
$fasta \\ | ||
. \\ | ||
$input_bam \\ | ||
| bgzip ${args2} --threads ${task.cpus} --stdout > ${prefix}.vcf.gz | ||
tabix ${args3} ${prefix}.vcf.gz | ||
|
||
poddarharsh15 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
dysgu: \$(dysgu --version 2>&1) | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
|
||
""" | ||
echo "" | gzip > ${prefix}.vcf.gz | ||
poddarharsh15 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
touch ${prefix}.vcf.gz.tbi | ||
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
dysgu: \$(dysgu --version 2>&1) | ||
END_VERSIONS | ||
""" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json | ||
name: "dysgu" | ||
poddarharsh15 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
description: Dysgu calls structural variants (SVs) from mapped sequencing reads. It is designed for accurate and efficient detection of structural variations. | ||
keywords: | ||
- structural variants | ||
- sv | ||
- vcf | ||
tools: | ||
- dysgu: | ||
description: Structural variant caller for mapped sequencing data | ||
homepage: https://github.com/kcleal/dysgu | ||
documentation: https://github.com/kcleal/dysgu/blob/master/README.rst | ||
tool_dev_url: https://github.com/kcleal/dysgu | ||
doi: "10.1093/nar/gkac039" | ||
licence: ["GPL-3.0-or-later"] | ||
|
||
input: | ||
# Only when we have meta | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. `[ id:'sample1' ]` | ||
|
||
- input_bam: | ||
type: file | ||
description: Input BAM file | ||
pattern: "*.bam" | ||
- input_bam_index: | ||
type: file | ||
description: BAM index file | ||
pattern: "*.bai" | ||
- fasta: | ||
type: file | ||
description: Genome reference FASTA file | ||
pattern: "*.{fa,fasta}" | ||
- meta2: | ||
type: map | ||
description: | | ||
Groovy Map containing reference information | ||
e.g. [ id:'genome' ] | ||
- fai: | ||
type: file | ||
description: Genome reference FASTA index file | ||
pattern: "*.{fa.fai,fasta.fai}" | ||
|
||
output: | ||
#Only when we have meta | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'sample1' ] | ||
- vcf: | ||
type: file | ||
description: VCF file with identified structural variants | ||
pattern: "*.{vcf.gz}" | ||
- tbi: | ||
type: file | ||
description: The index of the BCF/VCF file | ||
pattern: "*.{vcf.gz.tbi}" | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
|
||
authors: | ||
- "@kcleal" | ||
- "@famosab" | ||
maintainers: | ||
- "@kcleal" |
famosab marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
nextflow_process { | ||
|
||
name "Test Process DYSGU" | ||
script "../main.nf" | ||
process "DYSGU" | ||
config "./nextflow.config" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "dysgu" | ||
|
||
|
||
test("human - bam") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.recalibrated.sorted.bam.bai', checkIfExists: true) | ||
] | ||
input[1] = [ [ id:'reference'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out.versions).match("bam") }, | ||
poddarharsh15 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ assert path(process.out.vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.2") } | ||
) | ||
} | ||
|
||
} | ||
|
||
|
||
test("human - cram") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/cram/test.paired_end.recalibrated.sorted.cram', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/cram/test.paired_end.recalibrated.sorted.cram.crai', checkIfExists: true) | ||
] | ||
input[1] = [ [ id:'reference'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out.versions).match("cram") }, | ||
poddarharsh15 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ assert path(process.out.vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.2") } | ||
) | ||
} | ||
|
||
} | ||
|
||
|
||
test("human - bam - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.recalibrated.sorted.bam', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.recalibrated.sorted.bam.bai', checkIfExists: true) | ||
] | ||
input[1] = [ [ id:'reference'], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/chr21/sequence/genome.fasta.fai', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this comment too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why this was happening I didn't delete that file maybe I made some mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I add it again manually?