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.4 share/install/STITCH/Rakefile
rbbt-sources-3.1.3 share/install/STITCH/Rakefile
rbbt-sources-3.1.2 share/install/STITCH/Rakefile
rbbt-sources-3.1.1 share/install/STITCH/Rakefile
rbbt-sources-3.1.0 share/install/STITCH/Rakefile
rbbt-sources-3.0.37 share/install/STITCH/Rakefile
rbbt-sources-3.0.36 share/install/STITCH/Rakefile
rbbt-sources-3.0.35 share/install/STITCH/Rakefile
rbbt-sources-3.0.34 share/install/STITCH/Rakefile
rbbt-sources-3.0.33 share/install/STITCH/Rakefile
rbbt-sources-3.0.32 share/install/STITCH/Rakefile
rbbt-sources-3.0.31 share/install/STITCH/Rakefile
rbbt-sources-3.0.30 share/install/STITCH/Rakefile
rbbt-sources-3.0.29 share/install/STITCH/Rakefile
rbbt-sources-3.0.28 share/install/STITCH/Rakefile
rbbt-sources-3.0.27 share/install/STITCH/Rakefile
rbbt-sources-3.0.26 share/install/STITCH/Rakefile
rbbt-sources-3.0.25 share/install/STITCH/Rakefile
rbbt-sources-3.0.24 share/install/STITCH/Rakefile
rbbt-sources-3.0.23 share/install/STITCH/Rakefile