Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Is it possible to use pyemma.msm.its on the dtrajs after using TICA on the features? #1608

Open
hima111997 opened this issue Jul 10, 2023 · 0 comments

Comments

@hima111997
Copy link

Is it possible to use pyemma.msm.its on the dtrajs after using TICA on the features?

def sample_k_centers_after_tica(n, data):        
    cl_original = pyemma.coordinates.cluster_kmeans(data= data, k=n, stride=1, max_iter=40)
    its = pyemma.msm.its(cl_original.dtrajs, lags=[1, 2, 5, 10, 20, 50], nits=5, errors='bayes',n_jobs=1)
    fig, axes = plt.subplots(1, 1, figsize=(12, 3))
    pyemma.plots.plot_implied_timescales(its, ax=axes, units='100 ps')
    axes.set_title(f'ITS figure at K={n}')
    fig.tight_layout()

lags = [1, 10,20]
clusters = [100,200,300]
for l in lags:
    tica = pyemma.coordinates.tica(data, dim=3, lag=l, kinetic_map=False)
    for c in clusters:    
        sample_k_centers_after_tica(c, tica)

and if it is possible, which lag should i use? the l variable in the for loop or the lag time after which the ITS converges?

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

No branches or pull requests

1 participant