Open MD Movie Trajectorie from plugin
Hello all!
It is possible to open the MD Movie trajectory with a custom format and a file from a plugin?
I am trying to do this:
*from Movie.gui import MovieDialogfrom Trajectory import EnsembleLoaderEnsembleLoader.loadEnsemble(MovieDialog, movieFile="/Users/ME/Desktop/movie.pdb")*
**But I get this error
*ValueError: Unknown trajectory format: 'MODEL 0'*
* File "/Applications/Chimera.app/Contents/Resources/share/Trajectory/EnsembleLoader.py", line 131, in loadEnsemble* * raise ValueError("Unknown trajectory format: '%s'" % format)*
*See reply log for Python traceback.*
I think it is because I need to set the format (self.curFormat in the EnsembleLoader class) but it is not possible. How can I solve this?
Thank you so much
The ‘movieFile’ argument to EnsembleLoader.loadEnsemble is expected to be a “metafile” as documented here:
MD Movie http://www.cgl.ucsf.edu/chimera/current/docs/ContributedSoftware/movie/movie.html (third paragraph after the first table)
So, one option is to use a path to a metafile as that argument. To use the PDB file directly as the argument, you need to import loadEnsemble from the PDB format module, like so:
from Trajectory.formats.Pdb import loadEnsemble
Then call it as:
loadEnsemble((“single”, "/Users/ME/Desktop/movie.pdb”), None, None, MovieDialog)
—Eric
Eric Pettersen UCSF Computer Graphics Lab
On May 14, 2017, at 6:21 AM, Pablo Solar Rodríguez pablosolar.r@gmail.com wrote:
Hello all!
It is possible to open the MD Movie trajectory with a custom format and a file from a plugin?
I am trying to do this:
from Movie.gui import MovieDialog from Trajectory import EnsembleLoader EnsembleLoader.loadEnsemble(MovieDialog, movieFile="/Users/ME/Desktop/movie.pdb") But I get this error
ValueError: Unknown trajectory format: 'MODEL 0'
File "/Applications/Chimera.app/Contents/Resources/share/Trajectory/EnsembleLoader.py", line 131, in loadEnsemble raise ValueError("Unknown trajectory format: '%s'" % format)
See reply log for Python traceback.
I think it is because I need to set the format (self.curFormat in the EnsembleLoader class) but it is not possible. How can I solve this?
Thank you so much
--
Pablo Solar Rodríguez
pablosolar.r@gmail.com mailto:pablosolar.r@gmail.com
Chimera-dev mailing list Chimera-dev@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev
Hello Eric,
It perfectly worked! Thank you a lot!
Regards :)
2017-05-15 20:12 GMT+02:00 Eric Pettersen pett@cgl.ucsf.edu:
The ‘movieFile’ argument to EnsembleLoader.loadEnsemble is expected to be a “metafile” as documented here:
MD Movie http://www.cgl.ucsf.edu/chimera/current/docs/ContributedSoftware/movie/movie.html (third paragraph after the first table)
So, one option is to use a path to a metafile as that argument. To use the PDB file directly as the argument, you need to import loadEnsemble from the PDB format module, like so:
from Trajectory.formats.Pdb import loadEnsemble
Then call it as:
loadEnsemble((“single”, "/Users/ME/Desktop/movie.pdb”), None, None, MovieDialog)
—Eric
Eric Pettersen UCSF Computer Graphics Lab
On May 14, 2017, at 6:21 AM, Pablo Solar Rodríguez pablosolar.r@gmail.com wrote:
Hello all!
It is possible to open the MD Movie trajectory with a custom format and a file from a plugin?
I am trying to do this:
*from Movie.gui import MovieDialogfrom Trajectory import EnsembleLoaderEnsembleLoader.loadEnsemble(MovieDialog, movieFile="/Users/ME/Desktop/movie.pdb")*
**But I get this error
*ValueError: Unknown trajectory format: 'MODEL 0'*
- File
"/Applications/Chimera.app/Contents/Resources/share/Trajectory/EnsembleLoader.py", line 131, in loadEnsemble*
- raise ValueError("Unknown trajectory format: '%s'" % format)*
*See reply log for Python traceback.*
I think it is because I need to set the format (self.curFormat in the EnsembleLoader class) but it is not possible. How can I solve this?
Thank you so much
--
*Pablo Solar Rodríguez*
*pablosolar.r@gmail.com pablosolar.r@gmail.com*
Chimera-dev mailing list Chimera-dev@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev
participants (2)
-
Eric Pettersen
-
Pablo Solar Rodríguez