napari_bigfish package

Submodules

Module contents

class napari_bigfish.DetectFISHSpotsBatchWidget(napari_viewer, model)[source]

Bases: QWidget

The widget that lets the user select images and start the batch-processing. The widget has input fields for the scale in xy and z, checkboxes for the options subtract background and decompose dense regions, image-lists for the input images, the cell labels and the nuclei masks and an action button to start the batch-processing.

addBatchParameterWidget()[source]
addInputImagesWidget()[source]
addRunButton()[source]
onDecomposeChanged(state)[source]
onLayerLoaded(event)[source]
onSubtractBackgroundChanged(state)[source]
runBatch()[source]
setModel(aModel)[source]
updateScaleXY(text)[source]
updateScaleZ(text)[source]
class napari_bigfish.DetectFISHSpotsWidget(napari_viewer)[source]

Bases: QWidget

The widget allows to parametrize and run background subtraction and spot detection on the active image.

The widget regroups the operations subtract background, detect spots, decompose dense regions and count spots. It also has a button to change to the Batch Processing-widget, which will use the parameters entered here.

addBatchButton()[source]

Adds an action button that closes this widget and opens the batch- processing widget. The model, containg the parameters are transferred to the new widget.

addCountSpotsWidget()[source]

Add the widget for the Spot Counting operation to the layout. The widget has combo-boxes for the selection of the points-layer containing the spots, the labels layer containing the cells and the labels-layer containing the nuclei. It has an action button to run the operation.

addDecomposeDenseRegionsWidget()[source]

Add the widget for the Dense Region Decomposition to the layout. The widget has a combo-box for the selection of the points-layer containing the previously detected spots. It has input fields for the spot radius and for the alpha, beta and gamma parameters. It has an action button to run the operation on the active image layer.

addDetectSpotsWidget()[source]

Adds the widget for the spot detection to the layout. The widget has an input field for the threshold, input fields for the spot radius, checkboxes for the remove duplicates``and ``find threshold options and an action button to run the operation.

addSpotCountingTable(table)[source]
addSubtractBackgroundWidget()[source]

Adds the widget for the background subtration to the layout. The widget has two input fields for the sigma of the Gaussian in xy and z and an action button to run the operation.

findThresholdChanged(state)[source]
onClickBatch()[source]
onClickCountSpots()[source]
onClickDecomposeDenseRegions()[source]
onClickDetectSpots()[source]
onClickSubtractBackground()[source]
onFindThresholdChanged(state)[source]
onLayerAddedOrRemoved(event: Event)[source]
onRemoveDuplicatesChanged(state)[source]
radiusChanged(radiusXY, radiusZ)[source]
removeDuplicatesChanged(state)[source]
setModel(aModel)[source]
sigmaChanged(sigmaXY, sigmaZ)[source]
thresholdChanged(threshold)[source]
updateAlpha(text)[source]
updateBeta(text)[source]
updateDecomposeRadiusXY(text)[source]
updateDecomposeRadiusZ(text)[source]
updateGamma(text)[source]
updateLayerSelectionComboBoxes()[source]
updateRadiusXY(text)[source]
updateRadiusZ(text)[source]
updateSigmaXY(text)[source]
updateSigmaZ(text)[source]
updateThreshold(text)[source]
napari_bigfish.make_sample_data()[source]

Download and return a sample image for the napari-bigfish plugin. The dataset has three layers, one image layer with the FISH-spots, one artificially constructed labels-layer, representing cells and one also artificially constructed labels layer, representing the nuclei.