Module: EnsemblREST::Info
- Defined in:
- lib/ensemblrest/info.rb
Class Method Summary collapse
-
.analysis(species = 'human', options = {}) ⇒ JSON
List the names of analyses involved in generating Ensembl data.
-
.assembly_info(species = 'human', options = {}) ⇒ JSON
List the currently available assemblies for a species.
-
.assembly_stats(region_name, species = 'human', options = {}) ⇒ JSON
Returns information about the specified toplevel sequence region for the given species.
-
.biotypes(species = 'human', options = {}) ⇒ JSON
List the functional classifications of gene models that Ensembl associates with a particular species.
-
.compara_methods(options = {}) ⇒ JSON
List all compara analyses available (an analysis defines the type of comparative data).
-
.compara_species_sets(method, options = {}) ⇒ JSON
List all collections of species analysed with the specified compara method.
-
.comparas(options = {}) ⇒ JSON
Lists all available comparative genomics databases and their data release.
-
.data(options = {}) ⇒ JSON
Shows the data releases available on this REST server.
-
.external_dbs(species = 'human', options = {}) ⇒ JSON
Lists all available external sources for a species.
-
.ping(options = {}) ⇒ Boolean
Checks if the service is alive.
-
.rest(options = {}) ⇒ String
Shows the current version of the Ensembl REST API.
-
.software(options = {}) ⇒ String
Shows the current version of the Ensembl API used by the REST server.
-
.species(options = {}) ⇒ String
Lists all available species, their aliases, available adaptor groups and data release.
Class Method Details
.analysis(species = 'human', options = {}) ⇒ JSON
List the names of analyses involved in generating Ensembl data.
22 23 24 |
# File 'lib/ensemblrest/info.rb', line 22 def analysis(species = 'human', = {}) return EnsemblREST.get("info/analysis/#{species}", {format: 'json'}.merge()) end |
.assembly_info(species = 'human', options = {}) ⇒ JSON
List the currently available assemblies for a species.
31 32 33 |
# File 'lib/ensemblrest/info.rb', line 31 def assembly_info(species = 'human', = {}) return EnsemblREST.get("info/assembly/#{species}", {format: 'json'}.merge()) end |
.assembly_stats(region_name, species = 'human', options = {}) ⇒ JSON
Returns information about the specified toplevel sequence region for the given species.
41 42 43 |
# File 'lib/ensemblrest/info.rb', line 41 def assembly_stats(region_name, species = 'human', = {}) return EnsemblREST.get("info/assembly/#{species}/#{region_name}", {format: 'json'}.merge()) end |
.biotypes(species = 'human', options = {}) ⇒ JSON
List the functional classifications of gene models that Ensembl associates with a particular species. Useful for restricting the type of genes/transcripts retrieved by other endpoints.
51 52 53 |
# File 'lib/ensemblrest/info.rb', line 51 def biotypes(species = 'human', = {}) return EnsemblREST.get("info/biotypes/#{species}", {format: 'json'}.merge()) end |
.compara_methods(options = {}) ⇒ JSON
List all compara analyses available (an analysis defines the type of comparative data).
59 60 61 |
# File 'lib/ensemblrest/info.rb', line 59 def compara_methods( = {}) return EnsemblREST.get("info/compara/methods", {format: 'json'}.merge()) end |
.compara_species_sets(method, options = {}) ⇒ JSON
List all collections of species analysed with the specified compara method.
68 69 70 |
# File 'lib/ensemblrest/info.rb', line 68 def compara_species_sets(method, = {}) return EnsemblREST.get("info/compara/species_sets/#{method}", {format: 'json'}.merge()) end |
.comparas(options = {}) ⇒ JSON
Lists all available comparative genomics databases and their data release.
76 77 78 |
# File 'lib/ensemblrest/info.rb', line 76 def comparas( = {}) return EnsemblREST.get("info/comparas", {format: 'json'}.merge()) end |
.data(options = {}) ⇒ JSON
Shows the data releases available on this REST server. May return more than one release (unfrequent non-standard Ensembl configuration).
84 85 86 |
# File 'lib/ensemblrest/info.rb', line 84 def data( = {}) return EnsemblREST.get("info/data", {format: 'json'}.merge()) end |
.external_dbs(species = 'human', options = {}) ⇒ JSON
Lists all available external sources for a species.
93 94 95 |
# File 'lib/ensemblrest/info.rb', line 93 def external_dbs(species = 'human', = {}) return EnsemblREST.get("info/external_dbs/#{species}", {format: 'json'}.merge()) end |
.ping(options = {}) ⇒ Boolean
Checks if the service is alive.
101 102 103 104 105 106 107 108 |
# File 'lib/ensemblrest/info.rb', line 101 def ping( = {}) begin EnsemblREST.get("info/ping", {format: 'json'}.merge()) return true rescue EnsemblREST::ServiceNotFound return false end end |
.rest(options = {}) ⇒ String
Shows the current version of the Ensembl REST API.
114 115 116 |
# File 'lib/ensemblrest/info.rb', line 114 def rest( = {}) return EnsemblREST.get("info/rest", {format: 'json'}.merge())["release"] end |
.software(options = {}) ⇒ String
Shows the current version of the Ensembl API used by the REST server.
122 123 124 |
# File 'lib/ensemblrest/info.rb', line 122 def software( = {}) return EnsemblREST.get("info/software", {format: 'json'}.merge())["release"] end |
.species(options = {}) ⇒ String
Lists all available species, their aliases, available adaptor groups and data release.
130 131 132 |
# File 'lib/ensemblrest/info.rb', line 130 def species( = {}) return EnsemblREST.get("info/species", {format: 'json'}.merge()) end |