class

HTS::Bcf

Inherits Enumerable < HTS::Hts < Reference < Object

Constructors

new(file_name : Path | String, mode = "r", index = "", threads : Int32 = 0, build_index = false, *, subset : Enumerable(String) | Nil = nil)
Source

Class methods

build_index(file_name : Path | String, index_name = "", min_shift = 14, threads = 0, verbose = true)

Build index for an on-disk file (callable even after close)

Source
open(file_name : Path | String, mode = "r", index = "", threads = 0, build_index = false, *, subset : Enumerable(String) | Nil = nil)
Source
open(file_name : Path | String, mode = "r", index = "", threads = 0, build_index = false, *, subset : Enumerable(String) | Nil = nil, &)
Source

Instance methods

<<(var)
Source
build_index(index_name = "", min_shift = 14, verbose = true)

Instance helper delegating to the class method.

Source
chrom
Source
close
Source
each(copy = false, &)

Must yield this collection's elements to the block.

Source
each_alt
Source
each_chrom

Do not add file-level INFO/FORMAT helpers here because these fields depend on each record and its samples. Use Bcf::Record instead.

Source
each_endpos
Source
each_filter
Source
each_id
Source
each_pos
Source
each_qual
Source
each_ref
Source
endpos
Source
file_name
Source
filter
Source
finalize
Source
header
Source
header=(header)
Source
index_loaded?
Source
load_index(index_name = "")
Source
mode
Source
nsamples
Source
nthreads
Source
qual
Source
query(tid : Int32, beg : Int64, end_pos : Int64, copy = false, &)

Numeric (tid) query: coordinates are 0-based half-open [beg, end)

Source
query(chrom : String, beg : Int64, end_pos : Int64, copy = false, &)

Chromosome name + range using SAM-style 1-based inclusive coordinates.

Source
query(region : String, copy = false, &)
Source
query(regions : Array(String), copy = false, &)

Multi-region query. This currently uses sequential single-region iterators. It preserves the same copy semantics as the single-region query. Records overlapping multiple regions may be yielded more than once; regions are not merged or deduplicated.

Source
samples
Source
to_a

Ensure collected records are independent and safe after iteration ends.

Source
write(var)
Source
write_header(header)
Source

Nested types