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

Returns:

  • (Object)

    the current value of alignments



10
11
12
# File 'lib/hts/bam/pileup.rb', line 10

def alignments
  @alignments
end

#posObject

Returns the value of attribute pos

Returns:

  • (Object)

    the current value of pos



10
11
12
# File 'lib/hts/bam/pileup.rb', line 10

def pos
  @pos
end

#tidObject

Returns the value of attribute tid

Returns:

  • (Object)

    the current value of tid



10
11
12
# File 'lib/hts/bam/pileup.rb', line 10

def tid
  @tid
end

Instance Method Details

#depthObject



11
12
13
# File 'lib/hts/bam/pileup.rb', line 11

def depth
  alignments.length
end