class Bio::Blat::Report::Hit

Public Instance Methods

percentage_covered() click to toggle source
# File lib/bio/BIOExtensions.rb, line 51
def percentage_covered
  ( match + mismatch ) * 100.0 / query_len.to_f
end
wheat_arm() click to toggle source
# File lib/bio/BIOExtensions.rb, line 47
def wheat_arm
  wheat_chr_arm[2]
end
wheat_chr() click to toggle source
# File lib/bio/BIOExtensions.rb, line 34
def wheat_chr
  wheat_chr_arm[0,2]
end
wheat_chr_arm() click to toggle source

Function to parse stuff like: IWGSC_CSS_1AL_scaff_110

# File lib/bio/BIOExtensions.rb, line 29
def wheat_chr_arm
  @wheat_chr_arm if @wheat_chr_arm
  @wheat_chr_arm = target_id.split('_')[2]
end
wheat_chr_group() click to toggle source
# File lib/bio/BIOExtensions.rb, line 38
def wheat_chr_group 
  raise Exception.new(), "No wheat group for #{target_id} #{self.inspect}"  unless wheat_chr
  wheat_chr_arm[0]
end
wheat_genome() click to toggle source
# File lib/bio/BIOExtensions.rb, line 43
def wheat_genome
  wheat_chr_arm[1]
end