ragtag_utilities/ContigAlignment.py
def _rearrange_alns(self, hits):
        """ Order the alignments according to 'hits', an ordered list of indices. """
        if len(hits) != len(self._ref_headers):
            raise ValueError("Can only order alignments. To update, use '_update_alns()'")

        self._query_starts = [self._query_starts[i] for i in hits]
        self._query_ends = [self._query_ends[i] for i in hits]
        self._strands = [self._strands[i] for i in hits]
        self._ref_headers = [self._ref_headers[i] for i in hits]
        self._ref_lens = [self._ref_lens[i] for i in hits]
        self._ref_starts = [self._ref_starts[i] for i in hits]
        self._ref_ends = [self._ref_ends[i] for i in hits]
        self._residue_matches = [self._residue_matches[i] for i in hits]
        self._aln_lens = [self._aln_lens[i] for i in hits]
        self._mapqs = [self._mapqs[i] for i in hits]

        self._set_ref_aln_lens()
 Order the alignments according to 'hits', an ordered list of indices. 
Order the alignments according to 'hits', an ordered list of indices.
Order the alignments according to ' hits ' an ordered list of indices .
def _rearrange_alns(self, hits):
        if len(hits) != len(self._ref_headers):
            raise ValueError("Can only order alignments. To update, use '_update_alns()'")
        self._query_starts = [self._query_starts[i] for i in hits]
        self._query_ends = [self._query_ends[i] for i in hits]
        self._strands = [self._strands[i] for i in hits]
        self._ref_headers = [self._ref_headers[i] for i in hits]
        self._ref_lens = [self._ref_lens[i] for i in hits]
        self._ref_starts = [self._ref_starts[i] for i in hits]
        self._ref_ends = [self._ref_ends[i] for i in hits]
        self._residue_matches = [self._residue_matches[i] for i in hits]
        self._aln_lens = [self._aln_lens[i] for i in hits]
        self._mapqs = [self._mapqs[i] for i in hits]
        self._set_ref_aln_lens()
def _rearrange_alns ( self , hits ) : if len ( hits ) != len ( self . _ref_headers ) : raise ValueError ( "Can only order alignments. To update, use '_update_alns()'" ) self . _query_starts = [ self . _query_starts [ i ] for i in hits ] self . _query_ends = [ self . _query_ends [ i ] for i in hits ] self . _strands = [ self . _strands [ i ] for i in hits ] self . _ref_headers = [ self . _ref_headers [ i ] for i in hits ] self . _ref_lens = [ self . _ref_lens [ i ] for i in hits ] self . _ref_starts = [ self . _ref_starts [ i ] for i in hits ] self . _ref_ends = [ self . _ref_ends [ i ] for i in hits ] self . _residue_matches = [ self . _residue_matches [ i ] for i in hits ] self . _aln_lens = [ self . _aln_lens [ i ] for i in hits ] self . _mapqs = [ self . _mapqs [ i ] for i in hits ] self . _set_ref_aln_lens ( )
Order the alignments according to 'hits', an ordered list of indices.
Order the alignments according to ' hits ' an ordered list of indices .
""" Order the alignments according to 'hits', an ordered list of indices. """
self
hits