class HTS::Bam

Included Modules

Defined in:

hts/bam.cr
hts/bam/cigar.cr
hts/bam/flag.cr
hts/bam/header.cr
hts/bam/record.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class HTS::Hts

close close, closed? closed?, file_format file_format, file_format_version file_format_version, rewind rewind, seek(offset) seek, set_threads(n) set_threads, tell tell, to_unsafe to_unsafe

Macros inherited from class HTS::Hts

define_getter(name) define_getter, define_iterator(name) define_iterator

Constructor Detail

def self.new(file_name : Path | String, mode : String = "r", index = "", fai = "", threads : Int32 = 0, build_index = false) #

[View source]

Class Method Detail

def self.open(file_name : Path | String, mode = "r", index = "", fai = "", threads = 0, build_index = false) #

[View source]
def self.open(file_name : Path | String, mode = "r", index = "", fai = "", threads = 0, build_index = false, &) #

[View source]

Instance Method Detail

def <<(record) #

[View source]
def build_index(index_name, min_shift = 0) #

[View source]
def chrom #

[View source]
def cigar #

[View source]
def close #

[View source]
def each(copy = false, &) #
Description copied from module Enumerable(HTS::Bam::Record)

Must yield this collection's elements to the block.


[View source]
def each_chrom(&) #

[View source]
def each_cigar(&) #

[View source]
def each_flag(&) #

[View source]
def each_insert_size(&) #

[View source]
def each_mapq(&) #

[View source]
def each_mate_chrom(&) #

[View source]
def each_mate_pos(&) #

[View source]
def each_pos(&) #

[View source]
def each_qname(&) #

[View source]
def each_qual(&) #

[View source]
def each_seq(&) #

[View source]
def fai=(fai) #

[View source]
def file_name : String #

[View source]
def finalize #

[View source]
def flag #

[View source]
def header : HTS::Bam::Header #

[View source]
def header=(header) #

[View source]
def index_loaded? #

[View source]
def insert_size #

[View source]
def isize #

[View source]
def load_index(index_name = "") #

[View source]
def mapq #

[View source]
def mate_chrom #

[View source]
def mate_pos #

[View source]
def mode : String #

[View source]
def mpos #

[View source]
def nthreads : Int32 #

[View source]
def pos #

[View source]
def qname #

[View source]
def qual #

[View source]
def query(region, &) #

[View source]
def seq #

[View source]
def write(record) #

[View source]
def write_header(header) #

[View source]