rbbt-sources 3.1.7 → 3.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/etc/allowed_biomart_archives +1 -0
- data/lib/rbbt/sources/pfam.rb +3 -3
- 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: c036392b978d10961a6834bbcb520f90f685dad5
|
4
|
+
data.tar.gz: 1c3104e16b49cf2445a7587fd4e47eb9add3ec54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f5d81a9595cb6f58856e51dbe908862105d268ee64af901aae7e56c0ac5d58bdd34a9780efcb57ca3fa2dcbff352b4e2f5ec62ef6bd662fb747beb726ff64e2
|
7
|
+
data.tar.gz: 005bb8687b44426316d3d758401da95e236b6abddb6d09362ef5706a8f5dc9fa53a4e5f5a2eed29cc7987ae16cba04ce88fe664d4b43a392e6c4cbf642c93c89
|
data/lib/rbbt/sources/pfam.rb
CHANGED
@@ -10,7 +10,7 @@ InterPro.claim InterPro.pfam_names, :proc do
|
|
10
10
|
pfam_domains = Pfam.domains.read.split("\n").collect{|l| l.split("\t").first}.compact.flatten
|
11
11
|
tsv = nil
|
12
12
|
TmpFile.with_file(pfam_domains * "\n") do |tmpfile|
|
13
|
-
tsv = TSV.open(CMD.cmd("cut -f 4,3 | sort -u |grep -w -f #{ tmpfile }", :in => InterPro.source.protein2ipr.open, :pipe => true), :key_field => 1, :fields => [0], :type => :single)
|
13
|
+
tsv = TSV.open(CMD.cmd("cut -f 4,3 | sort -u |grep -w -f #{ tmpfile }", :in => InterPro[".source"].protein2ipr.open, :pipe => true), :key_field => 1, :fields => [0], :type => :single)
|
14
14
|
end
|
15
15
|
tsv.key_field = "InterPro ID"
|
16
16
|
tsv.fields = ["Domain Name"]
|
@@ -21,7 +21,7 @@ InterPro.claim InterPro.pfam_equivalences, :proc do
|
|
21
21
|
pfam_domains = Pfam.domains.read.split("\n").collect{|l| l.split("\t").first}.compact.flatten
|
22
22
|
tsv = nil
|
23
23
|
TmpFile.with_file(pfam_domains * "\n") do |tmpfile|
|
24
|
-
tsv = TSV.open(CMD.cmd("cut -f 2,4 | sort -u |grep -w -f #{ tmpfile }", :in => InterPro.source.protein2ipr.open, :pipe => true), :key_field => 0, :fields => [1], :type => :single)
|
24
|
+
tsv = TSV.open(CMD.cmd("cut -f 2,4 | sort -u |grep -w -f #{ tmpfile }", :in => InterPro[".source"].protein2ipr.open, :pipe => true), :key_field => 0, :fields => [1], :type => :single)
|
25
25
|
end
|
26
26
|
tsv.key_field = "InterPro ID"
|
27
27
|
tsv.fields = ["Pfam Domain"]
|
@@ -34,7 +34,7 @@ module Pfam
|
|
34
34
|
self.subdir = "share/databases/Pfam"
|
35
35
|
|
36
36
|
Pfam.claim Pfam.domains, :proc do
|
37
|
-
url = "ftp://ftp.
|
37
|
+
url = "ftp://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.clans.tsv.gz"
|
38
38
|
tsv = TSV.open(Open.open(url), :key_field => "Pfam Domain ID", :fields => ["Pfam Clan ID", "Code Name", "Name", "Description"])
|
39
39
|
tsv.to_s
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-sources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbbt-util
|