1samtools-fqidx(1)            Bioinformatics tools            samtools-fqidx(1)
2
3
4

NAME

6       samtools fqidx - Indexes or queries regions from a fastq file
7

SYNOPSIS

9       samtools fqidx ref.fastq [region1 [...]]
10
11

DESCRIPTION

13       Index  reference  sequence  in  the FASTQ format or extract subsequence
14       from indexed reference sequence. If no region is specified, fqidx  will
15       index  the  file and create <ref.fastq>.fai on the disk. If regions are
16       specified, the subsequences will be retrieved and printed to stdout  in
17       the FASTQ format.
18
19       The input file can be compressed in the BGZF format.
20
21       The  sequences  in  the input file should all have different names.  If
22       they do not, indexing will emit a warning about duplicate sequences and
23       retrieval  will  only produce subsequences from the first sequence with
24       the duplicated name.
25
26       samtools fqidx should only be used on fastq files with a  small  number
27       of  entries.   Trying  to use it on a file containing millions of short
28       sequencing reads will produce an index that is almost  as  big  as  the
29       original file, and searches using the index will be very slow and use a
30       lot of memory.
31
32

OPTIONS

34       -o, --output FILE
35               Write FASTQ to file rather than to stdout.
36
37       -n, --length INT
38               Length of FASTQ sequence line.  [60]
39
40       -c, --continue
41               Continue working if a non-existent region is requested.
42
43       -r, --region-file FILE
44               Read regions from a file. Format is chr:from-to, one per line.
45
46       -i, --reverse-complement
47               Output the sequence as the reverse complement.  When  this  op‐
48               tion is used, “/rc” will be appended to the sequence names.  To
49               turn this off or change the string appended,  use  the  --mark-
50               strand option.
51
52       --mark-strand TYPE
53               Append strand indicator to sequence name.  TYPE can be one of:
54
55               rc     Append  '/rc' when writing the reverse complement.  This
56                      is the default.
57
58               no     Do not append anything.
59
60               sign   Append '(+)' for forward strand  or  '(-)'  for  reverse
61                      complement.   This  matches the output of “bedtools get‐
62                      fasta -s”.
63
64               custom,<pos>,<neg>
65                      Append string <pos> to names when  writing  the  forward
66                      strand  and <neg> when writing the reverse strand.  Spa‐
67                      ces are preserved, so it is possible to move the indica‐
68                      tor into the comment part of the description line by in‐
69                      cluding a leading space in the strings <pos> and <neg>.
70
71       --fai-idx FILE
72               Read/Write to specified index file.
73
74       --gzi-idx FILE
75               Read/Write to specified compressed file index  (used  with  .gz
76               files).
77
78       -h, --help
79               Print help message and exit.
80
81

AUTHOR

83       Written  by  Heng  Li, with modifications by Andrew Whitwham and Robert
84       Davies, all from the Sanger Institute.
85
86

SEE ALSO

88       samtools(1), samtools-faidx(1), samtools-fasta(1), samtools-fastq(1)
89
90       Samtools website: <http://www.htslib.org/>
91
92
93
94samtools-1.13                     7 July 2021                samtools-fqidx(1)
Impressum