mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
Adressing general comments on PR #134
This commit is contained in:
parent
5071bf5914
commit
fe412797dd
4 changed files with 17 additions and 12 deletions
|
@ -18,7 +18,7 @@ process BCFTOOLS_ISEC {
|
||||||
}
|
}
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path('vcfs/*')
|
tuple val(meta), path(vcfs), path(tbis)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("${prefix}"), emit: results
|
tuple val(meta), path("${prefix}"), emit: results
|
||||||
|
@ -31,7 +31,7 @@ process BCFTOOLS_ISEC {
|
||||||
bcftools isec \\
|
bcftools isec \\
|
||||||
$options.args \\
|
$options.args \\
|
||||||
-p $prefix \\
|
-p $prefix \\
|
||||||
*/*.vcf.gz
|
*.vcf.gz
|
||||||
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
|
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,21 +40,26 @@ input:
|
||||||
description: |
|
description: |
|
||||||
Groovy Map containing sample information
|
Groovy Map containing sample information
|
||||||
e.g. [ id:'test', single_end:false ]
|
e.g. [ id:'test', single_end:false ]
|
||||||
- vcf:
|
- vcfs:
|
||||||
type: files
|
type: files
|
||||||
description: |
|
description: |
|
||||||
List containing 2 or more vcf files and their respective index (tbi files)
|
List containing 2 or more vcf files
|
||||||
e.g. [ 'file1.vcf', 'file1.vcf.tbi', 'file2.vcf', 'file2.vcf.tbi' ]
|
e.g. [ 'file1.vcf', 'file2.vcf' ]
|
||||||
|
- tbis:
|
||||||
|
type: files
|
||||||
|
description: |
|
||||||
|
List containing the tbi index files corresponding to the vcfs input files
|
||||||
|
e.g. [ 'file1.vcf.tbi', 'file2.vcf.tbi' ]
|
||||||
output:
|
output:
|
||||||
- meta:
|
- meta:
|
||||||
type: map
|
type: map
|
||||||
description: |
|
description: |
|
||||||
Groovy Map containing sample information
|
Groovy Map containing sample information
|
||||||
e.g. [ id:'test', single_end:false ]
|
e.g. [ id:'test', single_end:false ]
|
||||||
- vcf:
|
- results:
|
||||||
type: file
|
type: directory
|
||||||
description: VCF filtered output file
|
description: Folder containing the set operations results perform on the vcf files
|
||||||
pattern: "*.{vcf}"
|
pattern: "${prefix}"
|
||||||
- version:
|
- version:
|
||||||
type: file
|
type: file
|
||||||
description: File containing software version
|
description: File containing software version
|
||||||
|
|
|
@ -49,7 +49,7 @@ output:
|
||||||
description: |
|
description: |
|
||||||
Groovy Map containing sample information
|
Groovy Map containing sample information
|
||||||
e.g. [ id:'test', single_end:false ]
|
e.g. [ id:'test', single_end:false ]
|
||||||
- txt:
|
- stats:
|
||||||
type: file
|
type: file
|
||||||
description: Text output file containing stats
|
description: Text output file containing stats
|
||||||
pattern: "*.{txt}"
|
pattern: "*.{txt}"
|
||||||
|
|
|
@ -18,7 +18,7 @@ process BCFTOOLS_TABIX {
|
||||||
}
|
}
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(gz_genome_position_file)
|
tuple val(meta), path(vcf)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("*.tbi"), emit: tbi
|
tuple val(meta), path("*.tbi"), emit: tbi
|
||||||
|
@ -27,7 +27,7 @@ process BCFTOOLS_TABIX {
|
||||||
script:
|
script:
|
||||||
def software = getSoftwareName(task.process)
|
def software = getSoftwareName(task.process)
|
||||||
"""
|
"""
|
||||||
tabix $options.args $gz_genome_position_file
|
tabix $options.args $vcf
|
||||||
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
|
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue