-
Notifications
You must be signed in to change notification settings - Fork 67
Add ability to pass user-specified 1D data sets to PDB file output. #724
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
Conversation
…list properly passed in to output traj setup routines.
… can potentially be used with the occupancy column
Jenkins failure is pytraj-related; the call to |
is it because of below changes
I have several questions (just for discussion, I can have pytraj follow cpptraj's change).
|
Yes, they're called "default" arguments I think. So you can e.g. define something like this: int myfunction(int x, int y, int z = 0) {
printf("X=%i Y=%i Z=%i\n", x, y, z);
} and calling like so myfunction(10, 20); produces myfunction(10,20,30); produces
|
yeah, please. I have impression that this is too much (87 files changed) for adding new data to b-factor column. :D (of course, I have very shallow judge just from the description + the number of files :D). g9 bro. |
So there are two reasons there were so many changes. First, letting output trajectories know about data sets is necessary to get the B-factor etc functionality working. Since output trajectories are used all over the place, this involves modifying a lot of function calls. I would probably be doing myself a favor by wrapping all of those arguments into a class (similar to how I made a The second is that I'm experimenting with using forward declarations as a way of speeding up compile time. This involves reorganizing a lot of |
Thanks for the explanation.
|
make[1]: Entering directory '/iscratch/jenkins-cuda/workspace/amber-github/cpptraj/test' -------------------------------------------------------------------------- The value of the MCA parameter "plm_rsh_agent" was set to a path that could not be found: plm_rsh_agent: ssh : rsh Please either unset the parameter, or check that the path is correct
This pull request introduces 3 alerts when merging 10d0e35 into 8a604ef - view on LGTM.com new alerts:
Comment posted by LGTM.com |
This pull request introduces 3 alerts when merging fbee75a into 8a604ef - view on LGTM.com new alerts:
Comment posted by LGTM.com |
@hainm for now, I've re-introduced the old form of |
thanks @drroe |
Did this feature (e.g., the addition of
|
Unfortunately this feature didn't make it in until 4.14.4. If possible, you can use the version direct from GitHub to get this functionality right away. I'm not sure what the timeline is for releasing the next version on conda is. |
Got it -- thanks. I tried to quickly compile a version I cloned from GitHub earlier today, but immediately ran into problems with |
If you don't need to read bzip2 files natively just configure with |
Of course, whoops. Yup, this worked as intended and I tested the script and B-factors are being written properly. Thanks! Despite doing the RMS fit, I get quite high values, but they seem suitable for my purposes (many in the range 20-50, but I do see some values near ~1000, and it looks like things just start to increase towards the end of the C-terminus -- which makes sense as that is definitely flopping around in the simulation -- but I still wouldn't have expected such high numbers). |
It's important to keep in mind that these aren't really "B-factors" in the standard (i.e. crystallographic) sense. Unless you're doing crystal simulations, the environment in which you would get experimental B-factors likely differs quite a bit from the environment you're running your MD simulations in. The numbers you're getting out of this calculation are just normalized atomic fluctuations. For proteins in solution comparing to something like NMR order parameters (if they're available) is a better bet. |
Great point & I agree. Thanks, Dan. |
Should address #721. This allows e.g. printing PDB files with B-factors calculated from
atomicfluct
among other things. Adds several new keywords to PDB trajectory output:The following is an example of how it can be used with
atomicfluct
:Also adds tests and updates the manual.