-
Notifications
You must be signed in to change notification settings - Fork 76
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
Include DOI references in force field XML files #94
Conversation
Right now the file that is generated has a default filename that cannot be changed by the user. This is probably not a good idea...but I also didn't want to add too many new arguments to Right now a DOI is printed for each atom type in a structure that has had a force field applied. I'm not sure if this is the behavior we want, or if we just want to print out the unique DOI references. I've included some DOI references in the OPLS force field XML file, only those references found in 10.1021/ja9621760. As it turns out some of the parameters in 10.1021/ja9621760 are duplicates from older OPLS papers (for example, the parameters for opls_145 are included in 10.1021/ja9621760, but were actually derived in 10.1021/ja00168a022), so I'm not sure which DOI is best to use. |
The argument I think ideally, the output file should be something like a bibtex file. You can use a snippet like https://gist.github.com/jrsmith3/5513926 to resolve the DOIs to a |
- File name specified by user using 'references_file' arg - Add docstring to apply() - Refs are written in Bibtex format, one entry per unique reference - Atom types using a given reference are listed in the Bibtex 'note' field
Something else that could be useful would be having the ability to add DOI's to bonded parameters. This is a little bit trickier, and I'm not sure how exactly this would work yet since I think currently those are all read by OpenMM. |
I think we'd just need to override their bond force generator to inject an extra step. PR looks good though 👍 |
A
doi
attribute can now be included in force field XML files. The doi references for all atom types in a structure can be printed to a JSON file by providing an additional argument toapply
.