Sha256: 0d8dece793db5f51035b12a483d9561c66db64ebefdf26750321bd198a151d5f
Contents?: true
Size: 925 Bytes
Versions: 17
Compression:
Stored size: 925 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) mi_hash = {"Mutated Isoform" => /ENSP\w+:.+/} finder.add_instance(mi_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
17 entries across 17 versions & 1 rubygems