class Bio::GenomicInterval
Public Instance Methods
bin()
click to toggle source
# File lib/bio/ucsc/genomic-interval-bin.rb, line 5 def bin Bio::Ucsc::UcscBin.bin(self.zero_start, self.zero_end) end
bin_all()
click to toggle source
# File lib/bio/ucsc/genomic-interval-bin.rb, line 9 def bin_all Bio::Ucsc::UcscBin.bin_all(self.zero_start, self.zero_end) end
intersection(other)
click to toggle source
# File lib/bio/maf/maf.rb, line 5 def intersection(other) raise ArgumentError unless self.chrom == other.chrom GenomicInterval.new(self.chrom, [self.chr_start, other.chr_start].max, [self.chr_end, other.chr_end].min) end