|
partial_structure_reader(filename,
frames_to_check=None)
Iterator that returns the specified frames of the structures in
filename {structure} By default return all frames, but if
frames_to_check { list, set or anything with an "__in__"
method" of integers} is set then the only frames for which their
index (starting with 0) are in frames to check are returned. |
|
|
|
convert_plop_name_to_asl(input_str)
Convert a string specifying a residue or atom into an asl expresion
Input should be in the form <chain>:<resnum><inscode> or
<chain>:<resnum><inscore>:<pdb atom name>
<chain> is the chain id or a _ or no character if space
<resnum> is the residue number (possibly negative)
<inscode> is the pdb insertion code
<pdb atom name> The 4 letter pdb atom name. |
|
|
|
get_moved_residues(ct,
ref_ct,
tolerance)
For a given ct {structure.Stucture} and ref_ct {structure.Structure}
with the same number of atoms in the same order, return a sorted list
with all the residue names (__str__() evaluation of their associated
structure._Residue class) that contains atoms that moved more than a
tolerance {float} in Angstroms. |
|
|
|
get_phi_psi(ct)
Return a dictionary with the key being the name of each residues and
the value being a 2 member list containing the PHI and PSI angles of
that residue |
|
|
|
get_modified_backbone_angles(ct,
ref_ct,
tolerance)
For a given ct {structure.Stucture} and ref_ct {structure.Structure}
with the same number of atoms in the same order, return a sorted list
with all the residue names (__str__() evaluation of their associated
structure._Residue class) that contains atoms that moved either phi
or psi angles more than tolerance {float} in degrees |
|
|
|
check_moved_residues(filename,
reference_fn,
moved_residues,
tolerance=0.01,
check_backbone_dihedrals=False,
frames_to_check=None)
STU workup that will check to see if a list of moved residues {
string the residue names (__str__() evaluation of the
structure._Residue class) separated by spaces} corresponds to the
list of all residue that have an an atom that moved more than
tolerance {float} between any of the frames_to_check in filename (see
partial_structure_reader) and the first structure frame in
reference_fn. |
|
|
|
check_protein_health(filename,
frames_to_check=None,
steric_delta=0.3,
bond_length_deviation=0.15,
protein_health_kwargs=None)
Use the featurs in structurecheck to identify potential problems in
the structure. |
|
|
|
measure_distance(ct1,
name1,
ct2,
name2)
For a given structure ct1 {structure.Structure} and the Plop residue
or atom name name1 {string, described convert_plop_name_to_asl} and a
second ct2 {structure.Structure}, name2 {string} pair following the
same convention, return the minimum distance between the two. |
|
|
|
check_distance(filename,
name1,
name2,
distance,
tolerance,
frames_to_check=None)
STU workup For the specified structure frames in a filename {string}
return True if the minimum distance between the atom or residue name1
{string} is distance {float} +- tolerance{float} Angstroms. |
|
|
|
check_torsion(filename,
name1,
name2,
name3,
name4,
value,
tolerance=10,
frames_to_check=None)
STU workup
For the specified structure frames in a filename {string} return True
if the torsion between atoms with names name1-4 {string} is
value {float} +- tolerance{float} degrees. |
|
|
|
|
|
check_structure_counts(filename,
atoms=None,
residues=None,
molecules=None,
frames_to_check=None)
STU workup For the specified structure frames in a filename {string}
return True if all contain the specified numbers of atoms{integer},
residues{integer}, and molecules{integer}, If any of these are not
set then that test is skipped. |
|
|
|
determine_truth_table(filename,
property,
reference_property,
cutoff=None,
reverse=False,
frames_to_check=None)
Return a truth table as a dictionary with keys tp, tn, fp, fn &
"no prediction" with the number of frames where the prediction is
a True Positive, True Negative, False Positive, False Negative
or no prediction was provided. |
|
|
|
check_prime_accuracy(min_accuracy,
filename,
property,
reference_property,
cutoff=None,
reverse=False,
frames_to_check=None)
STU Workup that will check if the accuracy of a predictors is more
than some cutoff value and raise an assertion error otherwise
usage:
min_accuracy {float 0.0 - 1.0},
filename {string with path of file readable by StructureReader}
property{string with the property name of predicted value stored as
ct-level property in the structures within filename }
reference property{string with the property name of the reference value
stored as ct-level property filename}
cufoff=cutoff { variable that supports >= on property (usually int or
float}
reverse=reverse { Boolean}
frame_to_check {string with the indicies of frames within filename
to process}
By default the value in property will be converted to a boolean, however
the cutoff {variable that supports >=} is defined then a predicted
value of True will given whenever the value is greater than this
cutoff. |
|
|
|
check_F1_score(min_F1,
filename,
property,
reference_property,
cutoff=None,
reverse=False,
frames_to_check=None)
STU Workup that will check if the F1 Score of a predictors is more
than some cutoff value and raise an assertion error otherwise
usage:
min_f1 {float 0.0 -1.0),
filename {string with path of file readable by StructureReader}
property{string with the property name of predicted value stored as
ct-level property in the structures within filename }
reference property{string with the property name of the reference value
stored as ct-level property filename}
cufoff=cutoff { variable that supports >= on property (usually int or
float)}
reverse=reverse {Boolean)
frame_to_check {string with the indicies of frames within filename
to process}
By default the value in property will be converted to a boolean, however
the cutoff {variable that supports >=} is defined then a predicted
value of True will given whenever the value is greater than this
cutoff. |
|
|
|
check_ct_property(filename,
property_name,
value,
tolerance=' = ' ,
frames_to_check=None)
STU Workup For a specified structure in a filename {string} return
True if the property named property_name{string} is equal to value
{any type} If tolerance is ">", "<",
">=" or "<=" than use that operation
instead of equals. |
|
|
|
check_ct_property_unique(filename,
property_name,
tolerance=1e-05,
frames_to_check=None)
Raise an assertion error if there are entries with duplicated values
of a given ct-level property. |
|
|