parameters: (self)
return_statement: return aligned_length / len(self.sequence)
docstring: This function returns the fraction of the read which is covered by any of the read's
          alignments.
docstring_summary: This function returns the fraction of the read which is covered by any of the read's
          alignments.
docstring_tokens: This function returns the fraction of the read which is covered by any of the read s alignments .
function: def get_fraction_aligned(self):
          """
          This function returns the fraction of the read which is covered by any of the read's
          alignments.
          """
          if len(self.sequence) == 0:
              return 0.0
          read_ranges = [x.read_start_end_positive_strand()
                         for x in self.alignments]
          read_ranges = simplify_ranges(read_ranges)
          aligned_length = sum([x[1] - x[0] for x in read_ranges])
          return aligned_length / len(self.sequence)
function_tokens: def get_fraction_aligned ( self ) : if len ( self . sequence ) == 0 : return 0.0 read_ranges = [ x . read_start_end_positive_strand ( ) for x in self . alignments ] read_ranges = simplify_ranges ( read_ranges ) aligned_length = sum ( [ x [ 1 ] - x [ 0 ] for x in read_ranges ] ) return aligned_length / len ( self . sequence )