class D4::File

Defined in:

d4/bins.cr
d4/file.cr
d4/matrix.cr
d4/reducers.cr
d4/scaled.cr
d4/stats.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(source : Source, owns_source : Bool, requested_track : String | Nil, options : ReadOptions) #

[View source]
def self.open(path : String | Path, *, track : String | Nil = nil, options : ReadOptions = ReadOptions.new) : File #

[View source]
def self.open(source : Source, *, sync_close : Bool = false, track : String | Nil = nil, options : ReadOptions = ReadOptions.new) : File #

[View source]

Class Method Detail

def self.open(path : String | Path, *, track : String | Nil = nil, options : ReadOptions = ReadOptions.new, & : File -> T) : T forall T #

[View source]
def self.open(source : Source, *, sync_close : Bool = false, track : String | Nil = nil, options : ReadOptions = ReadOptions.new, & : File -> T) : T forall T #

[View source]

Instance Method Detail

def aggregate(regions : Enumerable(Region), reducer : D, *, workers : Int32 = 1) forall D #

[View source]
def chromosome_size(name : String) : Int64 #

[View source]
def chromosome_size?(name : String) : Int64 | Nil #

[View source]
def chromosomes : Array(Chromosome) #

[View source]
def close : Nil #

[View source]
def closed? : Bool #

[View source]
def coverage(region : Region, *, thresholds : Array(Int32)) : Coverage #

[View source]
def coverage_into(region : Region, thresholds : Slice(Int32), counts : Slice(Int64)) : Int64 #

[View source]
def default_track : Track #

[View source]
def each_aggregate(regions : Enumerable(Region), reducer : D, *, workers : Int32 = 1, batch_size : Int32 = 256, &) forall D #

[View source]
def each_aggregate(regions : Indexable(Region), reducer : D, *, workers : Int32 = 1, batch_size : Int32 = 256) forall D #

[View source]
def each_bin(region : Region, *, bin_size : Int, & : BinSummary -> Nil) : Nil #

[View source]
def each_bin(region : Region, *, bin_size : Int) : BinIterator #

[View source]
def each_interval(chromosome : String, start : Int = 0, stop : Int | Nil = nil, & : RawInterval -> Nil) : Nil #

[View source]
def each_interval(chromosome : String, start : Int = 0, stop : Int | Nil = nil) #

[View source]
def each_track(& : Track -> Nil) : Nil #

[View source]
def each_track #

[View source]
def each_value(chromosome : String, start : Int = 0, stop : Int | Nil = nil, & : Int32 -> Nil) : Nil #

[View source]
def each_value(chromosome : String, start : Int = 0, stop : Int | Nil = nil) #

[View source]
def exact_histogram(region : Region, *, max_values : Int32 = 4096) : ExactHistogram #

[View source]
def has_chromosome?(name : String) : Bool #

[View source]
def histogram(region : Region, *, value_range : Range(Int32, Int32)) : Histogram #

[View source]
def histogram_into(region : Region, counts : Slice(Int64), *, value_range : Range(Int32, Int32)) : HistogramTails #

[View source]
def matrix(names : Enumerable(String)) : Matrix #

[View source]
def mean(chromosome : String, start : Int = 0, stop : Int | Nil = nil, *, index : IndexPolicy = IndexPolicy::Auto) : Float64 | Nil #

[View source]
def mean(region : Region, *, index : IndexPolicy = IndexPolicy::Auto) : Float64 | Nil #

[View source]
def metadata : Metadata #

[View source]
def minmax(chromosome : String, start : Int = 0, stop : Int | Nil = nil) : Tuple(Int32, Int32) | Nil #

[View source]
def minmax(region : Region) : Tuple(Int32, Int32) | Nil #

[View source]
def options : ReadOptions #

[View source]
def query(chromosome : String, start : Int = 0, stop : Int | Nil = nil) : Array(RawInterval) #

[View source]
def query(chromosome : String, start : Int = 0, stop : Int | Nil = nil, & : RawInterval -> Nil) : Nil #

[View source]
def query_iter(chromosome : String, start : Int = 0, stop : Int | Nil = nil) #

[View source]
def read_values_into(chromosome : String, start : Int, buffer : Slice(Int32)) : Int32 #

[View source]
def sample(region : Region, *, bins : Int32 = 256) : Array(BinSummary) #

[View source]
def scaled : ScaledTrack #

[View source]
def source : Source #

[View source]
def sum(chromosome : String, start : Int = 0, stop : Int | Nil = nil, *, index : IndexPolicy = IndexPolicy::Auto, cancelled : Proc(Bool) | Nil = nil) : Int64 #

[View source]
def sum(region : Region, *, index : IndexPolicy = IndexPolicy::Auto, cancelled : Proc(Bool) | Nil = nil) : Int64 #

[View source]
def sum_index_granularity : Int64 | Nil #

[View source]
def summary(chromosome : String, start : Int = 0, stop : Int | Nil = nil) : Summary #

[View source]
def summary(region : Region) : Summary #

[View source]
def track(name : String) : Track #

[View source]
def track?(name : String) : Track | Nil #

[View source]
def track_names : Array(String) #

[View source]
def value(chromosome : String, position : Int) : Int32 #

[View source]
def values(chromosome : String, start : Int = 0, stop : Int | Nil = nil) : Array(Int32) #

[View source]
def values(region : Region) : Array(Int32) #

[View source]