rbbt-sources 3.1.15 → 3.1.16

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 968b6c9ab9794fa92209ba2c8f36537bfc942711
4
- data.tar.gz: 6a5501945048ef2a52872d54e35a85d8637b25a0
3
+ metadata.gz: feef731c1d37abc9fcaf618086634f4bebde968c
4
+ data.tar.gz: 58d28f8048a043d406c0cc1f72fe3b44186ead5e
5
5
  SHA512:
6
- metadata.gz: 8ded417d4f6a04e6ff5ba21da1e454d54a0cf73aab95783a1a60ada25ea39faad2f8d4edcae462ae44f03de0ff488ea99737dc235d4472493d309342debe3391
7
- data.tar.gz: 91b3fbe0852496b15cae6b512f150e5cf86c1742d57d41104b2247df3e75661dc5dce5aa4bae6e3eb86a3bd427addb842f97617a32a6f977a31fc0385daded3a
6
+ metadata.gz: b5fa5a78fe7e152691a92b6119202fdb0066fcf7377bafeb907b02519477221762c8b563239c26024700ee48f301e4377527f95441d87cadb50a26bc884dc626
7
+ data.tar.gz: cdb897373677da35b65aa93964af005ac1048a4097643a4ae0b1a67024f67dc90da5204b5eea928429039cc63c9da275c6faf3b99cc920f3e46ca893c8f3dcab
@@ -0,0 +1,32 @@
1
+ require 'rbbt-util'
2
+ require 'rbbt/resource'
3
+ require 'rbbt/sources/organism'
4
+
5
+ module OncoDriveROLE
6
+ extend Resource
7
+ self.subdir = 'share/databases/OncoDriveROLE'
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
+ OncoDriveROLE.claim OncoDriveROLE.Cancer5000, :proc do
18
+ url = "http://bg.upf.edu/oncodrive-role/session/26f1ae8615a9420110c0b1b9f68d9c09/download/downloadData?w="
19
+ tsv = TSV.open(url, :header_hash => '', :type => :list, :namespace => OncoDriveROLE.organism)
20
+ tsv.key_field = "Ensembl Gene ID"
21
+ tsv.fields = ["Associated Gene Name", "Mode of action", "Value"]
22
+
23
+ tsv.to_s
24
+ end
25
+
26
+ def self.oncogenes
27
+ OncoDriveROLE.Cancer5000.tsv.select("Mode of action" => "Activating").keys
28
+ end
29
+ end
30
+
31
+ iif OncoDriveROLE.Cancer5000.produce.find if __FILE__ == $0
32
+
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.15
4
+ version: 3.1.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: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util
@@ -111,6 +111,7 @@ files:
111
111
  - lib/rbbt/sources/jochem.rb
112
112
  - lib/rbbt/sources/kegg.rb
113
113
  - lib/rbbt/sources/matador.rb
114
+ - lib/rbbt/sources/oncodrive_role.rb
114
115
  - lib/rbbt/sources/organism.rb
115
116
  - lib/rbbt/sources/pfam.rb
116
117
  - lib/rbbt/sources/pharmagkb.rb
@@ -181,19 +182,19 @@ signing_key:
181
182
  specification_version: 4
182
183
  summary: Data sources for the Ruby Bioinformatics Toolkit (rbbt)
183
184
  test_files:
185
+ - test/test_helper.rb
184
186
  - test/rbbt/sources/test_pubmed.rb
185
- - test/rbbt/sources/test_pharmagkb.rb
186
- - test/rbbt/sources/test_biomart.rb
187
+ - test/rbbt/sources/test_string.rb
187
188
  - test/rbbt/sources/test_gscholar.rb
188
- - test/rbbt/sources/test_kegg.rb
189
+ - test/rbbt/sources/test_biomart.rb
190
+ - test/rbbt/sources/test_go.rb
189
191
  - test/rbbt/sources/test_pina.rb
190
192
  - test/rbbt/sources/test_entrez.rb
193
+ - test/rbbt/sources/test_pharmagkb.rb
194
+ - test/rbbt/sources/test_organism.rb
191
195
  - test/rbbt/sources/test_matador.rb
192
- - test/rbbt/sources/test_HPRD.rb
196
+ - test/rbbt/sources/test_tfacts.rb
197
+ - test/rbbt/sources/test_kegg.rb
193
198
  - test/rbbt/sources/test_synapse.rb
194
- - test/rbbt/sources/test_go.rb
195
199
  - test/rbbt/sources/test_stitch.rb
196
- - test/rbbt/sources/test_organism.rb
197
- - test/rbbt/sources/test_string.rb
198
- - test/rbbt/sources/test_tfacts.rb
199
- - test/test_helper.rb
200
+ - test/rbbt/sources/test_HPRD.rb