Module: Phenoscape::Genes
- Defined in:
- lib/phenoscaperb/Genes.rb
Class Method Summary collapse
-
.affecting_entity_phenotype(iri:, quality: nil, parts: nil, historical_homologs: nil, serial_homologs: nil, limit: nil, offset: nil, total: nil, verbose: nil, options: nil) ⇒ Hash
Search for classes from a particular ontology.
-
.gene(iri:, verbose: nil, options: nil) ⇒ Hash
Return detail info for a given gene.
-
.search(text:, taxon: nil, verbose: nil, options: nil) ⇒ Hash
Search for genes by gene symbol.
Class Method Details
.affecting_entity_phenotype(iri:, quality: nil, parts: nil, historical_homologs: nil, serial_homologs: nil, limit: nil, offset: nil, total: nil, verbose: nil, options: nil) ⇒ Hash
Search for classes from a particular ontology.
72 73 74 75 76 77 78 79 80 |
# File 'lib/phenoscaperb/Genes.rb', line 72 def self.affecting_entity_phenotype(iri:, quality: nil, parts: nil, historical_homologs: nil, serial_homologs: nil, limit: nil, offset: nil, total: nil, verbose: nil, options: nil) arguments = { iri: iri, quality: quality, parts: parts, historical_homologs: historical_homologs, serial_homologs: serial_homologs, limit: limit, offset: offset, total: total }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("gene/affecting_entity_phenotype", opts, verbose, , nil).perform end |
.gene(iri:, verbose: nil, options: nil) ⇒ Hash
Return detail info for a given gene
30 31 32 33 34 35 |
# File 'lib/phenoscaperb/Genes.rb', line 30 def self.gene(iri:, verbose: nil, options: nil) arguments = { iri: iri }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("gene", opts, verbose, , nil).perform end |
.search(text:, taxon: nil, verbose: nil, options: nil) ⇒ Hash
Search for genes by gene symbol.
50 51 52 53 54 55 |
# File 'lib/phenoscaperb/Genes.rb', line 50 def self.search(text:, taxon: nil, verbose: nil, options: nil) arguments = { text: text, taxon: taxon }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("gene/search", opts, verbose, , nil).perform end |