vienna_rna 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/vienna_rna/modules/fold.rb +1 -1
- data/lib/vienna_rna/modules/rna.rb +4 -4
- data/lib/vienna_rna/modules/subopt.rb +1 -1
- data/lib/vienna_rna/modules/xbor.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d9804f2f40ec0ae56690e373c7f9a3e6e37e2c9
|
4
|
+
data.tar.gz: 8e0513d28b214658a90f1c0000aa09457c0dc568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
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 =
|
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(
|
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
|
-
"
|
47
|
+
"#<#{self.class.name} #{seq[0, 20] + (seq.length > 20 ? '...' : '')} #{str[0, 20] + (str.length > 20 ? ' [truncated]' : '')}>"
|
48
48
|
when [true, false] then
|
49
|
-
"
|
49
|
+
"#<#{self.class.name} #{seq[0, 20] + (seq.length > 20 ? '...' : '')}>"
|
50
50
|
when [false, false] then
|
51
|
-
"
|
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|
|
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(
|
32
|
+
klass.bootstrap(Rna.init_from_string(sequence, structure), log)
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.parse(response)
|