Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with issues related to Active set #304

Open
GSINGH006 opened this issue Feb 3, 2025 · 2 comments
Open

Dealing with issues related to Active set #304

GSINGH006 opened this issue Feb 3, 2025 · 2 comments

Comments

@GSINGH006
Copy link

Hi @clonker recently while building a msm i faced a issue where my state fraction was less than 1 I know that msm is built on the active sets but i wanted indices for the states after performing pcca+ "deeptime.markov.sample.indices_by_distribution " but due to shape mismatch that was not possible how should I proceed with this case ?

@clonker
Copy link
Member

clonker commented Feb 3, 2025

I assume you want to sample in pcca state space then? In that case you have to map the actual state of the trajectory to the pcca state (via the pcca model sets property). Although this is argmaxed. For a real quantitative analysis, you should be using the assignment probabilities and take it from there. Generally, if states in a trajectory are not within the active set you should filter them out. Then, depending on your use case, you should either divide up the trajectories into individual chunks of states that do not leave the active set or you just remove the non-active data. The latter can only be done if subsequent analysis does not rely on time correlations.

@GSINGH006
Copy link
Author

GSINGH006 commented Feb 3, 2025

@clonker So,I just want to sample structures from that particular states I first use this indices = dt.markov.sample.compute_index_states(dtrajs) to get indices then pcca_dist=cg.metastable_distributions to get metastable distributions followed by dt.markov.sample.indices_by_distribution(indices,distributions=pcca_dist1,nsample=100) , so length of indices list obatined from compute_index_stateswill be equal to my K value in K means can I remove the states from indices here which are not part of the cg.sets as I just want the structures belonging to that state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants