rbfam 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rbfam/scripts/sequences_in_mysql.rb +2 -4
- data/lib/rbfam/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72736d685dc023b81de0d42d323299e5cdf1c7e7
|
4
|
+
data.tar.gz: b68c6070354e1066d9616aaa11fdc8a34e708668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19a5fa18cc57e0c6b1ec139609d842e69b6938491dd65bb4e5abe734130e49642b7325d37c142f4121e0055c2202310b26c66affe9c3a959ac6dbf2c5b49b573
|
7
|
+
data.tar.gz: bdc862b5010cc551ed10f6444d097f6e8af8c4b660c2d499fd08500dbb55565e8672a9d918d302f7a95ddba5afb381b2db0e5d8d4cb615aeb179dafc023f234c
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# SequenceTable(id: integer, family: string, accession: string, sequence: text, sequence_length: integer, from: integer, to: integer, seq_from: integer, seq_to: integer, seed: boolean, created_at: datetime, updated_at: datetime, extended: boolean)
|
2
|
-
|
3
1
|
require "mysql2"
|
4
2
|
require "active_record"
|
5
3
|
|
@@ -8,7 +6,7 @@ module Rbfam
|
|
8
6
|
class Sequence < ActiveRecord::Base
|
9
7
|
belongs_to :alignment
|
10
8
|
|
11
|
-
validates_uniqueness_of :accession, scope: [:
|
9
|
+
validates_uniqueness_of :accession, scope: [:stripped_sequence, :from, :to]
|
12
10
|
|
13
11
|
def self.connect
|
14
12
|
ActiveRecord::Base.establish_connection(config = { adapter: "mysql2", username: "root", reconnect: true })
|
@@ -24,7 +22,7 @@ module Rbfam
|
|
24
22
|
|
25
23
|
def to_rbfam(family = nil)
|
26
24
|
# Should use a singleton pattern here to look up the family.
|
27
|
-
::Rbfam::Sequence.new(family || Rbfam::Family.new(family), accession, from, to, { sequence:
|
25
|
+
::Rbfam::Sequence.new(family || Rbfam::Family.new(family), accession, from, to, { sequence: stripped_sequence })
|
28
26
|
end
|
29
27
|
end
|
30
28
|
|
data/lib/rbfam/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Senter
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
249
|
rubyforge_project:
|
250
|
-
rubygems_version: 2.4.
|
250
|
+
rubygems_version: 2.4.5
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: Bindings to Rfam.
|