-
Notifications
You must be signed in to change notification settings - Fork 26
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
Create qube_to_PrmRst.py #348
base: devel
Are you sure you want to change the base?
Conversation
Hi there, I'll take a closer look tomorrow, but since this a standalone script I can't foresee any issues. Just a couple of quick comments:
Cheers. |
picking up on Lester's comments
|
@lohedges , sorry I didn't see the notification earlier, good points! |
I wrote a unit test that generates amber files, calculates the energies using the amber and qube files separately and then uses Regarding the solvated system, the xml files that are available contain parameters just for one molecule, so I'm not sure we can test this case. QUBEKit generates parameters for individual molecules either way. I was also looking at the documentation of Sire to find a way to convert to gro/top. |
Hi @SofiaBariami, I should hopefully be able to take a proper look at this tomorrow or Friday.
Ideally the test would run your script as a subprocess, rather than re-implementing everything in the test. That way you only ever need to update things in one place, i.e. the original script, and it also serves as a test of the way the user would interact with it from the command-line.
I assume this is because you are trying to convert from the Sire System you create directly to the GroTop, so you are missing some properties that are required by the parser. You could just manually create an appropriate MMDetail object and add that as a molecule property before passing the system to the GroTop constructor. Alternatively, you could see what happens when you create an AMBER system (like you currently do) then convert that system to GROMACS. Assuming the MMDetail created by the AMBER parser is compatible it should work okay. There are some issues with scale factors being lost on conversion with OPLS-style force fields, however. See this issue thread for a discussion and workaround. |
Hi @SofiaBariami. Just to note that I've moved your QUBE tests to a separate feature branch here and deleted them from devel. If you need to make edits, please do so on the feature branch then issue a pull request to the devel branch when you're happy. Since any commit to Sire's devel branch runs unit tests against the devel branch of SireUnitTests, they would fail if we happen to add more commits before accepting this pull request. (Since the QUBE conversion code wouldn't yet be included, although since you've reproduced the entire script in the test it might be okay.) General practice is to create a matching feature branch on SireUnitTests when there are tests that accompany a pull request. That way I can check that they pass locally, then merge the SireUnitTests pull request, then finally merge the Sire pull request itself. Cheers. |
Reads qubekit output files (pdb/xml) and converts them to amber format (prm7/rst7) to use them with Sire
usage: ~/sire.app/bin/qube_to_PrmRst -p PDB_FILE -x XML_FILE