Skip to content

Commit

Permalink
update tutorial_create_sct_operator_interval.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
dummyindex committed Sep 19, 2023
1 parent 86733a2 commit d0830bb
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion notebooks/tutorial_create_sct_operator_interval.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Create Napari UI for editing SingleCellTrajectoryCollection (SCTC)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Loading sample data and create a sample trajectory collection"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -31,6 +45,14 @@
"traj_collection = track_SORT_bbox_from_scs(single_cells, dic_dataset, mask_dataset=mask_dataset, max_age=0, min_hits=1)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Call livecellx.core.sct_operator.create_sctc_edit_viewer_by_interval to create the interface\n",
"If key does not work after you click the slice bar at the bottom, please click the canvas (middle) and try again."
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -42,7 +64,16 @@
"import importlib\n",
"importlib.reload(livecellx.core.sct_operator)\n",
"\n",
"sct_opeartor = livecellx.core.sct_operator.create_sctc_edit_viewer_by_interval(traj_collection, img_dataset=dic_dataset, span_interval=0)"
"sct_opeartor = livecellx.core.sct_operator.create_sctc_edit_viewer_by_interval(traj_collection, img_dataset=dic_dataset, span_interval=1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"sct_opeartor.traj_collection.write_json(\"test.json\", dataset_json_dir=\"./test_livecell_datasets\")"
]
}
],
Expand Down

0 comments on commit d0830bb

Please sign in to comment.