INNER CODE UNIT · Python

introduce_indels

HadrienG/InSilicoSeq · iss/error_models/__init__.py:158

    def introduce_indels(self, record, orientation, full_seq, bounds):
        """Introduce insertions or deletions in a sequence

        Introduce insertion and deletion errors according to the probabilities
        present in the indel choices list


        Args:
            record (SeqRecord): a sequence record
            orientation (string): orientation of the read. Can be 'forward' or
                'reverse'
            full_seq (Seq): the reference sequence from which mut_seq
                comes from
            bounds (tuple): the position of the read in the full_sequence

        Returns:
            SeqRecord: a sequence record with indel errors
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…