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

Include DOI references in force field XML files #94

Merged
merged 8 commits into from
Mar 14, 2017

Conversation

summeraz
Copy link
Contributor

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 to apply.

@summeraz
Copy link
Contributor Author

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 apply. Also, I'm not sure JSON is the best format for writing these.

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.

@ctk3b
Copy link
Member

ctk3b commented Mar 13, 2017

The argument output_refs could just accept a filename to write them too.

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 .bib entry.

 - 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
@summeraz
Copy link
Contributor Author

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.

@ctk3b
Copy link
Member

ctk3b commented Mar 14, 2017

I think we'd just need to override their bond force generator to inject an extra step.

PR looks good though 👍

@ctk3b ctk3b merged commit 2aa1fb6 into mosdef-hub:master Mar 14, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants