schrodinger.application.msv.gui.blast_search_dialog module

class schrodinger.application.msv.gui.blast_search_dialog.BlastSearchDialog(parent=None)

Bases: PyQt5.QtWidgets.QDialog

A dialog for setting BLAST search parameters.

Variables:blastSearchRequested (QtCore.pyqtSignal) – A signal emitted when the user clicks on ‘Start Search’ button. This will notify the receiver to run the BLAST job. The signal passes a dictionary of BLAST settings and a list of genomes to filter the results with.
blastSearchRequested
confirmRemoteQuery()

Displays a question dialog that asks whether the user would like to confirm performing a remote search whenever a remote search is requested.

Returns:the user’s answer
Return type:bool (Ok) or None (Cancel)
genomes_cbs
getBlastSettings()

Returns BLAST settings as a dictionary.

Returns:Dictionary of BLAST settings.
Return type:dict
getGenomes()

Returns a list of genomes to be used for search results filtering.

Returns:List of genome IDs.
Return type:list of str
setQuerySequence(query_sequence)

Updates the query sequence and sets the window title for the dialog.

Parameters:query_seq (schrodinger.protein.sequence.ProteinSequence) – sequence to perform BLAST search on
startSearch()

Pulls BLAST settings, closes the dialog and emits signal to start the BLAST job.

class schrodinger.application.msv.gui.blast_search_dialog.RemoteQueryMessageBox(parent, save_response_key)

Bases: schrodinger.ui.qt.messagebox.MessageBox

A “Do Not Ask Again” question dialog that asks the user to confirm remote BLAST queries.

getResponse()

Overrides the abstract function in messagebox.MessageBox. The Cancel button maps to None instead of False because the exec_ in MessageBox assigns persistent keys only if the response returned is not None.

Returns:Response to be used in exec_
Return type:bool or None