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)
SourceClass 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)
open(file_name : Path | String, mode = "r", index = "", threads = 0, build_index = false, *, subset : Enumerable(String) | Nil = nil)
Sourceopen(file_name : Path | String, mode = "r", index = "", threads = 0, build_index = false, *, subset : Enumerable(String) | Nil = nil, &)
SourceInstance methods
<<(var)
Sourcealt
Sourcebuild_index(index_name = "", min_shift = 14, verbose = true)
Instance helper delegating to the class method.
chrom
Sourceclose
Sourceeach_alt
Sourceeach_chrom
Do not add file-level INFO/FORMAT helpers here because these fields depend on each record and its samples. Use Bcf::Record instead.
each_endpos
Sourceeach_filter
Sourceeach_id
Sourceeach_pos
Sourceeach_qual
Sourceeach_ref
Sourceendpos
Sourcefile_name
Sourcefilter
Sourcefinalize
Sourceheader
Sourceheader=(header)
Sourceid
Sourceindex_loaded?
Sourceload_index(index_name = "")
Sourcemode
Sourcensamples
Sourcenthreads
Sourcepos
Sourcequal
Sourcequery(tid : Int32, beg : Int64, end_pos : Int64, copy = false, &)
Numeric (tid) query: coordinates are 0-based half-open [beg, end)
query(chrom : String, beg : Int64, end_pos : Int64, copy = false, &)
Chromosome name + range using SAM-style 1-based inclusive coordinates.
query(region : String, copy = false, &)
Sourcequery(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.
ref
Sourcesamples
Sourcewrite(var)
Sourcewrite_header(header)
SourceNested types
- HTS::Bcf::Error
- HTS::Bcf::FieldError
- HTS::Bcf::Format
- HTS::Bcf::FormatDefinitionError
- HTS::Bcf::FormatError
- HTS::Bcf::FormatReadError
- HTS::Bcf::FormatTypeError
- HTS::Bcf::FormatUpdateError
- HTS::Bcf::Header
- HTS::Bcf::HeaderError
- HTS::Bcf::IndexError
- HTS::Bcf::Info
- HTS::Bcf::InfoDefinitionError
- HTS::Bcf::InfoError
- HTS::Bcf::InfoReadError
- HTS::Bcf::InfoTypeError
- HTS::Bcf::InfoUpdateError
- HTS::Bcf::MissingIndexError
- HTS::Bcf::OpenError
- HTS::Bcf::QueryError
- HTS::Bcf::ReadError
- HTS::Bcf::Record
- HTS::Bcf::RecordError
- HTS::Bcf::SubsetError
- HTS::Bcf::UnknownSampleError
- HTS::Bcf::UnsupportedFormatOperationError
- HTS::Bcf::UnsupportedInfoOperationError
- HTS::Bcf::WriteError