vienna_rna 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baedfc18915d6d5e855a8c012cc682adb96fd248
4
- data.tar.gz: 5b692c3183ad74aff60eef165837c3009a3d6bff
3
+ metadata.gz: 7d9804f2f40ec0ae56690e373c7f9a3e6e37e2c9
4
+ data.tar.gz: 8e0513d28b214658a90f1c0000aa09457c0dc568
5
5
  SHA512:
6
- metadata.gz: d940a6aea6e48d722029141423541e63ec397e0dde67f7e8c85eb1f1eb2b2e603b70d983054a96fdd55dfc12cbd50e3af6e2015a0c1dcc4106896f9100e5e673
7
- data.tar.gz: cea04deb3fc80580f2895a1515b9c70fcdc7c8f741cde8882b1a28cbddfd1e50035a53d63fb81099aa74349525457978e1c0a27409fb850033e2dccdf6f29a3a
6
+ metadata.gz: 2ca3480228c5c2356ef78c730479cc9c9b9e76761ffcb58e32f294b4910e0f8afc4c66b0493cdc4c8de521470ed09495ff6b29abd4af74a8d987e27ffcf3423c
7
+ data.tar.gz: 6c64233272aa7cf6188a467f65e965bd589f4a15a122d8730ad3ee430ee851bb75c3152fa3584c19a03e300900cec8bf6f00050d4bbf3eaca195e9254d71dcc1
data/README.md CHANGED
@@ -16,4 +16,4 @@ Simple use case:
16
16
  > mfe_rna = RNA("CCUCGAGGGGAACCCGAAAGGGACCCGAGAGG").run(:fold).mfe_rna
17
17
  #=> echo CCUCGAGGGGAACCCGAAAGGGACCCGAGAGG | rnafold --noPS
18
18
  #=> Total runtime: 0.013 sec.
19
- #=> #<ViennaRna::ViennaRna::Rna CCUCGAGGGGAACCCGAAAG... ((((..(((...(((....) [truncated]>
19
+ #=> #<ViennaRna::Rna CCUCGAGGGGAACCCGAAAG... ((((..(((...(((....) [truncated]>
@@ -12,7 +12,7 @@ module ViennaRna
12
12
  unless data.seq.length == structure.length
13
13
  raise "Sequence: '#{data.seq}'\nStructure: '#{structure}'"
14
14
  else
15
- @mfe_rna, @structure, @mfe = ViennaRna::Rna.init_from_string(data.seq, structure), structure, Parser.rnafold_mfe(@response)
15
+ @mfe_rna, @structure, @mfe = Rna.init_from_string(data.seq, structure), structure, Parser.rnafold_mfe(@response)
16
16
  end
17
17
  end
18
18
 
@@ -32,7 +32,7 @@ module ViennaRna
32
32
 
33
33
  @structure = case structure
34
34
  when :empty then empty_structure
35
- when :mfe then ViennaRna::Fold.run(ViennaRna::Rna.init_from_string(seq)).structure
35
+ when :mfe then ViennaRna::Fold.run(Rna.init_from_string(seq)).structure
36
36
  when String then structure
37
37
  end
38
38
  end
@@ -44,11 +44,11 @@ module ViennaRna
44
44
  def inspect
45
45
  case [sequence.present?, structure.present?]
46
46
  when [true, true] then
47
- "#<ViennaRna::#{self.class.name} #{seq[0, 20] + (seq.length > 20 ? '...' : '')} #{str[0, 20] + (str.length > 20 ? ' [truncated]' : '')}>"
47
+ "#<#{self.class.name} #{seq[0, 20] + (seq.length > 20 ? '...' : '')} #{str[0, 20] + (str.length > 20 ? ' [truncated]' : '')}>"
48
48
  when [true, false] then
49
- "#<ViennaRna::#{self.class.name} #{seq[0, 20] + (seq.length > 20 ? '...' : '')}>"
49
+ "#<#{self.class.name} #{seq[0, 20] + (seq.length > 20 ? '...' : '')}>"
50
50
  when [false, false] then
51
- "#<ViennaRna::#{self.class.name}>"
51
+ "#<#{self.class.name}>"
52
52
  end
53
53
  end
54
54
 
@@ -3,7 +3,7 @@ module ViennaRna
3
3
  attr_reader :structures
4
4
 
5
5
  def post_process
6
- @structures = @response.split(/\n/)[1..-1].map { |output| ViennaRna::Rna.init_from_string(data.seq, output.split(/\s+/).first) }
6
+ @structures = @response.split(/\n/)[1..-1].map { |output| Rna.init_from_string(data.seq, output.split(/\s+/).first) }
7
7
  end
8
8
 
9
9
  def bin(count = 1)
@@ -29,7 +29,7 @@ module ViennaRna
29
29
  sequence = log.split(/\n/).first.split(/\s+/)[1]
30
30
  structure = log.split(/\n/).first.split(/\s+/)[2]
31
31
 
32
- klass.bootstrap(ViennaRna::Rna.init_from_string(sequence, structure), log)
32
+ klass.bootstrap(Rna.init_from_string(sequence, structure), log)
33
33
  end
34
34
 
35
35
  def self.parse(response)
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.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Senter