Module: NCIBioCartaPathway

Extended by:
Entity
Defined in:
lib/rbbt/sources/NCI.rb

Class Method Summary collapse

Class Method Details

.filter(query, field = nil, options = nil, entity = nil) ⇒ Object



88
89
90
91
92
93
94
# File 'lib/rbbt/sources/NCI.rb', line 88

def self.filter(query, field = nil, options = nil, entity = nil)
  return true if query == entity

  return true if self.setup(entity.dup, options.merge(:format => field)).name.index query

  false
end

.gene_indexObject



84
85
86
# File 'lib/rbbt/sources/NCI.rb', line 84

def self.gene_index
  @gene_index ||= NCI.biocarta_pathways.tsv(:persist => true, :key_field => "NCI BioCarta Pathway ID", :fields => ["Entrez Gene ID"], :type => :flat, :merge => true)
end

.name_indexObject



80
81
82
# File 'lib/rbbt/sources/NCI.rb', line 80

def self.name_index
  @name_index ||= NCI.biocarta_pathways.tsv(:persist => true, :key_field => "NCI BioCarta Pathway ID", :fields => ["Pathway Name"], :type => :single)
end