Class: Bio::GFF::GFF3::Record
- Inherits:
-
Object
- Object
- Bio::GFF::GFF3::Record
- Defined in:
- lib/protk/bio_gff3_extensions.rb
Overview
Extension to GFF3 records to support genomic coordinate mapping tasks
Instance Method Summary collapse
-
#<=>(otherRecord) ⇒ Object
Function to return our coordinates relative to some other coordinate system (eg a protein).
- #length ⇒ Object
Instance Method Details
#<=>(otherRecord) ⇒ Object
Function to return our coordinates relative to some other coordinate system (eg a protein)
14 15 16 |
# File 'lib/protk/bio_gff3_extensions.rb', line 14 def <=>(otherRecord) self.start <=> otherRecord.start end |
#length ⇒ Object
18 19 20 |
# File 'lib/protk/bio_gff3_extensions.rb', line 18 def length return self.end-self.start+1 end |