Module: Phenoscape::Studies
- Defined in:
- lib/phenoscaperb/Studies.rb
Class Method Summary collapse
-
.matrix(iri:, ret: "hash", verbose: nil, options: nil) ⇒ Hash
Return a data matrix in NeXML format containing the data for a given study.
-
.phenotypes(iri:, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Character states and their phenotypes annotated within a study.
-
.query(taxon:, entity:, verbose: nil, options: nil) ⇒ Hash
Return studies containing taxa which are members of the optional input taxon expression and are have annotated phenotypes which are relevant to the optional input entity expression.
-
.taxa(iri:, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Taxa annotated within a study.
Class Method Details
.matrix(iri:, ret: "hash", verbose: nil, options: nil) ⇒ Hash
Return a data matrix in NeXML format containing the data for a given study.
94 95 96 97 98 99 |
# File 'lib/phenoscaperb/Studies.rb', line 94 def self.matrix(iri:, ret: "hash", verbose: nil, options: nil) arguments = { iri: iri }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("study/matrix", opts, verbose, , ret, "text/plain").perform end |
.phenotypes(iri:, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Character states and their phenotypes annotated within a study
75 76 77 78 79 80 |
# File 'lib/phenoscaperb/Studies.rb', line 75 def self.phenotypes(iri:, limit: 20, offset: 0, total: false, verbose: nil, options: nil) arguments = { iri: iri, limit: limit, offset: offset, total: total }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("study/phenotypes", opts, verbose, , nil).perform end |
.query(taxon:, entity:, verbose: nil, options: nil) ⇒ Hash
Return studies containing taxa which are members of the optional input taxon expression and are have annotated phenotypes which are relevant to the optional input entity expression.
31 32 33 34 35 36 |
# File 'lib/phenoscaperb/Studies.rb', line 31 def self.query(taxon:, entity:, verbose: nil, options: nil) arguments = { taxon: taxon, entity: entity }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("study/query", opts, verbose, , nil).perform end |
.taxa(iri:, limit: 20, offset: 0, total: false, verbose: nil, options: nil) ⇒ Hash
Taxa annotated within a study
53 54 55 56 57 58 |
# File 'lib/phenoscaperb/Studies.rb', line 53 def self.taxa(iri:, limit: 20, offset: 0, total: false, verbose: nil, options: nil) arguments = { iri: iri, limit: limit, offset: offset, total: total }.tostrings opts = arguments.delete_if { |k, v| v.nil? } Request.new("study/taxa", opts, verbose, , nil).perform end |