rbbt-sources 3.1.27 → 3.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/sources/PRO.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a99216a178bc005222a01727ec13552b20dba591
4
- data.tar.gz: 066b218218f26909b77ef2068d2c126a97636c03
3
+ metadata.gz: 50eb50d6c48d792ccc7836dbd196b9536f26039a
4
+ data.tar.gz: 25c973bfc1207dd74a88a50b9a10d9f9024fc22f
5
5
  SHA512:
6
- metadata.gz: 7abfe2df45eb9d9f66562ff0b5b666be93e43b045d87d6ba94e0846161497cb8fa6eb4f336be68497cb93e43b0e463b0f93a066e3c6b9a1feb42f934403cfb5f
7
- data.tar.gz: '0669bd1a5be776b519983e5ba8135e46bb38277db4bdf27cadf51c1a360318dcc521a50133c6f5b21ae433144a10aa3c7b9cad4189b90aedb6143ff923337cc1'
6
+ metadata.gz: 69dedb4d4c1f297931ec739dd397753f824cb6a1b34f09693d785d9e530940823eb36bb5b994b1b77869077cbb7a3ccd02e15e5dda903c7e5f9ce3e6765909e8
7
+ data.tar.gz: afc19612fe773c97906fef56e12d9a2ca3b0f1b93479c6113164e0eca50460271fe2dcb0fada678bbebc093fa508db20b49784c37c0cd7e5be44ff635d32b94e
@@ -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 => :flat, :namespace => PRO.organism
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-sources
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.27
4
+ version: 3.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez