Extract
Viewer
view_filter
Function to view filtering of raw data in napari. There will be 2 scrollbars in 3D. One to change between raw/difference_of_hanning/difference_of_hanning+smoothed and one to change z-plane.
There are also sliders to change the parameters for the filtering/smoothing. When the sliders are changed, the time taken for the new filtering/smoothing will be printed to the console.
Note
When r_smooth
is set to [1, 1, 1]
, no smoothing will be performed.
When this is the case, changing the filtering radius using the slider will
be quicker because it will only do filtering and not any smoothing.
If r == anchor_round
and c == dapi_channel
, the filtering will be tophat filtering and no smoothing
will be allowed. Otherwise, the filtering will be convolution with a difference of hanning kernel.
The current difference of hanning kernel can be viewed by pressing the 'h' key.
Requires access to nb.file_names.input_dir
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
Optional[Notebook]
|
Notebook for experiment. If no Notebook exists, pass |
None
|
t |
int
|
npy (as opposed to nd2 fov) tile index to view. For an experiment where the tiles are arranged in a 4 x 3 (ny x nx) grid, tile indices are indicated as below: | 2 | 1 | 0 | | 5 | 4 | 3 | | 8 | 7 | 6 | | 11 | 10 | 9 | |
0
|
r |
int
|
round to view |
0
|
c |
int
|
Channel to view. |
0
|
use_z |
Optional[Union[int, List[int]]]
|
Which z-planes to load in from raw data. If |
None
|
config_file |
Optional[str]
|
path to config file for experiment. |
None
|
Source code in coppafish/plot/extract/viewer.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
|
Diagnostics
thresh_box_plots
Function to plot distribution of auto_threshold values amongst tiles for each round and channel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
Notebook
|
Notebook containing the extract NotebookPage. |
required |
Source code in coppafish/plot/extract/diagnostics.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
histogram_plots
Plots histograms showing distribution of intensity values combined from all tiles for each round and channel. There is also a Norm button which equalises color channels so all color channels should have most intensity values between -1 and 1.
In the normalised histograms, a good channel will have a sharp peak near 0 accounting for non-spot pixels and a long tail from around 0.1 to just beyond 1 accounting for spot pixels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
Notebook
|
Notebook containing the extract NotebookPage. |
required |
Source code in coppafish/plot/extract/diagnostics.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|