Module for reading and writing Phase hypotheses.
|
|
debug(*args)
Print the given arguments, if in debug mode. |
|
|
|
|
|
|
phase.PhpHypoAdaptor
|
|
|
|
get_entry_hypothesis(entry)
Extract the hypothesis from the given ProjectRow instance, and return
a Hypothesis class for it. |
|
|
|
|
|
|
|
hypo_exists(hypo)
Returns True, if the hypothesis of the given path exists. |
|
|
|
|
remove_hypo_if_present(hypo)
Remove the given hypothesis from disk (if present) |
|
|
|
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. |
|
|
|
|
sorted_hypo_structures(hypothesis_sts)
Sorts a list of structures for PhpHypoAdaptor
- Phase hypothesis CT
- Phase hypothesis reference ligand
- Any additional Phase hypothesis ligands |
|
|
|
list of phase.PhpHypoAdaptor
|
extract_hypotheses(filename)
Extracts all hypotheses from Phase hypothesis file containing
multiple hypotheses |
|
|
|
|
write_hypotheses(hypotheses,
filename,
group=None)
Writes set of PhpHypoAdaptor objects to *_phypo.maegz file. |
|
|