bb958949caaba2341ae5662c484d5106d68e4aed,prody/ensemble/functions.py,,refineEnsemble,#Any#Any#Any#,622
Before Change
from numpy import argsort
////// obtain reference index
rmsd = ensemble.getRMSDs()
ref_i = np.argmin(rmsd)
////// calculate pairwise RMSDs //////
RMSDs = ensemble.getRMSDs(pairwise=True)
After Change
// rmsd = ensemble.getRMSDs()
// ref_i = np.argmin(rmsd)
ref_i = kwargs.pop("ref", 0)
if isinstance(ref_i, Integral):
pass
elif isinstance(ref_i, str):
labels = ensemble.getLabels()
ref_i = labels.index(ref_i)
else:
LOGGER.warn("cannot found any conformation with the label %s in the ensemble"%str(ref_i))
if not ref_i in P:
P = [ref_i] + P
////// calculate pairwise RMSDs //////
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: prody/ProDy
Commit Name: bb958949caaba2341ae5662c484d5106d68e4aed
Time: 2019-04-15
Author: hongchun@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: refineEnsemble
Project Name: prody/ProDy
Commit Name: 54a02c7a3ca3cce7e62f92e0a27244d27f8d9e83
Time: 2019-02-08
Author: hongchun@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: refineEnsemble
Project Name: flow-project/flow
Commit Name: fcfafff3eb05887529fd4b85a21b3d1c913c3062
Time: 2017-09-25
Author: eugenevinitsky@airbears2-10-142-38-22.airbears2.1918.berkeley.edu
File Name: cistar/envs/intersection_env.py
Class Name: IntersectionEnvironment
Method Name: get_distance_to_intersection