construct from filename, optionally creating index if it does not exist throws Exception (TODO: remove) if file DNE, or if index DNE unless create->true
Fetch sequence in region by assoc array-style lookup: string sequence = fafile.fetchSequence("chr2:20123-30456")
Fetch sequence in region by multidimensional slicing: string sequence = fafile.fetchSequence("chr2", 20123, 30456)
Test whether the FASTA file/index contains string seqname
Fetch sequence in region by assoc array-style lookup: string sequence = fafile["chr2:20123-30456"]
Fetch sequence in region by multidimensional slicing: string sequence = fafile["chr2", 20123 .. 30456]
Return sequence length, -1 if not present
Return the name of the i'th sequence
Enable BGZF cacheing (size: bytes)
Enable multithreaded decompression of this FA/FQ Reading fn body of bgzf_mt, this actually ADDS threads (rather than setting) but we'll retain name for consistency with setCacheSize NB: IN A REAL-WORLD TEST (swiftover) CALLING setThreads(1) doubled runtime(???)
Return the number of sequences in the FASTA file/index
FASTA file with .fai or .gzi index
Reads existing FASTA file, optionally creating FASTA index if one does not exist.
Convenient member fns to get no. of sequences, get sequence names and lengths, test for membership, and rapidly fetch sequence at offset.