Sha256: 28b58c4ed48497cb7b8ef8e889ae464e0d99c2706dcaf40f98a2bc209e17b8e7
Contents?: true
Size: 867 Bytes
Versions: 52
Compression:
Stored size: 867 Bytes
Contents
require 'rbbt-util' require 'rbbt/resource' require 'rbbt/sources/organism' module OncoDriveROLE extend Resource self.subdir = 'share/databases/OncoDriveROLE' def self.organism(org="Hsa") Organism.default_code(org) end #self.search_paths = {} #self.search_paths[:default] = :lib OncoDriveROLE.claim OncoDriveROLE.Cancer5000, :proc do url = "http://bg.upf.edu/oncodrive-role/session/26f1ae8615a9420110c0b1b9f68d9c09/download/downloadData?w=" tsv = TSV.open(url, :header_hash => '', :type => :list, :namespace => OncoDriveROLE.organism) tsv.key_field = "Ensembl Gene ID" tsv.fields = ["Associated Gene Name", "Mode of action", "Value"] tsv.to_s end def self.oncogenes OncoDriveROLE.Cancer5000.tsv.select("Mode of action" => "Activating").keys end end iif OncoDriveROLE.Cancer5000.produce.find if __FILE__ == $0
Version data entries
52 entries across 52 versions & 1 rubygems