-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Enhanced Background Subtraction Method in Fluorescence Imag…
…ing Analysis (#169) * Update quick_start notebook with additional functionality The quick_start notebook has been updated with more in-depth functionality, including executing code cells and importing additional libraries. The changes also involve modifying the output, providing visual data clarification, and changing the sample path to retrieve other data. The adjustments aim to enhance the user's analytical experience. * Add code for delta calculations in astrocast notebook The changes includes importing necessary modules and adding code chunks for performing delta calculations, implementation of interpolation functions, data downsampling measures and peak removal operations. Added new function for delta calculation: get_subtracted, get_interpolated, and remove_peaks. The code edits are focused on handling and processing 3D datasets. * feat: Implement enhanced background subtraction in fluorescence imaging This commit introduces a `_subtract_delta_rbf`, designed to significantly improve background subtraction in time-series fluorescence imaging recordings. The primary objective is to enhance the signal-to-noise ratio and mitigate the effects of photo-bleaching. Key features of the function include: - Subdivision of video data into manageable chunks for efficient processing. - Identification and treatment of significant signal fluctuations (peaks) as missing data (NaN), which are then excluded from background calculations. - Utilization of the remaining pixels to interpolate the background, subsequently subtracting this from the original dataset to isolate the fluorescence signal from the near-static background. - Inclusion of operations like Gaussian blurring for noise reduction, scaled downsizing for computational efficiency, and 3D RBF interpolation for smoother data transitions. - Reassembly of processed chunks into a cohesive array, maintaining the original video dimensions and data type. * officially replacing _calculate_delta_min_filter with subtract_delta_rbf - add: testing the new delta subtraction - fix: switched function call and arguments in Delta.run - fix: updated documentation * Integration of new delta functionality into quick_start notebook * Updated CLI interface to include changes to Delta subtraction * removed Delta from the GUI. Needs to be updated with new subtraction function before it can be re-enabled * removed superfluous parameter max_tries * - fix: default parameter for rbf smoothing needs to be 0 in client as well * - refactor TestLocalCache * increase flakyness of subtraction performance testing * - add check if tensorflow is not available during import of denoising * moved another tensorflow import into try-except-clause * - fix: test functions for local caching * convert todo to GitHub issues * now adhere to PEP * rename 'Analysis GUI' to 'Exploratory Analysis GUI' * - fix: fix random output generator * reformat * move keras imports into tensorflow available try-except-clause
- Loading branch information
1 parent
1ed7e52
commit c79d335
Showing
16 changed files
with
6,833 additions
and
5,382 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+6.53 MB
...28_128_pre_post_frame_5-gap_frames_0-train_rotation_1_2_3-architecture_3_64_epochs-50.pth
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.