You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would it make sense to consider switching this to instead be results.pair_distances (maybe even making it a pairs x times 2D ndarray?
Additionally, I suggest to transpose so that the first axis corresponds to time frame and the second axis to pair index:
results.pair_distances[:, j] # time series of pair jresults.pair_distances[-1] # all distances at the last time frame
The "one observation per row" layout is canonical and also used e.g. in the RMSD results.
Describe alternatives you've considered
Don't change anything... but this makes this module behave and feel different from the others and tools such as mdacli might have a hard time working with it — comments by @PicoCentauri and @joaomcteixeira especially welcome on how to best structure results.
I am willing to ignore semver here and change Results and anything else that needs changing in a breaking manner between 2.2 and 2.3, based on the fact that the module is in its infancy and is effectively experimental and likely has not had much uptake yet, so we're not going to hurt many users. It's much more important to define the API well (and not be bogged down with deprecations and crud code).
The text was updated successfully, but these errors were encountered:
…ir_distances [Issue 3744] (#3958)
Fixes#3744
* Deprecated `times` and indices based results
* Remove populating of times separately from the main class
* Add comments to remove deprecations in 2.5.0
Is your feature request related to a problem?
The new experimental
nucleicacids
analysis module contains themdanalysis/package/MDAnalysis/analysis/nucleicacids.py
Line 61 in c01d82b
Results
dict. The content is different from what other AnalysisBase-based classes use in that.times
attribute coming from AnalysisBaseSpecifically, for each of the selections, a dict is stored
mdanalysis/package/MDAnalysis/analysis/nucleicacids.py
Lines 134 to 135 in c01d82b
dist
is an array of distances.The "selections" are the individual base pairs so in order to query the distance of base pair
j
at time framet
I would useresults[j][t]
.Please correct me, @ALescoulie , if I misrepresented anything here.
Describe the solution you'd like
@IAlibay 's suggestion (from #3735 (review)) :
Additionally, I suggest to transpose so that the first axis corresponds to time frame and the second axis to pair index:
The "one observation per row" layout is canonical and also used e.g. in the RMSD results.
Describe alternatives you've considered
Don't change anything... but this makes this module behave and feel different from the others and tools such as mdacli might have a hard time working with it — comments by @PicoCentauri and @joaomcteixeira especially welcome on how to best structure
results
.Additional context
The text was updated successfully, but these errors were encountered: