Class: BioInterchange::Genomics::GFF3Landmark
- Inherits:
-
Object
- Object
- BioInterchange::Genomics::GFF3Landmark
- 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
-
#end_coordinate ⇒ Object
Returns the end coordinate of the region.
-
#initialize(seqid, start_coordinate = nil, end_coordinate = nil) ⇒ GFF3Landmark
constructor
Create a new instance of a named region.
-
#seqid ⇒ Object
Returns the unique identifier (based on a GFF3 file context) of the region.
-
#start_coordinate ⇒ Object
Returns the start coordinate of the region.
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_coordinate ⇒ Object
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 |
#seqid ⇒ Object
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_coordinate ⇒ Object
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 |