class BioInterchange::Genomics::GFF3Landmark
Represents a named region, a.k.a. landmark, which is defined by the pragma statement 'sequence-region'.
Public Class Methods
new(seqid, start_coordinate = nil, end_coordinate = nil)
click to toggle source
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
# 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
Public Instance Methods
end_coordinate()
click to toggle source
Returns the end coordinate of the region.
# File lib/biointerchange/genomics/gff3_pragmas.rb, line 29 def end_coordinate @end_coordinate end
seqid()
click to toggle source
Returns the unique identifier (based on a GFF3 file context) of the region.
# File lib/biointerchange/genomics/gff3_pragmas.rb, line 19 def seqid @seqid end
start_coordinate()
click to toggle source
Returns the start coordinate of the region.
# File lib/biointerchange/genomics/gff3_pragmas.rb, line 24 def start_coordinate @start_coordinate end