Class: HTS::Bam::Pileup::PileupColumn

Inherits:
Struct
  • Object
show all
Defined in:
lib/hts/bam/pileup.rb

Overview

A column at a reference position with pileup alignments

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#alignmentsObject

Returns the value of attribute alignments



26
27
28
# File 'lib/hts/bam/pileup.rb', line 26

def alignments
  @alignments
end

#posObject

Returns the value of attribute pos



26
27
28
# File 'lib/hts/bam/pileup.rb', line 26

def pos
  @pos
end

#tidObject

Returns the value of attribute tid



26
27
28
# File 'lib/hts/bam/pileup.rb', line 26

def tid
  @tid
end

Instance Method Details

#depthObject



27
28
29
# File 'lib/hts/bam/pileup.rb', line 27

def depth
  alignments.length
end