ragtag_utilities/ContigAlignment.py
def _update_alns(self, hits):
        """ Order alignments according to 'hits', an ordered list of offsets. Return a new instance of the class. """
        if hits:
            return ContigAlignment(
                self.query_header,
                self.query_len,
                [self._query_starts[i] for i in hits],
                [self._query_ends[i] for i in hits],
                [self._strands[i] for i in hits],
                [self._ref_headers[i] for i in hits],
                [self._ref_lens[i] for i in hits],
                [self._ref_starts[i] for i in hits],
                [self._ref_ends[i] for i in hits],
                [self._residue_matches[i] for i in hits],
                [self._aln_lens[i] for i in hits],
                [self._mapqs[i] for i in hits]
            )
        else:
            return None
 Order alignments according to 'hits', an ordered list of offsets. Return a new instance of the class. 
Order alignments according to 'hits', an ordered list of offsets. Return a new instance of the class.
Order alignments according to ' hits ' an ordered list of offsets . Return a new instance of the class .
def _update_alns(self, hits):
        if hits:
            return ContigAlignment(
                self.query_header,
                self.query_len,
                [self._query_starts[i] for i in hits],
                [self._query_ends[i] for i in hits],
                [self._strands[i] for i in hits],
                [self._ref_headers[i] for i in hits],
                [self._ref_lens[i] for i in hits],
                [self._ref_starts[i] for i in hits],
                [self._ref_ends[i] for i in hits],
                [self._residue_matches[i] for i in hits],
                [self._aln_lens[i] for i in hits],
                [self._mapqs[i] for i in hits]
            )
        else:
            return None
def _update_alns ( self , hits ) : if hits : return ContigAlignment ( self . query_header , self . query_len , [ self . _query_starts [ i ] for i in hits ] , [ self . _query_ends [ i ] for i in hits ] , [ self . _strands [ i ] for i in hits ] , [ self . _ref_headers [ i ] for i in hits ] , [ self . _ref_lens [ i ] for i in hits ] , [ self . _ref_starts [ i ] for i in hits ] , [ self . _ref_ends [ i ] for i in hits ] , [ self . _residue_matches [ i ] for i in hits ] , [ self . _aln_lens [ i ] for i in hits ] , [ self . _mapqs [ i ] for i in hits ] ) else : return None
Order alignments according to 'hits', an ordered list of offsets.
Order alignments according to ' hits ' an ordered list of offsets .
""" Order alignments according to 'hits', an ordered list of offsets. Return a new instance of the class. """
self
hits