Class: Bio::Blat::Report::Hit
- Inherits:
-
Object
- Object
- Bio::Blat::Report::Hit
- Defined in:
- lib/bio/BIOExtensions.rb
Instance Method Summary collapse
- #percentage_covered ⇒ Object
- #wheat_arm ⇒ Object
- #wheat_chr ⇒ Object
-
#wheat_chr_arm ⇒ Object
Function to parse stuff like: IWGSC_CSS_1AL_scaff_110.
- #wheat_chr_group ⇒ Object
- #wheat_genome ⇒ Object
Instance Method Details
#percentage_covered ⇒ Object
51 52 53 |
# File 'lib/bio/BIOExtensions.rb', line 51 def percentage_covered ( match + mismatch ) * 100.0 / query_len.to_f end |
#wheat_arm ⇒ Object
47 48 49 |
# File 'lib/bio/BIOExtensions.rb', line 47 def wheat_arm wheat_chr_arm[2] end |
#wheat_chr ⇒ Object
34 35 36 |
# File 'lib/bio/BIOExtensions.rb', line 34 def wheat_chr wheat_chr_arm[0,2] end |
#wheat_chr_arm ⇒ Object
Function to parse stuff like: IWGSC_CSS_1AL_scaff_110
29 30 31 32 |
# 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 ⇒ Object
38 39 40 41 |
# 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 ⇒ Object
43 44 45 |
# File 'lib/bio/BIOExtensions.rb', line 43 def wheat_genome wheat_chr_arm[1] end |