Class: Ensembl::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-ensembl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSession

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_speciesObject

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_idsObject

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_systemsObject

Returns the value of attribute coord_systems.



16
17
18
# File 'lib/bio-ensembl.rb', line 16

def coord_systems
  @coord_systems
end

#releaseObject

Returns the value of attribute release.



22
23
24
# File 'lib/bio-ensembl.rb', line 22

def release
  @release
end

#seq_regionsObject

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_systemObject

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_idObject

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_systemObject

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_idObject

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

#resetObject



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