<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt">Radosław,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt"><br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<font size="2"><span style="font-size:11pt"></span></font>There is a tutorial for adding a new file format using a bundle:
<a href="https://www.cgl.ucsf.edu/chimerax/docs/devel/tutorials/tutorial_read_format.html" id="LPlnk">
https://www.cgl.ucsf.edu/chimerax/docs/devel/tutorials/tutorial_read_format.html</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
To add multiple coordinate sets to an atomic model, you can use the <code>"add_coordset</code>" or "`add_coordsets`" methods of the AtomicStructure to add the coordinates for different frames in the trajectory. There's more info on how to use these methods
in their docstrings, but they basically take numpy arrays for atom coordinates in different frames of the trajectory. The add_coordset method adds one frame at a time with a N_atoms x 3 array, whereas add_coordsets can take a N_frames x N_atoms x 3 array.
Once the trajectory is opened, users can run the ChimeraX command <code>"coordset slider <model id>"</code> to open a tool to flip through the frames.
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Tony<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ChimeraX-users <chimerax-users-bounces@cgl.ucsf.edu> on behalf of Radosław Giziński via ChimeraX-users <chimerax-users@cgl.ucsf.edu><br>
<b>Sent:</b> Thursday, September 30, 2021 8:24 AM<br>
<b>To:</b> chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu><br>
<b>Subject:</b> [chimerax-users] adding new trajectory format</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[EXTERNAL SENDER - PROCEED CAUTIOUSLY]<br>
<br>
<br>
Hi,<br>
<br>
Is there a way I can add custom, multi-frame trajectory format to<br>
ChimeraX so I can view multi frame trajectories?<br>
Is there some manual that could guide me through the process like this?:<br>
<a href="https://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/movie/movie.html">https://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/movie/movie.html</a><br>
<br>
(scroll to the bottom)<br>
<br>
Best regards,<br>
<br>
Radosław Giziński<br>
<br>
<br>
_______________________________________________<br>
ChimeraX-users mailing list<br>
ChimeraX-users@cgl.ucsf.edu<br>
Manage subscription:<br>
<a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br>
</div>
</span></font></div>
</body>
</html>