struct

Softepigen::Region

Inherits Struct < Value < Object

Constants

BYTE_C = 'C'.ord.to_u8
BYTE_G = 'G'.ord.to_u8

Constructors

new(buffer : Bytes, start : Int32, padding : Int32 = 0)
Source
new(str : String, offset : Int32) : self
Source

Instance methods

[](range : Range(Int | Nil, Int | Nil)) : self
Source
complexity(k : Int = 4) : Array(Int32)
Source
cpg_count
Source
each_cpg
Source
each_downstream(complex_idxs : Array(Int32), & : Region -> ) : Nil
Source
each_upstream(complex_idxs : Array(Int32), & : Region -> ) : Nil
Source
forward(complex_idxs : Array(Int32)) : Array(Region)
Source
forward
Source
has_repeats?(count : Int) : Bool
Source
padding
Source
range
Source
reverse(complex_idxs : Array(Int32)) : Array(Region)
Source
reverse
Source
size
Source
split_by_cpg
Source
start
Source
stop
Source
to_s(complement : Bool = false, replacing replacements : Hash(Char, Char) | Nil = nil) : String

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
to_s(io : IO, complement : Bool = false, replacing replacements : Hash(Char, Char) | Nil = nil) : Nil

Same as #inspect(io).

Source
to_unsafe
Source
unsafe_downstream_expand(count : Int) : self

WARN: potentially dangerous (no bounds check)

Source
unsafe_upstream_expand(count : Int) : self

WARN: potentially dangerous (no bounds check)

Source