Module: Sylfy::Service::ENSEMBL::REST::Alignment
- Defined in:
- lib/sylfy/service/ensemblrest/comparative.rb
Constant Summary collapse
- SERVICENAME =
'alignment'
Class Method Summary collapse
-
.block(species, region, option = {}) ⇒ array of Hash
Retrieves genomic alignments as separate blocks based on its location.
-
.slice(species, region, option = {}) ⇒ array of Hash
Retrieves genomic alignments as a single slice based on its location.
Class Method Details
.block(species, region, option = {}) ⇒ array of Hash
Retrieves genomic alignments as separate blocks based on its location
10Mb is allowed to be requested at any one time
28 29 30 31 32 |
# File 'lib/sylfy/service/ensemblrest/comparative.rb', line 28 def block(species, region, option = {}) option_type = [:callback, :compact, :compara, :display_species_set, :mask, :method, :species_set, :species_set_group] get_path = "/#{SERVICENAME}/block/region/#{species}/#{region}" return Sylfy::Service::ENSEMBLREST::service(get_path, option_type, option) end |
.slice(species, region, option = {}) ⇒ array of Hash
Retrieves genomic alignments as a single slice based on its location
10Mb is allowed to be requested at any one time
45 46 47 48 49 |
# File 'lib/sylfy/service/ensemblrest/comparative.rb', line 45 def slice(species, region, option = {}) option_type = [:callback, :compact, :compara, :display_species_set, :expanded, :mask, :method, :overlap, :species_set, :species_set_group] get_path = "/#{SERVICENAME}/slice/region/#{species}/#{region}" return Sylfy::Service::ENSEMBLREST::service(get_path, option_type, option) end |