schrodinger.application.bioluminate.antibody.management module

Module for tools to manage the antibody database

Copyright (c) Schrodinger, LLC. All rights reserved

class schrodinger.application.bioluminate.antibody.management.ActiveDatabaseTable(parent)

Bases: PyQt6.QtWidgets.QTableWidget

Table that is used to show and carry out actions on all databases loaded by user. The databases and whether they are “active” are all stored in the preferences.

HEADERS = ['Path', 'Active', 'Actions']
__init__(parent)

Create a new DatabaseTable instance

setRows(rows)

Sets the rows of the table. The rows argument should have the same format as the output from get_databases.

addRow(row)

Add a row to the table. The row argument should be a tuple of the database path and whether it’s active.

deleteRowAction()

Removes a row from the table.

cannotDeleteAction()

Callback that opens a messagebox that lets the user know that they cannot delete the builtin database row.

getRowData()

Returns a list of the paths and active state for all rows in the table.

class schrodinger.application.bioluminate.antibody.management.ActiveDatabaseDialog(parent)

Bases: PyQt6.QtWidgets.QDialog

Modal dialog window that allows users to set active databases.

__init__(parent)
getTableLayout()

Setup the table that is used to show and carry out actions on all databases loaded by user. The databases and whether they are “active” are all stored in the preferences.

Returns

The layout containing the table and label describing it

addDatabase()

Open a file browser to allow the user to pick a new database file

accept()

Override this base class method so we can set the preferences according to the selections made.

processOldDBs(old_db_paths)

Convert the specified databases to the new format.

Parameters

old_db_paths (list) – list of old database filenames