[chimera-dev] Open MD Movie Trajectorie from plugin

Eric Pettersen pett at cgl.ucsf.edu
Mon May 15 11:12:48 PDT 2017


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 at 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 at gmail.com <mailto:pablosolar.r at gmail.com>
> 
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20170515/203a30b0/attachment.html>


More information about the Chimera-dev mailing list