class GENOME::SNP

Attributes

chromosome[RW]
genotype[RW]
position[RW]

Public Class Methods

new(chromosome, position, genotype) click to toggle source
# File lib/genome/snp.rb, line 4
def initialize(chromosome, position, genotype)
  @chromosome = chromosome
  @position = position
  @genotype = genotype
end

Public Instance Methods

==(other) click to toggle source
# File lib/genome/snp.rb, line 14
def ==(other)
  chromosome == other.chromosome &&
    @position == other.position &&
    @genotype == other.genotype
end
to_s() click to toggle source
# File lib/genome/snp.rb, line 10
def to_s
  "<SNP: chromosome=#{chromosome} position=#{position} genotype=#{genotype}>"
end