-
Hi all, I would like to create smaller universes of different timeframes (e.g., 2 ps to 5 ps, 3 ps to 6 ps, and so on from an existing universe of 0 ps to 20 ps). What is the best way to achieve this only using the existing universe and without reading or writing any files? |
Beta Was this translation helpful? Give feedback.
Answered by
IAlibay
Dec 25, 2023
Replies: 1 comment 3 replies
-
@rayanc72 Do you mean that you want slices of your trajectory? Would it work for you to just iterate your analysis over the specific sub sections of the trajectory as needed? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rayanc72 I believe that this class uses our standard AnalysisBase class type. To run your analysis over specific frames you can pass the
start
,stop
,step
arguments to therun
method: https://docs.mdanalysis.org/stable/documentation_pages/analysis/base.html#example-of-using-a-standard-analysis-toolThere's also a
frames
argument you can use to pass through a list of frame indices you want to use it that's more useful (it's detailed a bit lower in the above link).