mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-22 23:19:54 +00:00
Fix back to nf-core modules version
This commit is contained in:
parent
c833d4fd9a
commit
f4abbe280a
3 changed files with 1 additions and 112 deletions
2
modules/nf-core/modules/samtools/bam2fq/main.nf
generated
2
modules/nf-core/modules/samtools/bam2fq/main.nf
generated
|
@ -45,7 +45,7 @@ process SAMTOOLS_BAM2FQ {
|
||||||
bam2fq \\
|
bam2fq \\
|
||||||
$args \\
|
$args \\
|
||||||
-@ $task.cpus \\
|
-@ $task.cpus \\
|
||||||
$inputbam > ${prefix}_interleaved.fq.gz
|
$inputbam >${prefix}_interleaved.fq.gz
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
process SAMTOOLS_BAM2FQ {
|
|
||||||
tag "$meta.id"
|
|
||||||
label 'process_low'
|
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::samtools=1.15.1" : null)
|
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
||||||
'https://depot.galaxyproject.org/singularity/samtools:1.15.1--h1170115_0' :
|
|
||||||
'quay.io/biocontainers/samtools:1.15.1--h1170115_0' }"
|
|
||||||
|
|
||||||
input:
|
|
||||||
tuple val(meta), path(inputbam)
|
|
||||||
val split
|
|
||||||
|
|
||||||
output:
|
|
||||||
tuple val(meta), path("*.fq.gz"), emit: reads
|
|
||||||
path "versions.yml" , emit: versions
|
|
||||||
|
|
||||||
when:
|
|
||||||
task.ext.when == null || task.ext.when
|
|
||||||
|
|
||||||
script:
|
|
||||||
def args = task.ext.args ?: ''
|
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
||||||
|
|
||||||
if (split){
|
|
||||||
"""
|
|
||||||
samtools \\
|
|
||||||
bam2fq \\
|
|
||||||
$args \\
|
|
||||||
-@ $task.cpus \\
|
|
||||||
-1 ${prefix}_1.fq.gz \\
|
|
||||||
-2 ${prefix}_2.fq.gz \\
|
|
||||||
-0 ${prefix}_other.fq.gz \\
|
|
||||||
-s ${prefix}_singleton.fq.gz \\
|
|
||||||
$inputbam
|
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
|
||||||
"${task.process}":
|
|
||||||
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
|
|
||||||
END_VERSIONS
|
|
||||||
"""
|
|
||||||
} else {
|
|
||||||
"""
|
|
||||||
samtools \\
|
|
||||||
bam2fq \\
|
|
||||||
$args \\
|
|
||||||
-@ $task.cpus \\
|
|
||||||
$inputbam >${prefix}_interleaved.fq.gz
|
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
|
||||||
"${task.process}":
|
|
||||||
samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//')
|
|
||||||
END_VERSIONS
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,55 +0,0 @@
|
||||||
name: samtools_bam2fq
|
|
||||||
description: |
|
|
||||||
The module uses bam2fq method from samtools to
|
|
||||||
convert a SAM, BAM or CRAM file to FASTQ format
|
|
||||||
keywords:
|
|
||||||
- bam2fq
|
|
||||||
- samtools
|
|
||||||
- fastq
|
|
||||||
tools:
|
|
||||||
- samtools:
|
|
||||||
description: Tools for dealing with SAM, BAM and CRAM files
|
|
||||||
homepage: None
|
|
||||||
documentation: http://www.htslib.org/doc/1.1/samtools.html
|
|
||||||
tool_dev_url: None
|
|
||||||
doi: ""
|
|
||||||
licence: ["MIT"]
|
|
||||||
|
|
||||||
input:
|
|
||||||
- meta:
|
|
||||||
type: map
|
|
||||||
description: |
|
|
||||||
Groovy Map containing sample information
|
|
||||||
e.g. [ id:'test', single_end:false ]
|
|
||||||
- inputbam:
|
|
||||||
type: file
|
|
||||||
description: BAM/CRAM/SAM file
|
|
||||||
pattern: "*.{bam,cram,sam}"
|
|
||||||
- split:
|
|
||||||
type: boolean
|
|
||||||
description: |
|
|
||||||
TRUE/FALSE value to indicate if reads should be separated into
|
|
||||||
/1, /2 and if present other, or singleton.
|
|
||||||
Note: choosing TRUE will generate 4 different files.
|
|
||||||
Choosing FALSE will produce a single file, which will be interleaved in case
|
|
||||||
the input contains paired reads.
|
|
||||||
|
|
||||||
output:
|
|
||||||
- meta:
|
|
||||||
type: map
|
|
||||||
description: |
|
|
||||||
Groovy Map containing sample information
|
|
||||||
e.g. [ id:'test', single_end:false ]
|
|
||||||
- versions:
|
|
||||||
type: file
|
|
||||||
description: File containing software versions
|
|
||||||
pattern: "versions.yml"
|
|
||||||
- reads:
|
|
||||||
type: file
|
|
||||||
description: |
|
|
||||||
FASTQ files, which will be either a group of 4 files (read_1, read_2, other and singleton)
|
|
||||||
or a single interleaved .fq.gz file if the user chooses not to split the reads.
|
|
||||||
pattern: "*.fq.gz"
|
|
||||||
|
|
||||||
authors:
|
|
||||||
- "@lescai"
|
|
Loading…
Reference in a new issue