Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extended similarity comparison functionality (#1051)
* Protect against null data set * Add brute force trajectory refinement script * Add libnpy files. https://github.com/llohse/libnpy * Start ability to read numpy array * Read the data. Not in a data set yet. * Convert to COORDS array. Right now this is purely for comparing against MDANCE * Add note about libnpy to README * Not yet set up for fortran ordering * Start crdtransform action * Enable crdtransform * Add initial rms calc when doing by brute force. Add crdtransform test. * State not needed * Fix bug in keep action that prevented it from working with crdaction * Add normcoords * Update dependencies * Add mask to rms when doing refine. Add norm test. * Add test saves * Use overall min/max for normalization * Update for normalizing with overall min and max * Change test name * Actually test the brute-force refinement * Put each test in a separate function * Start trim outliers functionality * Start ExtendedSimilarity class * Start comparison for COORDS set * Add MSD * Dont do the direct coords comparison in extended similarity yet. Start doing the MSD comparison from crdtransform. * Test trim. Not working yet * Fix normalization and summation * Redirect to a separate file for easier testing * Try to simplify passing in options * Add coincidence threshold and weight factor options * Move options setup to outside the loop * More checks. Do confidence threshold * Use function pointers for weight array routines * Start implementing index arrays * DO counts * Start processing indexed arrays * Add absolute version of function * Dissimilarity array * Sum arrays * Add documentation, make format easier to compare * Place counters into their own class * Add ability to choose metric * Try to implement bub * Make all counters double to avoid any issues with type conversions. Finish bub * Do the rest of the metrics * Hide some debug info * Hide some debug info * Sort indices * Start creating output COORDS set if needed * Ensure new output coords are set up * Start handling cases where the length of input coord set will be modified * Do allocation if length will not be modified * Test using new output coords * Populate trim output set * Add trimcoords test save * Fold Opts into ExtendedSimiliarity * Start code for medioid. * Add criterion option * Start the sim to medoid code * Actually remove frames for medoid trim * Add trim coords medoid test * Test create new coords set for trim * Improve docs, remove old code * Hide some debug info * Add separate extended comparison command class * Clean up messages, hide more debug * Enable extended comparison command, improve help * Add out keyword * Move SetDim so user args are not overwritten * Add ability to set all atoms into a single molecule for pseudo topologies * No longer hidden * Update manual. * Revision bump for crdtransform and extendedcomp
- Loading branch information