samtools-fqidx(1) | Bioinformatics tools | samtools-fqidx(1) |
samtools-fqidx - Indexes or queries regions from a fastq file
samtools fqidx ref.fastq [region1 [...]]
Index reference sequence in the FASTQ format or extract subsequence from indexed reference sequence. If no region is specified, fqidx will index the file and create <ref.fastq>.fai on the disk. If regions are specified, the subsequences will be retrieved and printed to stdout in the FASTQ format.
The input file can be compressed in the BGZF format.
The sequences in the input file should all have different names. If they do not, indexing will emit a warning about duplicate sequences and retrieval will only produce subsequences from the first sequence with the duplicated name.
samtools fqidx should only be used on fastq files with a small number of entries. Trying to use it on a file containing millions of short sequencing reads will produce an index that is almost as big as the original file, and searches using the index will be very slow and use a lot of memory.
Written by Heng Li, with modifications by Andrew Whitwham and Robert Davies, all from the Sanger Institute.
samtools(1), samtools-faidx(1), samtools-fasta(1), samtools-fastq(1)
Samtools website: <http://www.htslib.org/>
2 September 2022 | samtools-1.16.1 |