rbfam 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbfam/helpers/common.rb +4 -0
- data/lib/rbfam/modules/alignment.rb +1 -1
- data/lib/rbfam/modules/family.rb +10 -8
- metadata +2 -3
data/lib/rbfam/helpers/common.rb
CHANGED
@@ -13,7 +13,7 @@ module Rbfam
|
|
13
13
|
def entries(options = {})
|
14
14
|
options = { alignment: :seed, limit: false }.merge(options)
|
15
15
|
|
16
|
-
@parsed_entries ||= pull_from_server(options[:alignment]).split(/\n/).reject do |line|
|
16
|
+
@parsed_entries ||= (pull_from_server(options[:alignment]) || "").split(/\n/).reject do |line|
|
17
17
|
line =~ /^#/
|
18
18
|
end.select do |line|
|
19
19
|
line =~ LINE_REGEXP
|
data/lib/rbfam/modules/family.rb
CHANGED
@@ -5,13 +5,15 @@ module Rbfam
|
|
5
5
|
attr_reader :family_name
|
6
6
|
|
7
7
|
class << self
|
8
|
-
def purine;
|
9
|
-
def tpp;
|
10
|
-
def secis_1;
|
11
|
-
def trna;
|
12
|
-
def let_7;
|
13
|
-
def snora71;
|
14
|
-
def u7;
|
8
|
+
def purine; new("RF00167"); end
|
9
|
+
def tpp; new("RF00059"); end
|
10
|
+
def secis_1; new("RF00031"); end
|
11
|
+
def trna; new("RF00005"); end
|
12
|
+
def let_7; new("RF00027"); end
|
13
|
+
def snora71; new("RF00056"); end
|
14
|
+
def u7; new("RF00066"); end
|
15
|
+
def rose; new("RF00435"); end
|
16
|
+
def hammerhead_3; new("RF00008"); end
|
15
17
|
end
|
16
18
|
|
17
19
|
def initialize(family_name)
|
@@ -29,7 +31,7 @@ module Rbfam
|
|
29
31
|
end
|
30
32
|
|
31
33
|
def load_entries!(options = {})
|
32
|
-
options = { extended: false }.merge(options)
|
34
|
+
options = { extended: false, seed: true }.merge(options)
|
33
35
|
|
34
36
|
Rbfam.script("sequences_in_mysql")
|
35
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbfam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bio
|
@@ -114,4 +114,3 @@ signing_key:
|
|
114
114
|
specification_version: 3
|
115
115
|
summary: Bindings to Rfam.
|
116
116
|
test_files: []
|
117
|
-
has_rdoc:
|