Class: Ensembl::Variation::DBConnection
- Inherits:
-
DBRegistry::Base
- Object
- ActiveRecord::Base
- DBRegistry::Base
- Ensembl::Variation::DBConnection
- Defined in:
- lib/ensembl/db_connection.rb
Overview
The Ensembl::Variation::DBConnection is the actual connection established with the Ensembl server.
Direct Known Subclasses
Allele, AlleleGroup, AlleleGroupAllele, AttribType, CompressedGenotypeSingleBp, ConsequenceMapping, FailedDescription, FailedVariation, FeatureType, FlankingSequence, Httag, Individual, IndividualGenotypeMultipleBp, IndividualPopulation, IndividualType, Meta, MetaCoord, Phenotype, Population, PopulationGenotype, PopulationStructure, ReadCoverage, Sample, SampleSynonym, SeqRegion, Source, StructuralVariation, SubsnpHandle, TaggedVariationFeature, TranscriptVariation, Variation, VariationAnnotation, VariationFeature, VariationGroup, VariationGroupFeature, VariationGroupVariation, VariationSynonym
Class Method Summary collapse
-
.connect(species, release = Ensembl::ENSEMBL_RELEASE, args = {}) ⇒ Object
The Ensembl::Variation::DBConnection#connect method makes the connection to the Ensembl variation database for a given species.
- .ensemblgenomes_connect(species, release = Ensembl::ENSEMBL_RELEASE, args = {}) ⇒ Object
Methods inherited from DBRegistry::Base
generic_connect, get_info, get_name_from_db
Class Method Details
.connect(species, release = Ensembl::ENSEMBL_RELEASE, args = {}) ⇒ Object
The Ensembl::Variation::DBConnection#connect method makes the connection to the Ensembl variation database for a given species. By default, it connects to release 50 for that species. You could use a lower number, but some parts of the API might not work, or worse: give the wrong results.
173 174 175 |
# File 'lib/ensembl/db_connection.rb', line 173 def self.connect(species, release = Ensembl::ENSEMBL_RELEASE, args = {}) self.generic_connect('variation',species, release, args) end |
.ensemblgenomes_connect(species, release = Ensembl::ENSEMBL_RELEASE, args = {}) ⇒ Object
177 178 179 180 |
# File 'lib/ensembl/db_connection.rb', line 177 def self.ensemblgenomes_connect(species, release = Ensembl::ENSEMBL_RELEASE, args={}) args[:ensembl_genomes] = true self.generic_connect('variation',species,release,args) end |