Module: EnsemblREST::Comparative
- Defined in:
- lib/ensemblrest/comparativegenomics.rb
Class Method Summary collapse
-
.genetree(id, options = {}) ⇒ JSON
Retrieves a gene tree dump for a gene tree stable identifier.
-
.genetree_member_id(id, options = {}) ⇒ JSON
Retrieves a gene tree that contains the stable identifier.
-
.genetree_member_symbol(symbol, species = 'human', options = {}) ⇒ JSON
Retrieves a gene tree containing the gene identified by a symbol.
-
.genomic_alignment_region(region, species = 'human', options = {}) ⇒ JSON
Retrieves genomic alignments as separate blocks based on a region and species.
-
.homology_ensemblgene(id, options = {}) ⇒ JSON
Retrieves homology information (orthologs) by Ensembl gene id.
-
.homology_symbol(symbol, species = 'human', options = {}) ⇒ JSON
Retrieves homology information (orthologs) by symbol.
Class Method Details
.genetree(id, options = {}) ⇒ JSON
Retrieves a gene tree dump for a gene tree stable identifier
23 24 25 |
# File 'lib/ensemblrest/comparativegenomics.rb', line 23 def genetree(id, = {}) return EnsemblREST.get("genetree/id/#{id}", {format: 'json'}.merge()) end |
.genetree_member_id(id, options = {}) ⇒ JSON
Retrieves a gene tree that contains the stable identifier
32 33 34 |
# File 'lib/ensemblrest/comparativegenomics.rb', line 32 def genetree_member_id(id, = {}) return EnsemblREST.get("genetree/member/id/#{id}", {format: 'json'}.merge()) end |
.genetree_member_symbol(symbol, species = 'human', options = {}) ⇒ JSON
Retrieves a gene tree containing the gene identified by a symbol
42 43 44 |
# File 'lib/ensemblrest/comparativegenomics.rb', line 42 def genetree_member_symbol(symbol, species = 'human', = {}) return EnsemblREST.get("genetree/member/symbol/#{species}/#{symbol}", {format: 'json'}.merge()) end |
.genomic_alignment_region(region, species = 'human', options = {}) ⇒ JSON
Retrieves genomic alignments as separate blocks based on a region and species
52 53 54 |
# File 'lib/ensemblrest/comparativegenomics.rb', line 52 def genomic_alignment_region(region, species = 'human', = {}) return EnsemblREST.get("alignment/region/#{species}/#{region}", {format: 'json'}.merge()) end |
.homology_ensemblgene(id, options = {}) ⇒ JSON
Retrieves homology information (orthologs) by Ensembl gene id
61 62 63 |
# File 'lib/ensemblrest/comparativegenomics.rb', line 61 def homology_ensemblgene(id, = {}) return EnsemblREST.get("homology/id/#{id}", {format: 'json'}.merge()) end |
.homology_symbol(symbol, species = 'human', options = {}) ⇒ JSON
Retrieves homology information (orthologs) by symbol
71 72 73 |
# File 'lib/ensemblrest/comparativegenomics.rb', line 71 def homology_symbol(symbol, species = 'human', = {}) return EnsemblREST.get("homology/symbol/#{species}/#{symbol}", {format: 'json'}.merge()) end |