Module: EnsemblREST::Overlap
- Defined in:
- lib/ensemblrest/overlap.rb
Class Method Summary collapse
-
.id(id, features = [], options = {}) ⇒ JSON
Retrieves features (e.g. genes, transcripts, variations etc.) that overlap a region defined by the given identifier.
-
.region(region, features = [], species = 'human', options = {}) ⇒ JSON
Request multiple types of sequence by a list of regions.
-
.translation(id, options = {}) ⇒ JSON
Retrieve features related to a specific Translation as described by its stable ID (e.g. domains, variations).
Class Method Details
.id(id, features = [], options = {}) ⇒ JSON
Retrieves features (e.g. genes, transcripts, variations etc.) that overlap a region defined by the given identifier.
structural_variation, somatic_structural_variation, constrained, regulatory, segmentation, motif, chipseq, array_probe
34 35 36 |
# File 'lib/ensemblrest/overlap.rb', line 34 def id(id, features = [], = {}) return EnsemblREST.get("overlap/id/#{id}", {format: 'json', feature: features}.merge()) end |
.region(region, features = [], species = 'human', options = {}) ⇒ JSON
Request multiple types of sequence by a list of regions.
structural_variation, somatic_structural_variation, constrained, regulatory, segmentation, motif, chipseq, array_probe
23 24 25 |
# File 'lib/ensemblrest/overlap.rb', line 23 def region(region, features = [], species = 'human', = {}) return EnsemblREST.get("overlap/region/#{species}/#{region}", {format: 'json', feature: features}.merge()) end |
.translation(id, options = {}) ⇒ JSON
Retrieve features related to a specific Translation as described by its stable ID (e.g. domains, variations).
43 44 45 |
# File 'lib/ensemblrest/overlap.rb', line 43 def translation(id, = {}) return EnsemblREST.get("overlap/translation/#{id}", {format: 'json'}.merge()) end |