Sha256: 2380d8cc9184ab944fc63897f7ed2eb28c748551e5cb0fcfdd614e5d243fbe3b

Contents?: true

Size: 1.11 KB

Versions: 39

Compression:

Stored size: 1.11 KB

Contents

require 'rbbt-util'
require 'rbbt/resource'

module PhosphoSitePlus
  extend Resource
  self.subdir = 'share/databases/PhosphoSitePlus'

  def self.organism(org="Hsa")
    require 'rbbt/sources/organism'
    Organism.default_code(org)
  end

  #self.search_paths = {}
  #self.search_paths[:default] = :lib
  
  #self.search_paths = {}
  #self.search_paths[:default] = :lib



  ALL_FILES = %w(Acetylation_site_dataset.gz Disease-associated_sites.gz
Kinase_Substrate_Dataset.gz Methylation_site_dataset.gz
O-GalNAc_site_dataset.gz O-GlcNAc_site_dataset.gz
Phosphorylation_site_dataset.gz Phosphosite_PTM_seq.fasta.gz
Phosphosite_seq.fasta.gz Regulatory_sites.gz Sumoylation_site_dataset.gz
Ubiquitination_site_dataset.gz)
  
  ALL_FILES.each do |file|
    PhosphoSitePlus.claim PhosphoSitePlus[".source"][file], :proc do |f|
      raise "Place #{file} from http://www.phosphosite.org/ at #{f}. Please consult license."
    end
  end

  PhosphoSitePlus.claim PhosphoSitePlus.kinase_substrate, :proc do 
    PhosphoSitePlus[".source/Kinase_Substrate_Dataset.gz"].produce
  end
end

iif PhosphoSitePlus.data.produce.find if __FILE__ == $0

Version data entries

39 entries across 39 versions & 1 rubygems

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