Class: RGFA::SegmentEndsPath

Inherits:
Array show all
Defined in:
lib/rgfa/segment_ends_path.rb

Overview

An array containing SegmentEnd elements, which defines a path in the graph

Instance Method Summary collapse

Methods inherited from Array

#default_gfa_datatype, #rgfa_field_array?, #to_byte_array, #to_cigar, #to_cigar_operation, #to_gfa_field, #to_numeric_array, #to_oriented_segment, #to_rgfa, #to_rgfa_field_array, #to_rgfa_line, #to_segment_end, #validate_gfa_field!

Instance Method Details

#reverseRGFA::SegmentEndsPath

Create a reverse direction path



6
7
8
# File 'lib/rgfa/segment_ends_path.rb', line 6

def reverse
  super.map {|segment_end| segment_end.to_segment_end.invert_end_type}
end