3b2380c30645620e984c3ddb8a917f3a3773800b,src/biopython/application/blast/webapp.py,BlastWebApp,__init__,#BlastWebApp#Any#Any#Any#Any#Any#Any#,59

Before Change


                if isinstance(sequence, ProteinSequence) != requires_protein:
                    raise ValueError("Query type is not suitable for program")
        elif isinstance(query, Sequence):
            self._query = query.copy()
        else:
            if requires_protein:
                self._query = ProteinSequence(str(query))
            else:

After Change


        elif isinstance(query, Sequence):
            self._query = str(query)
        else:
            self._query = query
        
        // Check for unsuitable symbols in query string
        if requires_protein:
            ref_alphabet = ProteinSequence.alphabet
        else:
            ref_alphabet = NucleotideSequence.alphabet_amb
        for symbol in self._query:
            if not symbol.upper() in ref_alphabet:
                raise ValueError("Query sequence contains unsuitable symbols")
        
        self._database = database
        self._gap_openining = None
        self._gap_extension = None
        self._word_size = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biotite-dev/biotite
Commit Name: 3b2380c30645620e984c3ddb8a917f3a3773800b
Time: 2017-10-26
Author: patrick.kunzm@gmail.com
File Name: src/biopython/application/blast/webapp.py
Class Name: BlastWebApp
Method Name: __init__


Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: use_params


Project Name: pyinstaller/pyinstaller
Commit Name: f1a093ebed17dab737153888733c06ed807b6746
Time: 2015-05-11
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: TOC
Method Name: __sub__