(self, seq_num)
return True
Check if there is any fragment number gap

        Returns:
            (bool) True when there are no gaps (everything is OK).
Check if there is any fragment number gap
Check if there is any fragment number gap
def _check_gaps(self, seq_num):
        """Check if there is any fragment number gap

        Returns:
            (bool) True when there are no gaps (everything is OK).

        """
        frag_idxs = sorted(self.frag_map[seq_num]['frags'].keys())
        for i, x in enumerate(frag_idxs):
            if (i == 0 and x != 0):
                if (x > 1):
                    logger.warning("First {:d} fragments were lost".format(x))
                else:
                    logger.warning("First fragment was lost")
                return False
            elif (i > 0 and x - frag_idxs[i - 1] != 1):
                logger.warning("Gap between fragment {:d} and fragment "
                               "{:d}".format(frag_idxs[i - 1], x))
                return False
        return True
def _check_gaps ( self , seq_num ) : frag_idxs = sorted ( self . frag_map [ seq_num ] [ 'frags' ] . keys ( ) ) for i , x in enumerate ( frag_idxs ) : if ( i == 0 and x != 0 ) : if ( x > 1 ) : logger . warning ( "First {:d} fragments were lost" . format ( x ) ) else : logger . warning ( "First fragment was lost" ) return False elif ( i > 0 and x - frag_idxs [ i - 1 ] != 1 ) : logger . warning ( "Gap between fragment {:d} and fragment " "{:d}" . format ( frag_idxs [ i - 1 ] , x ) ) return False return True