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