Class: BioInterchange::Genomics::GFF3Landmark

Inherits:
Object
  • Object
show all
Defined in:
lib/biointerchange/genomics/gff3_pragmas.rb

Overview

Represents a named region, a.k.a. landmark, which is defined by the pragma statement ‘sequence-region’.

Instance Method Summary collapse

Constructor Details

#initialize(seqid, start_coordinate = nil, end_coordinate = nil) ⇒ GFF3Landmark

Create a new instance of a named region.

seqid

unique identifier (in the GFF3 file context) that identifies this region

start_coordinate

genomic start coordinate of the region

end_coordinate

genomic end coordinate of the region



12
13
14
15
16
# File 'lib/biointerchange/genomics/gff3_pragmas.rb', line 12

def initialize(seqid, start_coordinate = nil, end_coordinate = nil)
  @seqid = seqid
  @start_coordinate = start_coordinate
  @end_coordinate = end_coordinate
end

Instance Method Details

#end_coordinateObject

Returns the end coordinate of the region.



29
30
31
# File 'lib/biointerchange/genomics/gff3_pragmas.rb', line 29

def end_coordinate
  @end_coordinate
end

#seqidObject

Returns the unique identifier (based on a GFF3 file context) of the region.



19
20
21
# File 'lib/biointerchange/genomics/gff3_pragmas.rb', line 19

def seqid
  @seqid
end

#start_coordinateObject

Returns the start coordinate of the region.



24
25
26
# File 'lib/biointerchange/genomics/gff3_pragmas.rb', line 24

def start_coordinate
  @start_coordinate
end