Class: Bio::GFF::GFF3::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/protk/bio_gff3_extensions.rb

Overview

Extension to GFF3 records to support genomic coordinate mapping tasks

Instance Method Summary collapse

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

#lengthObject



18
19
20
# File 'lib/protk/bio_gff3_extensions.rb', line 18

def length
	return self.end-self.start+1
end