×

nf-core/samtools/collatefastq @ 0.0.0-6c4ed3a

The module uses collate and then fastq methods from samtools to convert a SAM, BAM or CRAM file to FASTQ format

Latest version: 0.0.0-6c4ed3a
Total downloads: 4
Source: nf-core/modules

Summary

The module uses collate and then fastq methods from samtools to convert a SAM, BAM or CRAM file to FASTQ format

Get started

Add the following snippet to your workflow script to include this module.

include { SAMTOOLS_COLLATEFASTQ } from 'nf-core/samtools/collatefastq'

License

MIT License

Process
Name SAMTOOLS_COLLATEFASTQ
Input 3 channels
#1 tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

input file

BAM/CRAM/SAM file

*.{bam,cram,sam}
#2 tuple
meta2 map

Groovy Map containing reference information e.g. [ id:'genome' ]

fasta file

Reference genome file

*.{fa,fasta}
fai file

Reference genome index file

*.fai
interleave boolean

If true, the output is a single interleaved paired-end FASTQ If false, the output split paired-end FASTQ

Output 5 channels
#1 fastq tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

*_{1,2}.fq.gz file

R1 and R2 FASTQ files

*_{1,2}.fq.gz
#2 fastq_other tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

*_other.fq.gz file

FASTQ files with reads where the READ1 and READ2 FLAG bits set are either both set or both unset.

*_other.fq.gz
#3 fastq_singleton tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

*_singleton.fq.gz file

FASTQ files with singleton reads.

*_singleton.fq.gz
#4 fastq_interleaved tuple
meta map

Groovy Map containing sample information e.g. [ id:'test', single_end:false ]

*_interleaved.fq file

Interleaved paired end FASTQ files

*_interleaved.fq.gz
#5 versions_samtools tuple
${task.process} string

The name of the process

samtools string

The name of the tool

samtools version | sed '1!d;s/.* //' eval

The expression to obtain the version of the tool

Tool Description Homepage
samtools Tools for dealing with SAM, BAM and CRAM files http://www.htslib.org
Version 0.0.0-6c4ed3a
Commit ID 6c4ed3a220310b905a1fc9d04f05be2e0837142b
Release Date 23 Apr 2026 15:42:10 (UTC)
Download URL https://registry.nextflow.io/api/v1/modules/nf-core%2Fsamtools%2Fcollatefastq/0.0.0-6c4ed3a/download
OCI Store URL https://public.cr.seqera.io/v2/nextflow/plugin/modules/nf-core/samtools/collatefastq/blobs/sha256:4a47e4d117ce74cec3c531235b578ce396a8cded3c5db0786d840e27df96ee29
Size 3.4 KB
Checksum sha256:4a47e4d117ce74cec3c531235b578ce396a8cded3c5db0786d840e27df96ee29
Downloads 3
Version Date Status Downloads Size
0.0.0-6c4ed3a 23 Apr 2026 15:42:10 (UTC) 3