96a51024a383d56a2be823d61b10c09020d2f2cd,src/biotite/sequence/io/fasta/convert.py,,_convert_to_sequence,#Any#,192

Before Change


    except AlphabetError:
        pass
    try:
        return NucleotideSequence(nuc_seq_str, ambiguous=True)
    except AlphabetError:
        raise ValueError("FASTA data cannot be converted either to "
                         ""NucleotideSequence" nor to "ProteinSequence"")

After Change


            seq_str = seq_str.replace("U", "C")
        else:
            warn = False
        prot_seq = ProteinSequence(seq_str)
        // Raise Warning after conversion into "ProteinSequence"
        // to wait for potential "AlphabetError"
        if warn:
            warnings.warn(
                "ProteinSequence objects do not support selenocysteine (U), "
                "occurrences were substituted by cysteine (C)"
            )
        return prot_seq
    except AlphabetError:
        raise ValueError("FASTA data cannot be converted either to "
                         ""NucleotideSequence" nor to "ProteinSequence"")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biotite-dev/biotite
Commit Name: 96a51024a383d56a2be823d61b10c09020d2f2cd
Time: 2020-11-10
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/io/fasta/convert.py
Class Name:
Method Name: _convert_to_sequence


Project Name: biotite-dev/biotite
Commit Name: 009b79630bcfd78d97b3aa8e910495f9cd8ede7a
Time: 2018-11-19
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/io/fastq/file.py
Class Name: FastqFile
Method Name: __getitem__


Project Name: biotite-dev/biotite
Commit Name: c56502495fe023f3fd918bdaf705fa857f0b7c5c
Time: 2018-06-21
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/io/fasta/convert.py
Class Name:
Method Name: _convert_to_sequence