You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can adjust the Nimbus class by adding functions prepare_normalization_dict_ome and predict_ome_fovs to utils.py. The nimbus class then needs to check if fovs contain ome.tifs and use the according functions from utils.py.
The functions in utils.py should look roughly like this
defcalculate_normalization_ome(ome_path, quantile, include_channels):
# open ome_file# check if include_channels are included in ome file# iterate through include_channels and calculate quantile of foregroundreturnchannel: quantiledictdefprepare_normalization_dict_ome( fov_paths, output_dir, quantile,
include_channels, n_subsets, n_jobs, output_name):
# parallelize over fov_paths if n_jobs > 1# average quantiles of dictsdefpredict_ome_fovs(nimbus, fov_paths, normalization_dict,
segmentation_naming_convention, output_dir, suffix, include_channels=[],
save_predictions=True, half_resolution=False, batch_size=4,
test_time_augmentation=True):
# iterate through fovs and make prediction with nimbus object# save predictions as tiffs or ome.tiffs
In addition we need to change the ViewerWidget reader to work with ome.tifs
The text was updated successfully, but these errors were encountered:
Description of feature
Add ome-tiff inference features to Nimbus.
We can adjust the
Nimbus
class by adding functionsprepare_normalization_dict_ome
andpredict_ome_fovs
toutils.py
. The nimbus class then needs to check if fovs contain ome.tifs and use the according functions fromutils.py
.The functions in utils.py should look roughly like this
In addition we need to change the ViewerWidget reader to work with ome.tifs
The text was updated successfully, but these errors were encountered: