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

Version Path
rbbt-sources-3.4.2 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.4.1 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.3.0 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.16 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.15 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.14 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.13 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.12 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.11 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.10 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.9 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.8 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.6 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.4 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.3 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.2 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.1 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.2.0 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.1.52 lib/rbbt/sources/oncodrive_role.rb
rbbt-sources-3.1.51 lib/rbbt/sources/oncodrive_role.rb