Sha256: cc1e4c567902216af66a9c29768815c3a5482ca0ed6581afc68b36d07850781c

Contents?: true

Size: 820 Bytes

Versions: 10

Compression:

Stored size: 820 Bytes

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) 

  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.17.71 etc/app.d/finder.rb
rbbt-util-5.17.70 etc/app.d/finder.rb
rbbt-util-5.17.69 etc/app.d/finder.rb
rbbt-util-5.17.68 etc/app.d/finder.rb
rbbt-util-5.17.67 etc/app.d/finder.rb
rbbt-util-5.17.66 etc/app.d/finder.rb
rbbt-util-5.17.65 etc/app.d/finder.rb
rbbt-util-5.17.64 etc/app.d/finder.rb
rbbt-util-5.17.63 etc/app.d/finder.rb
rbbt-util-5.17.62 etc/app.d/finder.rb