-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
534c4a7
commit ad338f3
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Overview","text":"<p>Read IMOD model files as pandas dataframes in Python.</p>"},{"location":"#usage","title":"Usage","text":"<pre><code>import imodmodel\n\ndf = imodmodel.read('my_model_file.mod')\n</code></pre> <pre><code>In [3]: df.head()\nOut[3]: \n object_id contour_id x y z\n0 0 0 64.333336 64.666664 80.0\n1 0 0 47.000000 77.333336 80.0\n2 0 0 51.333332 45.666668 80.0\n3 0 0 87.333336 49.666668 80.0\n4 0 0 76.000000 82.000000 80.0\n</code></pre> <p>That's it!</p>"},{"location":"#installation","title":"Installation","text":"<p><code>imodmodel</code> can be installed from the Python Package Index (PyPI)</p> <pre><code>pip install imodmodel\n</code></pre> <p>We recommend installing into a clean virtual environment.</p>"}]} | ||
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"Overview","text":"<p>Read IMOD model files as pandas dataframes in Python.</p>"},{"location":"#usage","title":"Usage","text":"<pre><code>import imodmodel\n\ndf = imodmodel.read('my_model_file.mod')\n</code></pre> <pre><code>In [3]: df.head()\nOut[3]: \n object_id contour_id x y z\n0 0 0 64.333336 64.666664 80.0\n1 0 0 47.000000 77.333336 80.0\n2 0 0 51.333332 45.666668 80.0\n3 0 0 87.333336 49.666668 80.0\n4 0 0 76.000000 82.000000 80.0\n</code></pre> <p>Annotations made in the slicer window are stored in the IMOD binary file with both centerpoints and angles.</p> <p>These annotations can be read in by setting <code>annotation='slan'</code> when calling <code>imodmodel.read()</code></p> <pre><code>import imodmodel\n\ndf = imodmodel.read('file_with_slicer_angles.mod', annotation='slan')\n</code></pre> <pre><code>In [3]: df.head()\nOut[3]:\n object_id slan_id time x_rot y_rot z_rot center_x center_y center_z label\n0 0 0 1 13.100000 0.0 -30.200001 235.519577 682.744141 302.0\n0 0 1 1 -41.400002 0.0 -47.700001 221.942444 661.193237 327.0\n0 0 2 1 -41.400002 0.0 -41.799999 232.790726 671.332031 327.0\n0 0 3 1 -35.500000 0.0 -36.000000 240.129181 679.927795 324.0\n</code></pre> <p>That's it!</p>"},{"location":"#installation","title":"Installation","text":"<p><code>imodmodel</code> can be installed from the Python Package Index (PyPI)</p> <pre><code>pip install imodmodel\n</code></pre> <p>We recommend installing into a clean virtual environment.</p>"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.