Module for reading and writing Phase hypotheses.
int
|
|
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. |
|
|
|
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. |
|
|
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. |
|
|
int or None
|
find_site_num(site,
hypo)
This function determines site number for the given feature site by
comparing its name with names of all 'reference' sites in the given
hypothesis. |
|
|