Module: AnnotID

Extended by:
Entity
Includes:
SegID
Defined in:
lib/rbbt/segment/annotation.rb

Instance Method Summary collapse

Methods included from SegID

#docid, #eend, #offset, #range, #segment_length

Methods included from SegmentRanges

collisions, #includes?, #make_relative, #overlaps, #overlaps?, #pull, #push, #range_in

Instance Method Details

#_partsObject



10
11
12
# File 'lib/rbbt/segment/annotation.rb', line 10

def _parts
  @parts ||= self.split(":")
end

#segidObject



14
15
16
# File 'lib/rbbt/segment/annotation.rb', line 14

def segid
  @segid ||= _parts[0..4] * ":"
end

#typeObject



18
19
20
# File 'lib/rbbt/segment/annotation.rb', line 18

def type
  @type ||= _parts[5]
end