class HTS::VCF::Record
Public Class Methods
new(bcf_t, vcf)
click to toggle source
# File lib/hts/vcf/record.rb, line 6 def initialize(bcf_t, vcf) @c = bcf_t LibHTS.bcf_unpack(@c, LibHTS::BCF_UN_ALL) # FIXME @vcf = vcf end
Public Instance Methods
formats()
click to toggle source
def inspect; end
# File lib/hts/vcf/record.rb, line 14 def formats; end
genotypes()
click to toggle source
# File lib/hts/vcf/record.rb, line 16 def genotypes; end
id()
click to toggle source
# File lib/hts/vcf/record.rb, line 30 def id @c[:d][:id] end
pos()
click to toggle source
# File lib/hts/vcf/record.rb, line 18 def pos @c[:pos] + 1 # FIXME end
qual()
click to toggle source
# File lib/hts/vcf/record.rb, line 34 def qual @c[:qual] end
ref()
click to toggle source
# File lib/hts/vcf/record.rb, line 38 def ref @c[:d][:allele].get_pointer(0).read_string end
start()
click to toggle source
# File lib/hts/vcf/record.rb, line 22 def start @c[:pos] end
stop()
click to toggle source
# File lib/hts/vcf/record.rb, line 26 def stop @c[:pos] + @c[:rlen] end