diff --git a/notebooks/tutorial_create_sct_operator_interval.ipynb b/notebooks/tutorial_create_sct_operator_interval.ipynb index 3d48185c..74dfac37 100644 --- a/notebooks/tutorial_create_sct_operator_interval.ipynb +++ b/notebooks/tutorial_create_sct_operator_interval.ipynb @@ -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, @@ -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, @@ -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\")" ] } ],