vienna_rna 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fc492c40bf3f4d1c52ecf1afd09810c9798471a
4
- data.tar.gz: 2a7ea6a2eeaca132e055e6aacc3cb1f0456990ef
3
+ metadata.gz: a899fb4d340d38517ca0ea8a6cf40972c633f943
4
+ data.tar.gz: 61102bfc0d277cdb89da81c7114f2f4a1a370eff
5
5
  SHA512:
6
- metadata.gz: 16e9902e83a11b8143b598b565ce2d9acf78e0dcd59a89079cecace6d40e9eff4108fa331e1488ed29ce6b281d2d76a132e6fa84d377ec4a0c14004f19be1d2f
7
- data.tar.gz: 191f17dea3941c52c2c990d29e881bd331bc96cdee50857f42f7acfa5b27a252c61966600e7e13e88a6f6fbbf75571afd5c31f0cd98cc75773060f96eb2f86fc
6
+ metadata.gz: d105473a36561ba4d1cc9b49f4d95af0ce2d571682d1239af88ea2c7a5b37b004c00cabc3fb96eb6a9b8f9ab97b99a89d91564fa352661774d6e8d84615777c0
7
+ data.tar.gz: 7afc4799420d2ad31c116e3d9f9c6a65f91bbea83ca86f840e1c3d10d98cae9c0dad5ba2facd6050cc3629d14a53cf88b0f484a653ab86257a557887716f7b27
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  ViennaRna
2
2
  ------------------------
3
3
 
4
- A simple gem for facilitating bindings to the ViennaRNA package (http://www.tbi.univie.ac.at/~ivo/RNA/). Note that this gem makes no effort to build and install the ViennaRNA suite locally at this time, and instead relies on its presence on the host machine. Leverages the BioRuby gem (http://bioruby.open-bio.org/) libraries for file parsing.
4
+ A simple gem for facilitating bindings to the ViennaRNA package (http://www.tbi.univie.ac.at/~ivo/RNA/), amongst other RNA packages. Note that this gem makes no effort to build and install the ViennaRNA suite locally at this time, and instead relies on its presence on the host machine. Also includes a lot of utilities surrounding RNA sequence / structure parsing, graphing using R (via RinRuby) and other analysis tools. Used privately as the foundation for much of the research I do at http://bioinformatics.bc.edu/clotelab/
5
5
 
6
6
  Simple use case:
7
7
 
8
8
  > require "vienna_rna"
9
9
  #=> true
10
- > rna = ViennaRna::Fold.run(seq: "CCUCGAGGGGAACCCGAAAGGGACCCGAGAGG")
10
+ > rna = ViennaRna::Package::Fold.run(seq: "CCUCGAGGGGAACCCGAAAGGGACCCGAGAGG")
11
11
  #=> #<ViennaRna::Fold:0x007f9c48839dc0>
12
12
  > rna.structure
13
13
  #=> "((((..(((...(((....))).)))..))))"
@@ -95,7 +95,7 @@ module ViennaRna
95
95
  end
96
96
 
97
97
  def run(module_name, options = {})
98
- if rna_module = ViennaRna.const_missing("#{module_name}".camelize)
98
+ if rna_module = ViennaRna::Package.const_missing("#{module_name}".camelize)
99
99
  rna_module.run(self, options)
100
100
  else
101
101
  raise ArgumentError.new("#{module_name} can't be resolved as an executable")
data/lib/vienna_rna.rb CHANGED
@@ -30,7 +30,9 @@ module ViennaRna
30
30
  end
31
31
 
32
32
  def self.const_missing(name)
33
- if Base.exec_exists?(name)
33
+ if const_defined?(name)
34
+ const_get(name)
35
+ elsif Base.exec_exists?(name)
34
36
  module_eval do
35
37
  const_set(name, Class.new(Base))
36
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vienna_rna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Senter