rbbt-sources 3.1.11 → 3.1.14

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/MCLP.rb +25 -0
  3. metadata +12 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9883483307ee8d88dcc1b7a8ce6e82e2a1521f7e
4
- data.tar.gz: ce5f86b1db3b370ccb53539641de478fb5aef1e3
3
+ metadata.gz: cc90d49b8322a4c9257bb4bf83610511b30a3a73
4
+ data.tar.gz: 53ea5b6bfbb4ae19ddd3b4323225c554bc624c9b
5
5
  SHA512:
6
- metadata.gz: 312842cd07dc73920d0e346d43d4c228c0d48c4d441b421fb5b27e975d7a42fe72af1ccfa864695e86d4b63c1621f4b3731f39ae7f17e105b3ea544eb198fd27
7
- data.tar.gz: d0c9288317e0cdf83a2862c79e0c8713bf521c1c1e0596d7e6c91ba01a38cdc6b2d953f9ff8b8674fd63a34807876e390927fc525e1102cbe57e87d80486f076
6
+ metadata.gz: 03a06569443e9e0b196fd1917c282bfb48f879fca7ecfb93c5139893540a8bfa6f661f742a840dec4b97e4891ee2566f855b3c85148e87e8468b0162f64757b3
7
+ data.tar.gz: aafbcc3a8a02b2e1c32912a4fab1ffc6e897e74acdf01ca3252057a28c83798ba8e92c6348f9458d248a9adfedb2b0aa44c2910e0ea2b467b3b42f099208b10b
@@ -0,0 +1,25 @@
1
+ require 'rbbt-util'
2
+ require 'rbbt/resource'
3
+ require 'rbbt/sources/organism'
4
+
5
+ module MCLP
6
+ extend Resource
7
+ self.subdir = 'share/databases/MCLP'
8
+
9
+ def self.organism(org="Hsa")
10
+ Organism.default_code(org)
11
+ end
12
+
13
+ #self.search_paths = {}
14
+ #self.search_paths[:default] = :lib
15
+
16
+
17
+ MCLP.claim MCLP.RPPA, :proc do
18
+ url = "http://tcpaportal.org/mclp/download/MCLP-v1.1-Level4.zip"
19
+ tsv = TSV.open(url, :header_hash => "", :fix => Proc.new{|l| l.gsub("NA", "")}, :cast => :to_f, :namespace => MCLP.organism, :type => :list)
20
+ tsv.transpose("Antibody").to_s
21
+ end
22
+ end
23
+
24
+ iif MCLP.RPPA.produce(true).find if __FILE__ == $0
25
+
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.11
4
+ version: 3.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-21 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util
@@ -92,6 +92,7 @@ files:
92
92
  - lib/rbbt/sources/COSTART.rb
93
93
  - lib/rbbt/sources/CTCAE.rb
94
94
  - lib/rbbt/sources/HPRD.rb
95
+ - lib/rbbt/sources/MCLP.rb
95
96
  - lib/rbbt/sources/MSigDB.rb
96
97
  - lib/rbbt/sources/NCI.rb
97
98
  - lib/rbbt/sources/PSI_MI.rb
@@ -180,19 +181,19 @@ signing_key:
180
181
  specification_version: 4
181
182
  summary: Data sources for the Ruby Bioinformatics Toolkit (rbbt)
182
183
  test_files:
184
+ - test/test_helper.rb
183
185
  - test/rbbt/sources/test_pubmed.rb
184
- - test/rbbt/sources/test_pharmagkb.rb
185
- - test/rbbt/sources/test_biomart.rb
186
+ - test/rbbt/sources/test_string.rb
186
187
  - test/rbbt/sources/test_gscholar.rb
187
- - test/rbbt/sources/test_kegg.rb
188
+ - test/rbbt/sources/test_biomart.rb
189
+ - test/rbbt/sources/test_go.rb
188
190
  - test/rbbt/sources/test_pina.rb
189
191
  - test/rbbt/sources/test_entrez.rb
192
+ - test/rbbt/sources/test_pharmagkb.rb
193
+ - test/rbbt/sources/test_organism.rb
190
194
  - test/rbbt/sources/test_matador.rb
191
- - test/rbbt/sources/test_HPRD.rb
195
+ - test/rbbt/sources/test_tfacts.rb
196
+ - test/rbbt/sources/test_kegg.rb
192
197
  - test/rbbt/sources/test_synapse.rb
193
- - test/rbbt/sources/test_go.rb
194
198
  - test/rbbt/sources/test_stitch.rb
195
- - test/rbbt/sources/test_organism.rb
196
- - test/rbbt/sources/test_string.rb
197
- - test/rbbt/sources/test_tfacts.rb
198
- - test/test_helper.rb
199
+ - test/rbbt/sources/test_HPRD.rb