Sha256: af4f4440e027f9326df7194ec29ef9b334a6602e0c3b43d5010cde2839c03a10

Contents?: true

Size: 1.01 KB

Versions: 10

Compression:

Stored size: 1.01 KB

Contents

#{{{ FINDER
finder = Finder.new
if ENV['RBBT_FINDER']
  organism = Organism.default_code("Hsa")
  finder.add_instance(KEGG.pathways, :grep => '^hsa\|^#', :fields => ["Pathway Name"], :namespace => organism, :fix => Proc.new{|l| l.sub(/ - Homo sapiens.*/,'')}) if defined? KEGG
  finder.add_instance(Organism.lexicon(organism), :persist => true, :namespace => organism, :grep => Organism.blacklist_genes(organism).list, :invert_grep => true) if defined? Organism

  mutation_hash = {"Genomic Mutation" => /\w+:\d+:[ACTG\-\+]+/}
  finder.add_instance(mutation_hash, :namespace => organism) 

  mi_hash = {"Mutated Isoform" => /ENSP\w+:.+/}
  finder.add_instance(mi_hash, :namespace => organism) 

  prot_hash = {"Ensembl Protein ID" => /ENSP\w+$/}
  finder.add_instance(prot_hash, :namespace => organism) 


  organism_hash = {"organism" => /[A-Z][a-z]{2}(?:\/[a-z]{3}20\d\d)?/}
  finder.add_instance(organism_hash, :namespace => organism) 
end
set :finder, finder
Log.debug("Finder started with: #{finder.instances.length} instances")


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbbt-util-5.19.7 etc/app.d/finder.rb
rbbt-util-5.19.6 etc/app.d/finder.rb
rbbt-util-5.19.5 etc/app.d/finder.rb
rbbt-util-5.19.4 etc/app.d/finder.rb
rbbt-util-5.19.3 etc/app.d/finder.rb
rbbt-util-5.19.2 etc/app.d/finder.rb
rbbt-util-5.19.1 etc/app.d/finder.rb
rbbt-util-5.19.0 etc/app.d/finder.rb
rbbt-util-5.18.1 etc/app.d/finder.rb
rbbt-util-5.18.0 etc/app.d/finder.rb