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

Extracting pdb structures #298

Open
GSINGH006 opened this issue Aug 5, 2024 · 3 comments
Open

Extracting pdb structures #298

GSINGH006 opened this issue Aug 5, 2024 · 3 comments

Comments

@GSINGH006
Copy link

Hi, is there a method in Deeptime similar to Pyemma's " pyemma.coordinates.save_traj" which can be used to extract pdb structures representing macrostates after coarse-graining using PCCA+

@clonker
Copy link
Member

clonker commented Aug 6, 2024

There is no direct MD dependency in deeptime so in that sense, no, but you can use deeptime to estimate your models and extract the indices, put these into pyemma :)

@GSINGH006
Copy link
Author

GSINGH006 commented Aug 11, 2024

Hi @clonker I am using the following code for the same

dtrajs = []
for projected_trajectory in tics:
dtrajs.append(clustering.transform(projected_trajectory))
**msm = MaximumLikelihoodMSM(lagtime=50).fit_fetch(dtrajs)
nstates = 3
cg = msm.pcca(nstates)
pcca_dist1=cg.metastable_distributions
indices = dt.markov.sample.compute_index_states(dtrajs)
ind=dt.markov.sample.indices_by_distribution(indices,distributions=pcca_dist1,nsample=1)
pyemma.coordinates.save_traj(traj_list, ind[0],'/home/lab/samples_pcca1.xtc' , top=topfile)
Is this the correct way to extract the indices and use them for getting the representative structures?
what does nsamples in this function exactly represent?
Thank you

@GSINGH006
Copy link
Author

Hi, Moritz @clonker is this the right way to get the representative structures ?

@GSINGH006 GSINGH006 reopened this Nov 6, 2024
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