Quality Check
get_intensity_thresh(nb)
Gets threshold for intensity from parameters in config file
or Notebook.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
Notebook
|
Notebook containing at least the |
required |
Returns:
Type | Description |
---|---|
float
|
intensity threshold |
Source code in coppafish/call_spots/qual_check.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
get_spot_intensity(spot_colors)
Finds the max intensity for each imaging round across all imaging channels for each spot. Then median of these max round intensities is returned. Logic is that we expect spots that are genes to have at least one large intensity value in each round so high spot intensity is more indicative of a gene.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spot_colors |
np.ndarray
|
|
required |
Returns:
Type | Description |
---|---|
np.ndarray
|
|
Source code in coppafish/call_spots/qual_check.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
omp_spot_score(nbp, score_multiplier, spot_no=None, n_neighbours_pos=None, n_neighbours_neg=None)
Score for omp gene assignment
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nbp |
NotebookPage
|
OMP Notebook page |
required |
score_multiplier |
float
|
|
required |
spot_no |
Optional[Union[int, List, np.ndarray]]
|
Which spots to get score for. If |
None
|
Returns:
Type | Description |
---|---|
Union[float, np.ndarray]
|
Score for each spot in spot_no if given, otherwise all spot scores. |
Source code in coppafish/call_spots/qual_check.py
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 |
|
quality_threshold(nb, method='omp')
Indicates which spots pass both the score and intensity quality thresholding.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nb |
Notebook
|
Notebook containing at least the |
required |
method |
str
|
|
'omp'
|
Returns:
Type | Description |
---|---|
np.ndarray
|
|
Source code in coppafish/call_spots/qual_check.py
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 |
|
Optimised
get_spot_intensity(spot_colors)
Finds the max intensity for each imaging round across all imaging channels for each spot. Then median of these max round intensities is returned. Logic is that we expect spots that are genes to have at least one large intensity value in each round so high spot intensity is more indicative of a gene.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spot_colors |
jnp.ndarray
|
|
required |
Returns:
Type | Description |
---|---|
jnp.ndarray
|
|
Source code in coppafish/call_spots/qual_check_optimised.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|