Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-sambamba/basepair.rb

Instance Method Summary collapse

Instance Method Details

#bpObject



2
3
4
# File 'lib/bio-sambamba/basepair.rb', line 2

def bp
    self
end

#GbpObject



14
15
16
# File 'lib/bio-sambamba/basepair.rb', line 14

def Gbp
    self * 1_000_000_000
end

#KbpObject



6
7
8
# File 'lib/bio-sambamba/basepair.rb', line 6

def Kbp
    self * 1_000
end

#MbpObject



10
11
12
# File 'lib/bio-sambamba/basepair.rb', line 10

def Mbp
    self * 1_000_000
end