Class: Ensembl::Session
- Inherits:
-
Object
- Object
- Ensembl::Session
- Defined in:
- lib/bio-ensembl.rb
Instance Attribute Summary collapse
-
#collection_species ⇒ Object
Returns the value of attribute collection_species.
-
#coord_system_ids ⇒ Object
map CS id to CS name.
-
#coord_systems ⇒ Object
Returns the value of attribute coord_systems.
-
#release ⇒ Object
Returns the value of attribute release.
-
#seq_regions ⇒ Object
Returns the value of attribute seq_regions.
-
#seqlevel_coord_system ⇒ Object
Returns the value of attribute seqlevel_coord_system.
-
#seqlevel_id ⇒ Object
Returns the value of attribute seqlevel_id.
-
#toplevel_coord_system ⇒ Object
Returns the value of attribute toplevel_coord_system.
-
#toplevel_id ⇒ Object
Returns the value of attribute toplevel_id.
Instance Method Summary collapse
-
#initialize ⇒ Session
constructor
A new instance of Session.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Session
Returns a new instance of Session.
24 25 26 27 28 29 |
# File 'lib/bio-ensembl.rb', line 24 def initialize @coord_systems = Hash.new # key = id; value = CoordSystem object @coord_system_ids = Hash.new # key = id; value = name @seq_regions = Hash.new @release = ENSEMBL_RELEASE end |
Instance Attribute Details
#collection_species ⇒ Object
Returns the value of attribute collection_species.
21 22 23 |
# File 'lib/bio-ensembl.rb', line 21 def collection_species @collection_species end |
#coord_system_ids ⇒ Object
map CS id to CS name
19 20 21 |
# File 'lib/bio-ensembl.rb', line 19 def coord_system_ids @coord_system_ids end |
#coord_systems ⇒ Object
Returns the value of attribute coord_systems.
16 17 18 |
# File 'lib/bio-ensembl.rb', line 16 def coord_systems @coord_systems end |
#release ⇒ Object
Returns the value of attribute release.
22 23 24 |
# File 'lib/bio-ensembl.rb', line 22 def release @release end |
#seq_regions ⇒ Object
Returns the value of attribute seq_regions.
20 21 22 |
# File 'lib/bio-ensembl.rb', line 20 def seq_regions @seq_regions end |
#seqlevel_coord_system ⇒ Object
Returns the value of attribute seqlevel_coord_system.
17 18 19 |
# File 'lib/bio-ensembl.rb', line 17 def seqlevel_coord_system @seqlevel_coord_system end |
#seqlevel_id ⇒ Object
Returns the value of attribute seqlevel_id.
17 18 19 |
# File 'lib/bio-ensembl.rb', line 17 def seqlevel_id @seqlevel_id end |
#toplevel_coord_system ⇒ Object
Returns the value of attribute toplevel_coord_system.
18 19 20 |
# File 'lib/bio-ensembl.rb', line 18 def toplevel_coord_system @toplevel_coord_system end |
#toplevel_id ⇒ Object
Returns the value of attribute toplevel_id.
18 19 20 |
# File 'lib/bio-ensembl.rb', line 18 def toplevel_id @toplevel_id end |
Instance Method Details
#reset ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/bio-ensembl.rb', line 31 def reset @coord_systems = Hash.new @coord_system_ids = Hash.new @seq_regions = Hash.new @seqlevel_id = nil @toplevel_id = nil @seqlevel_coord_system = nil @toplevel_coord_system = nil @collection_species = nil end |