[chimera-dev] Open MD Movie Trajectorie from plugin
Pablo Solar Rodríguez
pablosolar.r at gmail.com
Mon May 15 22:42:40 PDT 2017
Hello Eric,
It perfectly worked! Thank you a lot!
Regards :)
2017-05-15 20:12 GMT+02:00 Eric Pettersen <pett at 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 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 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 at gmail.com <pablosolar.r at gmail.com>*
>
>
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
>
>
>
--
*Pablo Solar Rodríguez*
*pablosolar.r at gmail.com <pablosolar.r at gmail.com>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20170516/61677f4b/attachment.html>
More information about the Chimera-dev
mailing list