Sha256: a8ec9f3932d6a31bab0328e399fc3045c42b2734387ed429f3fb6cb5c57ebb20

Contents?: true

Size: 842 Bytes

Versions: 87

Compression:

Stored size: 842 Bytes

Contents

require File.join(File.dirname(__FILE__),'../lib/rake_helper')

define_source_tasks "protein_chemicals" => "http://stitch.embl.de/download/protein_chemical.links.v4.0.tsv.gz",
  "chemicals" => "http://stitch.embl.de/download/chemicals.v4.0.tsv.gz"

process_tsv :protein_chemical, 'protein_chemicals',
  :key => 1,
  :grep => "9606\.", 
  :fix => lambda{|l| l.sub(/9606\./,'')},
  :keep_empty => true do

  headers ['Ensembl Protein ID', 'STITCH Chemical ID', 'Score']
end

$grep_re = []
process_tsv :chemicals, 'chemicals',
  :grep => $grep_re, 
  :key  => 0 do

  Rake::Task['protein_chemical'].invoke

  Log.debug "Getting chemicals"
  chemicals = TSV.open('protein_chemical', :key_field => 1, :fields => []).keys
  Log.debug "Getting chemicals [done]"

  $grep_re.replace chemicals

  headers ['STITCH Chemical ID', 'Name', 'Source']
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
rbbt-sources-3.1.50 share/install/STITCH/Rakefile
rbbt-sources-3.1.49 share/install/STITCH/Rakefile
rbbt-sources-3.1.48 share/install/STITCH/Rakefile
rbbt-sources-3.1.47 share/install/STITCH/Rakefile
rbbt-sources-3.1.46 share/install/STITCH/Rakefile
rbbt-sources-3.1.45 share/install/STITCH/Rakefile
rbbt-sources-3.1.43 share/install/STITCH/Rakefile
rbbt-sources-3.1.42 share/install/STITCH/Rakefile
rbbt-sources-3.1.41 share/install/STITCH/Rakefile
rbbt-sources-3.1.40 share/install/STITCH/Rakefile
rbbt-sources-3.1.39 share/install/STITCH/Rakefile
rbbt-sources-3.1.38 share/install/STITCH/Rakefile
rbbt-sources-3.1.37 share/install/STITCH/Rakefile
rbbt-sources-3.1.36 share/install/STITCH/Rakefile
rbbt-sources-3.1.35 share/install/STITCH/Rakefile
rbbt-sources-3.1.34 share/install/STITCH/Rakefile
rbbt-sources-3.1.33 share/install/STITCH/Rakefile
rbbt-sources-3.1.32 share/install/STITCH/Rakefile
rbbt-sources-3.1.30 share/install/STITCH/Rakefile
rbbt-sources-3.1.29 share/install/STITCH/Rakefile