Module: Phenoscape::Taxa
- Defined in:
- lib/phenoscaperb/Taxa.rb
Class Method Summary collapse
-
.annotations(entity: nil, quality: nil, in_taxon: nil, parts: false, historical_homologs: false, serial_homologs: false, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Retrieve taxa annotations.
-
.taxon(iri:, verbose: nil, options: nil) ⇒ Hash
Return detail info for a given taxon.
-
.taxon_with_rank(rank:, in_taxon:, verbose: nil, options: nil) ⇒ Hash
Retrieve all taxa with a given taxonomic rank, within the given super-taxon.
-
.with_phenotype(entity: nil, quality: nil, in_taxon: nil, parts: false, historical_homologs: false, serial_homologs: false, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Retrieve taxa with annotated phenotypes related to the given anatomical entity or quality.
Class Method Details
.annotations(entity: nil, quality: nil, in_taxon: nil, parts: false, historical_homologs: false, serial_homologs: false, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Retrieve taxa annotations
104 105 106 107 108 109 110 111 112 |
# File 'lib/phenoscaperb/Taxa.rb', line 104 def self.annotations(entity: nil, quality: nil, in_taxon: nil, parts: false, historical_homologs: false, serial_homologs: false, limit: 20, offset: 0, total: false, verbose: nil, options: nil) arguments = { entity: entity, quality: quality, in_taxon: in_taxon, 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("taxon/annotations", opts, verbose, , nil).perform end |
.taxon(iri:, verbose: nil, options: nil) ⇒ Hash
Return detail info for a given taxon. Currently this is the label, extinction status, and an optional rank.
30 31 32 33 34 35 |
# File 'lib/phenoscaperb/Taxa.rb', line 30 def self.taxon(iri:, verbose: nil, options: nil) arguments = { iri: iri }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("taxon", opts, verbose, , nil).perform end |
.taxon_with_rank(rank:, in_taxon:, verbose: nil, options: nil) ⇒ Hash
Retrieve all taxa with a given taxonomic rank, within the given super-taxon. Ranks are term IRIs from the taxonomic rank ontology such as order, family, genus, species.
50 51 52 53 54 55 |
# File 'lib/phenoscaperb/Taxa.rb', line 50 def self.taxon_with_rank(rank:, in_taxon:, verbose: nil, options: nil) arguments = { rank: rank, in_taxon: in_taxon }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("taxon/with_rank", opts, verbose, , nil).perform end |
.with_phenotype(entity: nil, quality: nil, in_taxon: nil, parts: false, historical_homologs: false, serial_homologs: false, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Retrieve taxa with annotated phenotypes related to the given anatomical entity or quality.
76 77 78 79 80 81 82 83 84 |
# File 'lib/phenoscaperb/Taxa.rb', line 76 def self.with_phenotype(entity: nil, quality: nil, in_taxon: nil, parts: false, historical_homologs: false, serial_homologs: false, limit: 20, offset: 0, total: false, verbose: nil, options: nil) arguments = { entity: entity, quality: quality, in_taxon: in_taxon, 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("taxon/with_phenotype", opts, verbose, , nil).perform end |