rbbt-sources 3.2.14 → 3.2.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 476a20bf7be9718acce0355dccc7f88105e168247348de1895491bbf7189b7d2
4
- data.tar.gz: a434af060363f85fe565f9f394aa0a64acae7bf58bf98859159536c59be51a11
3
+ metadata.gz: 0745fa19486f2c9c8c86b24ddf5f44689aa010c500db0bf7fadfc67e03072bf8
4
+ data.tar.gz: b6d5f1481202d3f191b725f5c0021c371a4f044e14661d3534d31a260ffb480e
5
5
  SHA512:
6
- metadata.gz: e9f09c7a4514edaf3aabd89a5980d6be18d4761d72676da8be74625617f330b36816f66054fc6af5913ed9d94f6427391dec951307be23a2846225e1c840a813
7
- data.tar.gz: 4b07413c9c8e8c6dd64180a1cdbb86407f81b86db8b14c63ff330a17d766b5604014f34dd3346bc6062029dd3c1dd4c1a2bdcaabb3b8cfa96434ba0170da32d6
6
+ metadata.gz: 1241babce1692c616242e1ef5a501c5e337f3b042110fca932ee3e320ade576538be40723968eabac97ea02133d58144275f5949c3288926d87fc03192417522
7
+ data.tar.gz: 53b45cbb861f44f2f4f51f4e14a36c3f70210d729f45138228ac06a542857162e94f736b0b43a107af413da0ff68247061e4d99a774932fa5b4f65b3547205c3
@@ -4,3 +4,4 @@ may2017
4
4
  apr2019
5
5
  feb2021
6
6
  feb2023
7
+ oct2016
@@ -14,7 +14,7 @@ module PRO
14
14
  #self.search_paths[:default] = :lib
15
15
 
16
16
  PRO.claim PRO.identifiers, :proc do
17
- url = "ftp://ftp.pir.georgetown.edu/databases/ontology/pro_obo/PRO_mappings/uniprotmapping.txt"
17
+ url = "ftp://ftp.proteininformationresource.org/databases/ontology/pro_obo/PRO_mappings/uniprotmapping.txt"
18
18
 
19
19
  dumper = TSV::Dumper.new :key_field => "PRO ID", :fields => ["UniProt/SwissProt Accession"], :type => :double, :namespace => PRO.organism
20
20
  dumper.init
@@ -22,7 +22,7 @@ module PRO
22
22
  pro, uni = line.split("\t")
23
23
  [pro, [uni.split(":").last]]
24
24
  end
25
- TSV.collapse_stream dumper
25
+ dumper.tsv merge: true
26
26
  end
27
27
 
28
28
  PRO.claim PRO.uniprot_equivalences, :proc do
@@ -18,7 +18,7 @@ module GO
18
18
 
19
19
 
20
20
  MULTIPLE_VALUE_FIELDS = %w(is_a)
21
- TSV_GENE_ONTOLOGY = File.join(Persist.cachedir, 'gene_ontology')
21
+ #TSV_GENE_ONTOLOGY = File.join(Persist.cachedir, 'gene_ontology')
22
22
 
23
23
  # This method needs to be called before any translations can be made, it is
24
24
  # called automatically the first time the id2name method is called. It loads
@@ -73,6 +73,7 @@ module Organism
73
73
  url = "http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver"
74
74
  CMD.cmd_log("wget '#{url}' -O '#{file}'")
75
75
  CMD.cmd("chmod 0755 '#{file}'")
76
+ Rbbt.set_software_env
76
77
  nil
77
78
  end
78
79
 
@@ -57,7 +57,7 @@ module Signor
57
57
  #uni2name = Organism.identifiers(organism).index :target => "Associated Gene Name", :fields => ["UniProt/SwissProt Accession"], :persist => true
58
58
  uni2name = UniProt.identifiers.Hsa.index :target => "Associated Gene Name", :fields => ["UniProt/SwissProt Accession"], :persist => true
59
59
 
60
- parser = TSV::Parser.new Signor.data
60
+ parser = TSV::Parser.new Signor.data.produce
61
61
  fields = parser.fields
62
62
  dumper = TSV::Dumper.new :key_field => "Source (UniProt/SwissProt Accession)", :fields => ["Target (Associated Gene Name)", "Effect", "Sign", "PMID"], :type => :double, :merge => true, :organism => Signor.organism
63
63
  dumper.init
@@ -114,6 +114,7 @@ module TFactS
114
114
  pmids = "" if pmids.nil?
115
115
 
116
116
  values = [target, "", species, source, pmids]
117
+ values = values.collect{|v| [v]}
117
118
  tsv.zip_new(tf, values)
118
119
  end
119
120
 
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.2.14
4
+ version: 3.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.0
27
- - !ruby/object:Gem::Dependency
28
- name: nokogiri
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: net-ftp
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
164
  - !ruby/object:Gem::Version
179
165
  version: '0'
180
166
  requirements: []
181
- rubygems_version: 3.3.26
167
+ rubygems_version: 3.4.19
182
168
  signing_key:
183
169
  specification_version: 4
184
170
  summary: Data sources for the Ruby Bioinformatics Toolkit (rbbt)