Failed in read in DCD by the latest MSMBuilder

Provide extensible software for building Markov State Models.
POST REPLY
User avatar
Xiaojun Xu
Posts: 8
Joined: Wed Apr 25, 2012 1:33 pm

Failed in read in DCD by the latest MSMBuilder

Post by Xiaojun Xu » Fri May 04, 2012 1:58 pm

Hi All,

On webpage http://wiki.simtk.org/msmbuilder/User_Contributions, we found that "The DCD reader is already included in the latest MSMBuilder releases". However, even when I tried " ConvertDataToHDF.py -s ./dipeptie.pdb -I ~/msmbuilder2.0/Tutorial/DCD" to read the DCD format instead the XTC format from the XTC directory, it failed to find any data. Does this mean MSMBuilder2.0 still do not read any other trajectories than XTC? And if so, why does it include the DCD directory in there? Any answer or suggestions will be greatly appreciated!


Max Xu

User avatar
Alex Dickson
Posts: 3
Joined: Fri Mar 30, 2012 2:07 pm

Re: Failed in read in DCD by the latest MSMBuilder

Post by Alex Dickson » Fri May 04, 2012 2:24 pm

Hi Max,

Try adding " --source=file_dcd " to your ConvertDataToHDF command.

-Alex

User avatar
Joshua Adelman
Posts: 20
Joined: Thu Feb 21, 2008 4:42 pm

Re: Failed in read in DCD by the latest MSMBuilder

Post by Joshua Adelman » Fri May 04, 2012 2:27 pm

Hi Max,

Looking at the source code, ConvertDataToHDF.py has the ability to read .dcd files. I believe your problem however is that you are not supplying the 'source' argument to the script, and the default will only look for .xtc files. So I believe (without testing things however), that if you add:

Code: Select all

--source file_dcd
or

Code: Select all

-S file_dcd
that it will work.

Also as a side note, I don't believe this is documented in the docs. Fortunately, MSMB2 is written in python which for the most part is fairly easy to read and understand. If you look in msmbuilder/Scripts/ArgLib.py you will see a complete list of all available options for the command line tools, along with a description and the default values. You can the entries there to the arglist that is in the __main__ section of a particular script:

Code: Select all

arglist=["projectfn", "PDBfn", "input", "source", "discard", "mingen", "stride", "rmsdcutoff" ]

Josh

User avatar
Xiaojun Xu
Posts: 8
Joined: Wed Apr 25, 2012 1:33 pm

Re: Failed in read in DCD by the latest MSMBuilder

Post by Xiaojun Xu » Fri May 04, 2012 7:39 pm

Hi Alex, Hi Josh,

Thank you so much for your reply! I spent a whole day before I posted it. Seems like I should have done it earlier :) It gives me a heads up that I probably need to look into the scripts more carefully. Thanks again!

Cheers,

Max

User avatar
Joshua Adelman
Posts: 20
Joined: Thu Feb 21, 2008 4:42 pm

Re: Failed in read in DCD by the latest MSMBuilder

Post by Joshua Adelman » Sat May 05, 2012 5:06 am

Before you follow my original advice to start digging through the source, I forgot that MSMB's command line tools are built around python's optparse module (I looked in the source since, when I answered you question, I was on a machine that I didn't have MSMB2 installed), so if you were to issue:

Code: Select all

ConvertDataToHDF.py -h
You would get a lit of all of the command line options and description, which includes:
-S SOURCE, --source=SOURCE
Data source: "file", "file_dcd" or "FAH". This is the
style of trajectory data that gets fed into
MSMBuilder. If a file, then it requires each
trajectory be housed in a separate directory like
(PROJECT/TRAJ*/frame*.xtc). If FAH, then standard FAH-
style directory architecture is required. Default:
"file"

User avatar
Xiaojun Xu
Posts: 8
Joined: Wed Apr 25, 2012 1:33 pm

Re: Failed in read in DCD by the latest MSMBuilder

Post by Xiaojun Xu » Sat May 05, 2012 6:49 pm

This works great, saves me a whole lot of time! Thanks again, Josh! :D

POST REPLY