module EnsemblREST::Archive
Public Instance Methods
id_get(id, options = {})
click to toggle source
Uses the given identifier to return the archived sequence
@param [String] id An Ensembl stable ID @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/archive_id_get @return [JSON] Variants consequences
# File lib/ensemblrest/archive.rb, line 21 def id_get(id, options = {}) return EnsemblREST.get("archive/id/#{id}", {format: 'json'}.merge(options)) end
id_post(ids, options = {})
click to toggle source
Retrieve the archived sequence for a set of identifiers
@param [Array] ids Ensembl stable IDs @param [Hash] options Optional arguments for the service please goto rest.ensembl.org/documentation/info/archive_id_post @return [JSON] Requested response
# File lib/ensemblrest/archive.rb, line 30 def id_post(ids, options = {}) return EnsemblREST.post("archive/id", {"id" => ids}, {format: 'json'}.merge(options)) end