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

#alignments ⇒ Object

Returns the value of attribute alignments

Returns:

  • (Object) —

    the current value of alignments



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

def alignments
  @alignments
end

#pos ⇒ Object

Returns the value of attribute pos

Returns:

  • (Object) —

    the current value of pos



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

def pos
  @pos
end

#tid ⇒ Object

Returns the value of attribute tid

Returns:

  • (Object) —

    the current value of tid



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

def tid
  @tid
end

Instance Method Details

#depth ⇒ Object



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

def depth
  alignments.length
end