Skip to content

Commit db5990b

Browse files
committed
exposed intensity method parameter for RS-FISH
1 parent cf02e10 commit db5990b

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

containers/rs_fish/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Dockerfile generated by Maru 0.1.1
33

44
# Staged build using builder container
5-
FROM janeliascicomp/builder:1.2.1 as builder
5+
FROM janeliascicomp/builder:1.3.1 as builder
66
ARG GIT_TAG=main
77

88
# Checkout and build the code

containers/rs_fish/maru.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
maru_version: 0.1.1
22
name: rs_fish
3-
version: 1.0.1
3+
version: 1.0.2
44
remotes:
55
- multifish
66
- registry.int.janelia.org/multifish
77
- public.ecr.aws/janeliascicomp/multifish
88
build_args:
9-
GIT_TAG: main
9+
GIT_TAG: 0.0.2
1010
template_args:
1111
flavor: java_maven
1212
build:

docs/Parameters.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Options for the RS-FISH spot extraction algorithm
152152
|`rsfish_sigma`|Sigma value for Difference-of-Gaussian (DoG) calculation. Default 1.5||`number`
153153
|`rsfish_threshold`|Threshold value for Difference-of-Gaussian (DoG) calculation. Default: 0.007||`number`
154154
|`rsfish_background`|Background subtraction method, 0 == None, 1 == Mean, 2==Median, 3==RANSAC on Mean, 4==RANSAC on Median. Default: 0 (None)||`integer`
155+
|`rsfish_intensity`|Intensity calculation method, 0 == Linear Interpolation, 1 == Gaussian fit (on inlier pixels), 2 == Integrate spot intensities (on candidate pixels). Default: 0 (Linear Interpolation)||`integer`
155156
|`rsfish_params`|Any other parameters to pass to the RS-FISH algorithm.|Complete parameter documentation for RS-FISH is [available here](https://github.com/PreibischLab/RS-FISH-Spark/blob/main/src/main/java/net/preibisch/rsfish/spark/SparkRSFISH.java).|`string`
156157
|`rsfish_workers`|Number of Spark workers to use for RS-FISH spot detection. Default: 4||`integer`
157158
|`rsfish_worker_cores`|Number of cores allocated to each RS-FISH Spark worker. Default: 4||`integer`
@@ -161,7 +162,7 @@ Options for the RS-FISH spot extraction algorithm
161162

162163
### Per channel RS-FISH Parameters
163164

164-
The following parameters can be set per channel: `rsfish_min`, `rsfish_max`, `rsfish_anisotropy`, `rsfish_sigma`, `rsfish_threshold`, `rsfish_background`. For that simply prefix the corresponding parameter with `--per_channel.` and set the values using a comma delimited list. The values will be associated with the corresponding channel based on their position, i.e. first value will be associated with the first channel, second with the second channel, etc. If a value is missing or empty the parameter value for the channel will be set to the default from the parameter with the same name (presented above).
165+
The following parameters can be set per channel: `rsfish_min`, `rsfish_max`, `rsfish_anisotropy`, `rsfish_sigma`, `rsfish_threshold`, `rsfish_background`, `rsfish_intensity`. Simply prefix the corresponding parameter with `per_channel.` and set the values using a comma delimited list. The values will be associated with the corresponding channel based on their position, i.e. first value will be associated with the first channel, second with the second channel, etc. If a value is missing or empty the parameter value for the channel will be set to the default from the parameter with the same name (presented above).
165166

166167
For example if the command like is:
167168
`--channels c0,c1,c2,c3 --sigma 1.7 --per_channel.sigma "1.2,,1.4`

nextflow_schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,11 @@
543543
"description": "Background subtraction method, 0 == None, 1 == Mean, 2==Median, 3==RANSAC on Mean, 4==RANSAC on Median. Default: 0 (None)",
544544
"fa_icon": "fas fa-level-down-alt"
545545
},
546+
"rsfish_intensity": {
547+
"type": "integer",
548+
"description": "Intensity calculation method, 0 == Linear Interpolation, 1 == Gaussian fit (on inlier pixels), 2 == Integrate spot intensities (on candidate pixels). Default: 0 (Linear Interpolation)",
549+
"fa_icon": "fas fa-level-down-alt"
550+
},
546551
"per_channel.rsfish_min": {
547552
"type": "string",
548553
"description": "Comma delimited per channel values for rsfish_min",
@@ -573,6 +578,11 @@
573578
"description": "Comma delimited per channel values for rsfish_background",
574579
"fa_icon": "fas fa-terminal"
575580
},
581+
"per_channel.rsfish_intensity": {
582+
"type": "string",
583+
"description": "Comma delimited per channel values for rsfish_intensity",
584+
"fa_icon": "fas fa-terminal"
585+
},
576586
"rsfish_params": {
577587
"type": "string",
578588
"description": "Any other parameters to pass to the RS-FISH algorithm.",

param_utils.nf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def default_mf_params() {
7373
use_rsfish: false,
7474
rsfish_container_repo: multifish_container_repo,
7575
rsfish_container_name: 'rs_fish',
76-
rsfish_container_version: '1.0.1',
76+
rsfish_container_version: '1.0.2',
7777
rs_fish_app: '/app/app.jar',
7878
rsfish_workers: 6,
7979
rsfish_worker_cores: 8,
@@ -86,6 +86,7 @@ def default_mf_params() {
8686
rsfish_sigma: 1.5,
8787
rsfish_threshold: 0.007,
8888
rsfish_background: 0,
89+
rsfish_intensity: 0,
8990
rsfish_params: '',
9091
// RS-Fish parameters adjustable per channel
9192
per_channel: [
@@ -95,6 +96,7 @@ def default_mf_params() {
9596
rsfish_sigma: '',
9697
rsfish_threshold: '',
9798
rsfish_background: '',
99+
rsfish_intensity: '',
98100
],
99101

100102
// segmentation params

workflows/rs_fish.nf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ workflow rsfish {
8181
def sigma = all_per_channels_params.rsfish_sigma[channel]
8282
def threshold = all_per_channels_params.rsfish_threshold[channel]
8383
def background = all_per_channels_params.rsfish_background[channel]
84+
def intensity = all_per_channels_params.rsfish_intensity[channel]
8485
def rsfish_cmd_args = [
8586
"--image=${input_dir} --dataset=${subpath} " +
8687
"--minIntensity=${minIntensity} " +
@@ -89,6 +90,7 @@ workflow rsfish {
8990
"--sigma=${sigma} " +
9091
"--threshold=${threshold} " +
9192
"--background=${background} " +
93+
"--intensityMethod=${intensity} " +
9294
"--output=${output_voxel_file} ${params.rsfish_params}",
9395
cluster_work_dir,
9496
"rsFISH_${acq_name}_${channel}.log",
@@ -156,6 +158,7 @@ def get_all_per_channel_params(Map ps) {
156158
rsfish_sigma: get_param_values_per_channel(ps, 'rsfish_sigma'),
157159
rsfish_threshold: get_param_values_per_channel(ps, 'rsfish_threshold'),
158160
rsfish_background: get_param_values_per_channel(ps, 'rsfish_background'),
161+
rsfish_intensity: get_param_values_per_channel(ps, 'rsfish_intensity'),
159162
]
160163
}
161164

0 commit comments

Comments
 (0)