ragtag_utilities/ContigAlignment.py
def sort_by_query(self):
        """ Sort the alignments by query position. """
        q_pos = []
        for i in range(len(self._ref_headers)):
            q_pos.append((self._query_starts[i], self._query_ends[i], i))
        hits = [i[2] for i in sorted(q_pos)]

        self._rearrange_alns(hits)
 Sort the alignments by query position. 
Sort the alignments by query position.
Sort the alignments by query position .
def sort_by_query(self):
        q_pos = []
        for i in range(len(self._ref_headers)):
            q_pos.append((self._query_starts[i], self._query_ends[i], i))
        hits = [i[2] for i in sorted(q_pos)]
        self._rearrange_alns(hits)
def sort_by_query ( self ) : q_pos = [ ] for i in range ( len ( self . _ref_headers ) ) : q_pos . append ( ( self . _query_starts [ i ] , self . _query_ends [ i ] , i ) ) hits = [ i [ 2 ] for i in sorted ( q_pos ) ] self . _rearrange_alns ( hits )
Sort the alignments by query position.
Sort the alignments by query position .
""" Sort the alignments by query position. """
self