<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yoyoq</id>
	<title>PyMOL Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yoyoq"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Yoyoq"/>
	<updated>2026-08-26T14:47:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Load_Traj&amp;diff=6811</id>
		<title>Load Traj</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Load_Traj&amp;diff=6811"/>
		<updated>2010-10-13T22:36:00Z</updated>

		<summary type="html">&lt;p&gt;Yoyoq: /* NOTES */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''load_traj''' reads trajectory files (currently just AMBER files).  The file extension is used to determine the format.  AMBER files must end in &amp;quot;.trj&amp;quot; &lt;br /&gt;
&lt;br /&gt;
In newer builds of PyMOL (namely, version 1.0 or newer), several additional formats are accepted.  CHARMM trajectories (&amp;quot;.dcd&amp;quot;) are also valid files and only require a structure to be loaded first while the trajectory file gets loaded as sequential states into the associated object.  However, it should be noted that, unless the [[defer_builds_mode]] is set (to 3), loading a large trajectory may take up a lot of RAM.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load_traj filename [,object [,state [,format [,interval [,average ]&lt;br /&gt;
                   [,start [,stop [,max [,selection [,image [,shift &lt;br /&gt;
                   ]]]]]]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.load_traj(filename,object='',state=0,format='',interval=1,&lt;br /&gt;
           average=1,start=1,stop=-1,max=-1,selection='all',image=1,&lt;br /&gt;
           shift=&amp;quot;[0.0,0.0,0.0]&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOTES===&lt;br /&gt;
*You must first load a corresponding topology file before attempting to load a trajectory file.&lt;br /&gt;
*PyMOL does not know how to wrap the truncated octahedron used by Amber You will need to use the [http://amber.scripps.edu/tutorials/basic/tutorial5/index.html ptraj] program first to do this.&lt;br /&gt;
*The average option is not a running average.  To perform this type of average, use the [[smooth]] command after loading the trajectory file.&lt;br /&gt;
*For quickly viewing Trajectories as a movie, use the [[mset]] command to map each state to a movie frame.&lt;br /&gt;
&lt;br /&gt;
useful notes from the email list&lt;br /&gt;
http://www.mail-archive.com/pymol-users@lists.sourceforge.net/msg04272.html&lt;br /&gt;
&lt;br /&gt;
in one line convert dcd and psf to pdb :&lt;br /&gt;
&lt;br /&gt;
catdcd -o all.pdb -otype pdb -s autopsf.psf -stype psf out.dcd&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Load]], [[defer_builds_mode]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Load Traj]]&lt;br /&gt;
[[Category:Performance|Load Traj]]&lt;br /&gt;
[[Category:States|Load Traj]]&lt;/div&gt;</summary>
		<author><name>Yoyoq</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Load_Traj&amp;diff=6810</id>
		<title>Load Traj</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Load_Traj&amp;diff=6810"/>
		<updated>2010-10-13T22:35:32Z</updated>

		<summary type="html">&lt;p&gt;Yoyoq: /* NOTES */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
'''load_traj''' reads trajectory files (currently just AMBER files).  The file extension is used to determine the format.  AMBER files must end in &amp;quot;.trj&amp;quot; &lt;br /&gt;
&lt;br /&gt;
In newer builds of PyMOL (namely, version 1.0 or newer), several additional formats are accepted.  CHARMM trajectories (&amp;quot;.dcd&amp;quot;) are also valid files and only require a structure to be loaded first while the trajectory file gets loaded as sequential states into the associated object.  However, it should be noted that, unless the [[defer_builds_mode]] is set (to 3), loading a large trajectory may take up a lot of RAM.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
load_traj filename [,object [,state [,format [,interval [,average ]&lt;br /&gt;
                   [,start [,stop [,max [,selection [,image [,shift &lt;br /&gt;
                   ]]]]]]]]]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; &lt;br /&gt;
cmd.load_traj(filename,object='',state=0,format='',interval=1,&lt;br /&gt;
           average=1,start=1,stop=-1,max=-1,selection='all',image=1,&lt;br /&gt;
           shift=&amp;quot;[0.0,0.0,0.0]&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOTES===&lt;br /&gt;
*You must first load a corresponding topology file before attempting to load a trajectory file.&lt;br /&gt;
*PyMOL does not know how to wrap the truncated octahedron used by Amber You will need to use the [http://amber.scripps.edu/tutorials/basic/tutorial5/index.html ptraj] program first to do this.&lt;br /&gt;
*The average option is not a running average.  To perform this type of average, use the [[smooth]] command after loading the trajectory file.&lt;br /&gt;
*For quickly viewing Trajectories as a movie, use the [[mset]] command to map each state to a movie frame.&lt;br /&gt;
&lt;br /&gt;
useful notes from the email list&lt;br /&gt;
http://www.mail-archive.com/pymol-users@lists.sourceforge.net/msg04272.html&lt;br /&gt;
&lt;br /&gt;
dcd and psf to pdb &lt;br /&gt;
catdcd -o all.pdb -otype pdb -s autopsf.psf -stype psf out.dcd&lt;br /&gt;
&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
[[Load]], [[defer_builds_mode]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Load Traj]]&lt;br /&gt;
[[Category:Performance|Load Traj]]&lt;br /&gt;
[[Category:States|Load Traj]]&lt;/div&gt;</summary>
		<author><name>Yoyoq</name></author>
	</entry>
</feed>