×

nf-core/samtools/faidx @ 0.0.0-0c7146d

Index FASTA file, and optionally generate a file of chromosome sizes

Latest version: 0.0.0-6c4ed3a
Total downloads: 9
Source: nf-core/modules
Maintainers: @maxulysse @phue @matthdsm

Summary

Index FASTA file, and optionally generate a file of chromosome sizes

Get started

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

include { SAMTOOLS_FAIDX } from 'nf-core/samtools/faidx'

License

MIT License

Process
Name SAMTOOLS_FAIDX
Input 2 channels
#1 tuple
meta map

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

fasta file

FASTA file

*.{fa,fasta}
fai file

FASTA index file

*.{fai}
get_sizes boolean

use cut to get the sizes of the index (true) or not (false)

Output 5 channels
#1 fa tuple
meta map

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

*.{fa,fasta} file

FASTA file

*.{fa}
#2 fai tuple
meta map

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

*.fai file

FASTA index file

*.{fai}
#3 gzi tuple
meta map

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

*.gzi file

Optional gzip index file for compressed inputs

*.gzi
#4 sizes tuple
meta map

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

*.sizes file

File containing chromosome lengths

*.{sizes}
#5 versions_samtools tuple
${task.process} string

The process the versions were collected from

samtools string

The tool name

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

The command used to generate the version of the tool

Tool Description Homepage
samtools SAMtools is a set of utilities for interacting with and post-processing short DNA sequence read alignments in the SAM, BAM and CRAM formats, written by Heng Li. These files are generated as output by short read aligners like BWA. http://www.htslib.org/
Version 0.0.0-0c7146d
Commit ID 6c4ed3a220310b905a1fc9d04f05be2e0837142b
Release Date 08 Apr 2026 19:33:41 (UTC)
Download URL https://registry.nextflow.io/api/v1/modules/nf-core%2Fsamtools%2Ffaidx/0.0.0-0c7146d/download
OCI Store URL https://public.cr.seqera.io/v2/nextflow/plugin/modules/nf-core/samtools/faidx/blobs/sha256:804f6efcac814b98b31537765f8cbdc6e0362154f1d707c8ade5edf515e6ba56
Size 3.3 KB
Checksum sha256:804f6efcac814b98b31537765f8cbdc6e0362154f1d707c8ade5edf515e6ba56
Downloads 5
Version Date Status Downloads Size
0.0.0-6c4ed3a 23 Apr 2026 15:42:19 (UTC) 4 3.3 KB
0.0.0-0c7146d 08 Apr 2026 19:33:41 (UTC) 5 3.3 KB