Sha256: 0cdce918b7e421ae4c38d9441c725434d171e547acdb20046a362c58e3d938ca
Contents?: true
Size: 859 Bytes
Versions: 8
Compression:
Stored size: 859 Bytes
Contents
require File.join(File.dirname(__FILE__),'../lib/rake_helper') define_source_tasks "protein_chemicals" => "http://stitch.embl.de:8080/download/protein_chemical.links.v2.0.tsv.gz", "chemicals" => "http://stitch.embl.de:8080/download/chemical.aliases.v2.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
8 entries across 8 versions & 2 rubygems