Trees | Indices | Help |
|
---|
|
Provides functions for comparing structure files. Supersedes the compare_mae_files workup requested in QA-293. This set of workups was requested in QA-1165.
Can be run as a script to compare two files:
$SCHRODINGER/run structure_comparisons.py filename.mae reference_file.mae
Copyright: (c) Schrodinger, LLC All rights reserved.
|
|||
StructureMismatch | |||
CompositeFailure Failures with lists or dicts of nested differences. |
|
|||
bool |
|
||
|
|||
bool |
|
||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
|
|
|||
logger = log.get_logger('test_backend')
|
|||
_DEFAULT_TOLERANCE = 0.005
|
|||
IGNORE =
|
|||
__package__ =
|
|
Check that the values of the CT-level properties in
examples: compare_ct_properties(chk.mae, ref.mae, tol=0.05) Compare all CT properties with a tolerance of +/- 0.05 compare_ct_properties(chk.mae, ref.mae, r_m_pdb_PDB_R, s_m_source_file, tol=0.05) Compare r_m_pdb_PDB_R and s_m_source_file with a tolerance of +/- 0.05 on numeric comparisons. compare_ct_properties(chk.mae, ref.mae, r_m_pdb_PDB_R, i_m_source_file_index, i_m_source_file_index=1) Compare r_m_pdb_PDB_R and i_m_source_file_index with a tolerance of +/- 1 on i_m_source_file_index, use the default tolerance of 0.005 on other numeric comparisons. compare_atom_properties(chk.mae, ref.mae, s_m_source_file=IGNORE) Compare all atom properties except the string property s_m_source_file.
|
Check that the values of the atom-level properties in
examples: compare_atom_properties(chk.mae, ref.mae, tol=0.05) Compare all atom properties with a tolerance of +/- 0.05 on numeric comparisons. compare_atom_properties(chk.mae, ref.mae, r_m_pdb_tfactor, s_m_chain_name, tol=0.05) Compare r_m_pdb_tfactor and s_m_chain_name with a tolerance of +/- 0.05 on numeric comparisons (r_m_pdb_tfactor). The string comparison (s_m_chain_name) is still required to match exactly. compare_atom_properties(chk.mae, ref.mae, r_m_pdb_tfactor, i_m_residue_number, i_m_residue_number=1) Compare r_m_pdb_tfactor and i_m_residue_number. Use a tolerance of +/- 1 on i_m_residue_number, use the default tolerance of 0.005 on other numeric comparisons (that is, r_m_pdb_tfactor). compare_atom_properties(chk.mae, ref.mae, s_m_chain_name=IGNORE) Compare all atom properties except the string property s_m_chain_name.
|
Check that the values of the bond-level properties in
|
Split arguments with equals in them. This lets us emulate keyword arguments in STU workups. Returns the updated args list. Anything in |
Check the property dictionaries of two things, ensuring that the listed properties match. If no properties are listed, all are compared. If the special tolerance value "IGNORE" appears in the tolerance dictionary, that property is ignored. Properties with "=" in the name are considered tolerances, and are split on the "=". This is because of the way the arguments are passed to STU workups. |
After rotating molecules into the same frame of reference, check that
the RMSD between matched cts in If your structures contain dummy atoms, use rmsd_in_place. |
Check that that RMSD between matched cts in |
Compare number of atoms in every CT of structure file
|
Check that all atom, bond and CT level properties of matched cts in
Default tolerance is 0.005, but can be overridden with the tolerance keyword "tol". String properties are required to be identical. If the special tolerance value "IGNORE" appears in the tolerance dictionary, that property is ignored. RMSD tolerance can be specified with the tolerance keyword "rmsd". examples: compare_mae_files(chk.mae, ref.mae, tol=0.05) Compare all atom, bond, and CT properties with a tolerance of +/- 0.05. Also compare RMSD and bonding. compare_mae_files(chk.mae, ref.mae, tol=0.05, rmsd=0.05) Compare all atom, bond, and CT properties with a tolerance of +/- 0.05. Also compare RMSD with a tolerance of 0.05, and compare bonding. compare_mae_files(chk.mae, ref.mae, r_m_pdb_tfactor=0.05, i_m_source_file_index=1) Compare all atom, bond, and CT properties, with a tolerance of +-0.05 for r_m_pdb_tfactor and +/-1 for i_m_source_file_index; other numeric comparisons use the default tolerance of 0.005. Also compare RMSD and bonding. compare_mae_files(chk.mae, ref.mae, r_m_pdb_tfactor=0.05, s_m_chain_name=IGNORE) Compare all atom, bond, and CT properties except s_m_chain_name, with a tolerance of +-0.05 for r_m_pdb_tfactor; other numeric comparisons use the default tolerance of 0.005. Also compare RMSD and bonding.
|
Iterate over the structures in two files. If there is a length mismatch, raise an AssertionError. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 00:59:32 2016 | http://epydoc.sourceforge.net |