rbbt-sources 3.1.27 → 3.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/sources/PRO.rb +3 -2
- 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: 50eb50d6c48d792ccc7836dbd196b9536f26039a
|
4
|
+
data.tar.gz: 25c973bfc1207dd74a88a50b9a10d9f9024fc22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69dedb4d4c1f297931ec739dd397753f824cb6a1b34f09693d785d9e530940823eb36bb5b994b1b77869077cbb7a3ccd02e15e5dda903c7e5f9ce3e6765909e8
|
7
|
+
data.tar.gz: afc19612fe773c97906fef56e12d9a2ca3b0f1b93479c6113164e0eca50460271fe2dcb0fada678bbebc093fa508db20b49784c37c0cd7e5be44ff635d32b94e
|
data/lib/rbbt/sources/PRO.rb
CHANGED
@@ -16,12 +16,13 @@ module PRO
|
|
16
16
|
PRO.claim PRO.identifiers, :proc do
|
17
17
|
url = "ftp://ftp.pir.georgetown.edu/databases/ontology/pro_obo/PRO_mappings/uniprotmapping.txt"
|
18
18
|
|
19
|
-
dumper = TSV::Dumper.new :key_field => "PRO ID", :fields => ["UniProt/SwissProt Accession"], :type => :
|
19
|
+
dumper = TSV::Dumper.new :key_field => "PRO ID", :fields => ["UniProt/SwissProt Accession"], :type => :double, :namespace => PRO.organism
|
20
20
|
dumper.init
|
21
21
|
TSV.traverse Open.open(url), :type => :array, :into => dumper, :bar => true do |line|
|
22
22
|
pro, uni = line.split("\t")
|
23
23
|
[pro, [uni.split(":").last]]
|
24
24
|
end
|
25
|
+
TSV.collapse_stream dumper
|
25
26
|
end
|
26
27
|
|
27
28
|
PRO.claim PRO.uniprot_equivalences, :proc do
|
@@ -42,6 +43,6 @@ module PRO
|
|
42
43
|
end
|
43
44
|
end
|
44
45
|
|
45
|
-
iif PRO.identifiers.produce.find if __FILE__ == $0
|
46
|
+
iif PRO.identifiers.produce(true).find if __FILE__ == $0
|
46
47
|
iif PRO.uniprot_equivalences.produce(true).find if __FILE__ == $0
|
47
48
|
|