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

Printing out ATOM IDS corresponding each argument while rendering using plumed writer #5

Open
sbhakat opened this issue Jun 13, 2018 · 3 comments

Comments

@sbhakat
Copy link

sbhakat commented Jun 13, 2018

Hi,

I managed to get the TICA coefficients in a Plumed format for my contact features (see the attached document). However I want a smart way print out the ATOM IDs associated with the contact features so that I can construct the plumed file easily. Suggestions will be highly appreciated.

Please see the bottom of the attached document for the code

bpti_msm_met52n.pdf

@msultan
Copy link
Owner

msultan commented Jun 13, 2018

hmm, thats an msmbuilder issue i think. Can you try the following :

feat = ContactFeaturizer(scheme='ca', contacts=np.array(contactlist))

instead of what you have now.

feat = ContactFeaturizer(scheme='CA',contacts=np.array(contactlist))

i think the capitalized "CA" is causing some weird edge case here.

@sbhakat
Copy link
Author

sbhakat commented Jun 14, 2018

I managed to get it working by following script

atind=[5,37,43,55,75,85,104,127,141,147,168,182,197,203,213,235,245,269,288,307,331,352,372,393,407,417,439,449,456,475,485,502,516,536,552,573,580,587,597,621,631,653,677,691,705,725,747,758,768,783,795,805,822,846,860,870,877,884]
for f in feat.describe_features(ds[0]):
    [a,b]=f['resids']
    print("DISTANCE ATOMS=%d,%d"%(atind[a-1], atind[b-1]))

Now another silly problem though, I made the plumed.dat file however while testing with driver it is giving an error like ERROR in input to action COMBINE with label tic0 : keyword PERIODIC is compulsory for this action

But I already set the PERIODIC=NO I am not sure why this error. Any input? File attached herewith.

plumed.txt

@msultan
Copy link
Owner

msultan commented Jun 14, 2018

This must be that the distances that need to have "PERIODIC=FALSE" not the tica coordinate.

Also, you could try to just update the featurizer since it can automatically generate the correct data frame for you. That way their is one less source of error for if you want to try more/less contacts. If you end up using this, make sure to compare the plumed output with the tica results.

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