class HTS::Bam::Flag

Defined in:

hts/bam/flag.cr

Constant Summary

DUP = new(LibHTS2::BAM_FDUP.to_u16)
MREVERSE = new(LibHTS2::BAM_FMREVERSE.to_u16)
MUNMAP = new(LibHTS2::BAM_FMUNMAP.to_u16)
NONE = new(0_u16)

Named FLAG bit constants, as Flag values so they compose with #|. e.g. Bam::Flag::UNMAP | Bam::Flag::SECONDARY | Bam::Flag::DUP

PAIRED = new(LibHTS2::BAM_FPAIRED.to_u16)
PROPER_PAIR = new(LibHTS2::BAM_FPROPER_PAIR.to_u16)
QCFAIL = new(LibHTS2::BAM_FQCFAIL.to_u16)
READ1 = new(LibHTS2::BAM_FREAD1.to_u16)
READ2 = new(LibHTS2::BAM_FREAD2.to_u16)
REVERSE = new(LibHTS2::BAM_FREVERSE.to_u16)
SECONDARY = new(LibHTS2::BAM_FSECONDARY.to_u16)
SUPPLEMENTARY = new(LibHTS2::BAM_FSUPPLEMENTARY.to_u16)
TABLE = {"paired?": LibHTS2::BAM_FPAIRED, "proper_pair?": LibHTS2::BAM_FPROPER_PAIR, "unmapped?": LibHTS2::BAM_FUNMAP, "mate_unmapped?": LibHTS2::BAM_FMUNMAP, "reverse?": LibHTS2::BAM_FREVERSE, "mate_reverse?": LibHTS2::BAM_FMREVERSE, "read1?": LibHTS2::BAM_FREAD1, "read2?": LibHTS2::BAM_FREAD2, "secondary?": LibHTS2::BAM_FSECONDARY, "qcfail?": LibHTS2::BAM_FQCFAIL, "duplicate?": LibHTS2::BAM_FDUP, "supplementary?": LibHTS2::BAM_FSUPPLEMENTARY}
UNMAP = new(LibHTS2::BAM_FUNMAP.to_u16)

Constructors

Instance Method Summary

Constructor Detail

def self.new(flag_value : UInt16) #

[View source]

Instance Method Detail

def &(other) #

[View source]
def <<(other) #

[View source]
def >>(other) #

[View source]
def ^(other) #

[View source]
def |(other) #

[View source]
def ~ #

[View source]
def duplicate? #

[View source]
def has_flag?(m) #

[View source]
def mate_reverse? #

[View source]
def mate_unmapped? #

[View source]
def paired? #

[View source]
def proper_pair? #

[View source]
def qcfail? #

[View source]
def read1? #

[View source]
def read2? #

[View source]
def reverse? #

[View source]
def secondary? #

[View source]
def supplementary? #

[View source]
def to_i : UInt16 #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def unmapped? #

[View source]
def value : UInt16 #

[View source]