Module for reading and writing Phase hypotheses.
PhaseHypothesisMonitor
|
get_hypo_monitor()
This function returns global PhaseHypothesisMonitor object that
should be used to monitor signals emitted when hypothesis is changed. |
|
|
str
|
|
list of project.ProjectRow
|
_get_hypothesis_rows(hypo_entry_id)
Collects all entries in the group associated with the passed
hypothesis entry ID, which contain the same hypothesis ID property
value. |
|
|
PhaseHypothesis
|
|
|
convert_project_hypotheses(project_handle)
Converts all hypothesis datafiles in the original Phase format into
PhaseHypothesis (PhpHypoAdaptor) objects. |
|
|
list of lists of ints
|
get_ligand_groups(ligand_sts)
Groups ligands in an analagous way to phase_database, iterating
through the list of ligands and checking if the previous ligand has
the same title and connectivity. |
|
|
bool
|
is_hypothesis_entry(entry_id)
Returns whether project table row is a Phase hypothesis entry or not. |
|
|
|
sorted_hypo_structures(hypothesis_sts)
Sorts a list of structures for PhaseHypothesis
- Phase hypothesis CT
- Phase hypothesis reference ligand
- Any additional Phase hypothesis ligands |
|
|
list of PhaseHypothesis
|
extract_hypotheses(filename)
Extracts all hypotheses from Phase hypothesis file containing
multiple hypotheses |
|
|
|
write_hypotheses(hypotheses,
filename,
group=None)
Writes set of PhaseHypothesis objects to *_phypo.maegz file. |
|
|