<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The ‘movieFile’ argument to EnsembleLoader.loadEnsemble is expected to be a “metafile” as documented here:<div class=""><br class=""></div><div class=""><a href="http://www.cgl.ucsf.edu/chimera/current/docs/ContributedSoftware/movie/movie.html" class="">MD Movie</a> (third paragraph after the first table)</div><div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class="">from Trajectory.formats.Pdb import loadEnsemble</div><div class=""><br class=""></div><div class="">Then call it as:</div><div class=""><br class=""></div><div class="">loadEnsemble((“single”, "/Users/ME/Desktop/movie.pdb”), None, None, MovieDialog)</div><div class=""><br class=""></div><div class="">—Eric</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On May 14, 2017, at 6:21 AM, Pablo Solar Rodríguez <<a href="mailto:pablosolar.r@gmail.com" class="">pablosolar.r@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">Hello all!</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><br class=""></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">It is possible to open the MD Movie trajectory with a custom format and a file from a plugin?</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><br class=""></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">I am trying to do this:</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><br class=""></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><div class="gmail_default"><pre style="font-family: menlo;" class=""><i class=""><span style="color:rgb(0,0,128);font-weight:bold" class="">from </span>Movie.gui <span style="color:rgb(0,0,128);font-weight:bold" class="">import </span>MovieDialog<br class=""><span style="color:rgb(0,0,128);font-weight:bold" class="">from </span>Trajectory <span style="color:rgb(0,0,128);font-weight:bold" class="">import </span>EnsembleLoader<br class="">EnsembleLoader.loadEnsemble(MovieDialog, <span style="color:rgb(102,0,153)" class="">movieFile</span>=<span style="color:rgb(0,128,0);font-weight:bold" class="">"/Users/ME/Desktop/movie.pdb"</span>)</i></pre></div></div><div class=""><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><i class=""></i>But I get this error</div><i class=""><br class=""></i></div><div class=""><i class=""><br class=""></i></div><div class=""><div class=""><i class="">ValueError: Unknown trajectory format: 'MODEL 0'</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class=""> File "/Applications/Chimera.app/Contents/Resources/share/Trajectory/EnsembleLoader.py", line 131, in loadEnsemble</i></div><div class=""><i class=""> raise ValueError("Unknown trajectory format: '%s'" % format)</i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class="">See reply log for Python traceback.</i></div></div><div class=""><br class=""></div><div class=""><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">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?</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><br class=""></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">Thank you so much</div><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><br class="webkit-block-placeholder"></div><p class=""><font size="1" face="tahoma, sans-serif" color="#38761d" class=""><b class=""><u class="">Pablo Solar Rodríguez</u></b></font></p><font size="1" face="tahoma, sans-serif" color="#0b5394" class=""><b class=""><div class=""><a href="mailto:pablosolar.r@gmail.com" style="font-weight:normal" target="_blank" class=""><b class="">pablosolar.r@gmail.com</b></a><br class=""></div></b></font><div class=""><div class=""><p class=""><br class=""></p></div></div></div></div></div></div>
</div>
_______________________________________________<br class="">Chimera-dev mailing list<br class=""><a href="mailto:Chimera-dev@cgl.ucsf.edu" class="">Chimera-dev@cgl.ucsf.edu</a><br class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev<br class=""></div></blockquote></div><br class=""></div></body></html>