Set the index of r, and return r. If ind isa Union{Nothing, Index}, directly set the index to ind. If ind isa IO, parse the index from the FAI-formatted IO first. If ind isa AbstractString, treat it as the path to a FAI file to parse.
Set the index of r, and return r. If ind isa Union{Nothing, Index}, directly set the index to ind. If ind isa IO, parse the index from the FAI-formatted IO first. If ind isa AbstractString, treat it as the path to a FAI file to parse.
Index FASTA path at fnapath and write index to idxpath. If idxpath is not given, default to same name as fnapath * ".fai". If check, throw an error if the output file already exists
Seek Reader to the i'th record. The next iterated record with be the i'th record. i can be the identifier of a sequence, or the 1-based record number in the Index.
Extract a subsequence given by index range from the sequence named in a Reader with an index. Returns a String. If range is nothing (the default value), return the entire sequence.
FASTA index object, which allows constant-time seeking of FASTA files by name. The index is assumed to be in FAI format.
Notable methods:
Index(::Union{IO, AbstractString}): Read FAI file from IO or file at path
write(::IO, ::Index): Write index in FAI format
faidx(::IO)::Index: Index FASTA file
seekrecord(::Reader, ::AbstractString): Go to position of seq
extract(::Reader, ::AbstractString): Extract part of sequence
Note that the FAI specs are stricter than FASTX.jl's definition of FASTA, such that some valid FASTA records may not be indexable. See the specs at: http://www.htslib.org/doc/faidx.html
Index FASTA path at fnapath and write index to idxpath. If idxpath is not given, default to same name as fnapath * ".fai". If check, throw an error if the output file already exists
Seek Reader to the i'th record. The next iterated record with be the i'th record. i can be the identifier of a sequence, or the 1-based record number in the Index.
Extract a subsequence given by index range from the sequence named in a Reader with an index. Returns a String. If range is nothing (the default value), return the entire sequence.
FASTA index object, which allows constant-time seeking of FASTA files by name. The index is assumed to be in FAI format.
Notable methods:
Index(::Union{IO, AbstractString}): Read FAI file from IO or file at path
write(::IO, ::Index): Write index in FAI format
faidx(::IO)::Index: Index FASTA file
seekrecord(::Reader, ::AbstractString): Go to position of seq
extract(::Reader, ::AbstractString): Extract part of sequence
Note that the FAI specs are stricter than FASTX.jl's definition of FASTA, such that some valid FASTA records may not be indexable. See the specs at: http://www.htslib.org/doc/faidx.html