You can give it a custom name that will be used for saving data
You can give it a custom name that will be used for saving data
%%%% Output: display_data
%%%% Output: display_data
%%%% Output: display_data
%%%% Output: display_data
**Crop a region**
**Crop a region**
%%%% Output: display_data
%%%% Output: display_data
You can draw it on the image or select it with the slider (values in pixels).If you do both, only the drawn region will be kept. If you select several regions on the image, they will be divided into several subsets
You can draw it on the image or select it with the slider (values in pixels).If you do both, only the drawn region will be kept. If you select several regions on the image, they will be divided into several subsets
%%%% Output: display_data
%%%% Output: display_data
Draw using the rectangle shape, hit ENTER while you're done.If you want more details about the email viewer please visit https://napari.org/
Draw using the rectangle shape, hit ENTER while you're done.If you want more details about the email viewer please visit https://napari.org/
%%%% Output: display_data
%%%% Output: display_data
%%%% Output: display_data
%%%% Output: display_data
**Select data based on trajectories duration or frame subset**
**Select data based on trajectories duration or frame subset**
printmd("You can select specific sets of trajectories. "
printmd("You can select specific sets of trajectories. "
"This tool can be useful to perform fate mapping or retrospective mapping. "
"This tool can be useful to perform fate mapping or retrospective mapping. "
"If you selected several subsets before, this specific set will be applied to all of the subsets."
"If you selected several subsets before, this specific set will be applied to all of the subsets."
)
)
printmd("How many sets of trajectories do you want to select?")
printmd("How many sets of trajectories do you want to select?")
set_num_wid=widgets.BoundedIntText(value=0,min=0,max=10,description='Number of sets:',style={'description_width':'initial'})
set_num_wid=widgets.BoundedIntText(value=0,min=0,max=10,description='Number of sets:',style={'description_width':'initial'})
display(set_num_wid)
display(set_num_wid)
#or by selecting trajectories in a specific region at a specific frame. "
#or by selecting trajectories in a specific region at a specific frame. "
#just by giving a list of ids,
#just by giving a list of ids,
```
```
%%%% Output: display_data
%%%% Output: display_data
**Select specific trajectories**
**Select specific trajectories**
%%%% Output: display_data
%%%% Output: display_data
You can select specific sets of trajectories. This tool can be useful to perform fate mapping or retrospective mapping. If you selected several subsets before, this specific set will be applied to all of the subsets.
You can select specific sets of trajectories. This tool can be useful to perform fate mapping or retrospective mapping. If you selected several subsets before, this specific set will be applied to all of the subsets.
%%%% Output: display_data
%%%% Output: display_data
How many sets of trajectories do you want to select?
How many sets of trajectories do you want to select?
%%%% Output: display_data
%%%% Output: display_data
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
printmd("**Don't forget to run this cell!**")# no output cell, make it visible
printmd("**Don't forget to run this cell!**")# no output cell, make it visible
# select specific trajectories
# select specific trajectories
# track selection widget lists
# track selection widget lists
track_name_wid_list=[]
track_name_wid_list=[]
track_xlim_wid_list=[]
track_xlim_wid_list=[]
track_ylim_wid_list=[]
track_ylim_wid_list=[]
track_zlim_wid_list=[]
track_zlim_wid_list=[]
track_drawer_wid_list=[]
track_drawer_wid_list=[]
track_frame_subset_wid_list=[]
track_frame_subset_wid_list=[]
track_list_wid_list=[]
track_list_wid_list=[]
foriinrange(set_num_wid.value):
foriinrange(set_num_wid.value):
printmd("""### Set #{}""".format(i+1))
printmd("""### Set #{}""".format(i+1))
# subset name
# subset name
printmd("""You can give it a custom name that will be used for saving data""")
printmd("""You can give it a custom name that will be used for saving data""")