Module: Sylfy::Service::ENSEMBL::REST::Homology
- Defined in:
- lib/sylfy/service/ensemblrest/comparative.rb
Constant Summary collapse
- SERVICENAME =
'homology'
Class Method Summary collapse
-
.id(id, option = {}) ⇒ array of Hash
Retrieves homology information by ensembl gene id.
-
.symbol(species, symbol, option = {}) ⇒ array of Hash
Retrieves homology information by symbol.
Class Method Details
.id(id, option = {}) ⇒ array of Hash
Retrieves homology information by ensembl gene id
121 122 123 124 125 |
# File 'lib/sylfy/service/ensemblrest/comparative.rb', line 121 def id(id, option = {}) option_type = [:aligned, :callback, :format, :sequence, :species, :target_species, :target_taxon, :type] get_path = "/#{SERVICENAME}/id/#{id}" return Sylfy::Service::ENSEMBLREST::service(get_path, option_type, option) end |
.symbol(species, symbol, option = {}) ⇒ array of Hash
Retrieves homology information by symbol
137 138 139 140 141 |
# File 'lib/sylfy/service/ensemblrest/comparative.rb', line 137 def symbol(species, symbol, option = {}) option_type = [:aligned, :callback, :compara, :external_db, :format, :sequence, :target_species, :target_taxon, :type] get_path = "/#{SERVICENAME}/symbol/#{species}/#{symbol}" return Sylfy::Service::ENSEMBLREST::service(get_path, option_type, option) end |