Please note: There is another project called neurotorch on GitHub/PyPI not related to this project. To avoid mix-up, the package is named neurotorchmz with the mz as a refrence to Mainz where the software was developed.
Neurotorch
Neurotorch is a tool designed to extract regions of synaptic activity in neurons tagges with iGluSnFR, but is in general capable to find any kind of local brightness increase due to synaptic activity. It works with microscopic image series / videos and is able to open an variety of formats (for details see below)
- Fiji/ImageJ: Full connectivity provided. Open files in ImageJ and send them to Neurotorch and vice versa.
- Stimulation extraction: Find the frames where stimulation was applied
- ROI finding: Auto detect regions with high synaptic activity. Export data directly or send the ROIs back to ImageJ
- Image analysis: Analyze each frame of the image and get a visual impression where signal of synapse activity was detected
- API: You can access the core functions of Neurotorch also by importing it as an python module
Installation
You need Python to run Neurotorch. Also it is recommended to create a virtual enviorenment to not mess up with your other python packages, for example using miniconda. When inside your virtual enviorenment, simply type
pip install neurotorchmz
Also, you need to install OpenJDK and Apache Maven to run PyImageJ. An easy solution is to use the bundled Build from Microsoft you can find here
To run Neurotorch, type
python -m neurotorchmz
I recommend to create a shortcut on your Desktop where you replace the command python with the path to your python executable. You can also import it as an module to use it's API
import neurotorchmz
print(neurotorchmz.__version__)
neurotorchmz.Start_Background()
To update your installation, type
pip install neurotorchmz --upgrade
Documentation
You can find the full documentation under andreasmz.github.io/neurotorch.
About
Neurotorch was developed at the AG Heine (Johannes Gutenberg Universität, Mainz/Germany) and is currently under active development.
Development roadmap
Currently in active development:
- released Integration of plugins: Rather than providing an direct binding to TraceSelector, it will be implemented as a plugin
- New ROI finding algorithm based on local maxima
Ideas for future releases:
- Synapse analysis tab: Same algorithm as in the Synapse ROI finder, but for each signal frame separately
Impressions
Please note: Neurotorch is under continuous development. Therefore the visuals provided here may be outdated in future versions.
First impression of an file opened in Neurotorch. For specific file formats (here nd2), a variety of metadata can be extracted
Use the tab 'Signal' to find the timepoints with stimulation (marked in the plot on the left site with yellow dots). You can also use this tab to view the video frame by frame
Extraction of regions with high synaptic activity. For the choosen image with good enough signal to noise ratio, all settings were determined automatically by the program and nothing more than pressing 'Detect' was necessary to get this screen. The ROIs are marked in the images with red boundaries while the selected ROI displayed also with the mean value over time is marked with yellow boundaries
Release notes
24.12.5 (12.12.2024):
- Documentation: Included the new documentation in the build
24.12.3 and 24.12.4 (05.12.2024):
- Bugfix: Minor bugfix on exporting as CSV and fixing importing ROIs from ImageJ
24.12.2 (05.12.2024):
- Import ROIs from ImageJ: Now you can import ROIs from Fiji/ImageJ
- Select ROIs by clicking on them: When clicking into the plot of the ROI Finder tab, the nearest ROI will now be selected
- Added ROI Stage: Now it is possible to keep some or all detected ROIs in the ROI Finder tab on a stage where they won't be cleared on redetecting on loading a new image
- Custom ROI names: Now ROIs can have custom names. Use the button 'Reset Name' to remove custom names
- Trace Selector: The filename is now carried over when exporting into TraceSelector
- Code improvements: Better handling of the Tab ROI Finder Invalidation Events; New Button layout on the same tab
- Bugfixes: names and PIMS metadata were cleared when opening an image; Fixed some wrong checks for empty ImageObjects; Some crashes on exporting as CSV
24.12.1 (29.11.2024)
- Sorting by signal strength: Added the ability to sort by signal strength in local max algorithm. Also added the option to filter for a minimum signal strength
- Circular ROI: Added region props for circular ROIs in local max algorithm. Also changed the definition of a circle with radius r to be equivalent with ImageJ
- Added image filters: Added the ability for image filters and included as first the option to use img - mean(img) instead of imgDiff for detection
- Minor changes: Bugfixes (usage of numpy.empty, trace selector filedialog, matplotlib backend setting...) and improvement of speed (for example slicing the image)
24.11.7 (27.11.2024)
- New API: Better integration of the API
- Bugfixes: Fixing bug in ImageJ Implementation
24.11.6 (27.11.2024)
- New detection algorithm: Added the Local Maximum Algorithm with much better performance than
- GUI: Massively improved the GUI settings by applying a consistent layout
- Detection Algorithms: Complete rewrite of the detection algorithms integration and adjusting of some parameters
- New Tooltip feature: Introduced tooltips and a new libary to handle string ressources in Neurotorch
- Normalized Std, Mean and Median: By default, for ROI detection now normalized values are used
- Colorbar: Added colorbar to all plots
- Improved signal removing: Fixed and improved some inconsistencies creating the imgDiff
- Image Source: Now for all algorithms the image source can be selected (not just Hysteresis Thresholding)
- Massive code review: Massive review of code and improved stability, for example event system, image loading or Tab ROIFinder plotting
24.11.5 (21.11.2024)
- Bugfix The documentation was not included properly
24.11.4 (21.11.2024)
- Introduction of Plugins: Added the ability to add plugins to neurotorch and introduced TraceSelector as preinstalled plugin
- Cache: Added 'Clear cache' option to denoise menu
- Various bugfixes
Metadata
Release files for Neurotorchmz 24.12.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neurotorchmz-24.12.5.tar.gz | 820.7 kB | Without provenance | Details for neurotorchmz-24.12.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neurotorchmz-24.12.5-py3-none-any.whl | Python 3 | none | any | Details for neurotorchmz-24.12.5-py3-none-any.whl |
Total release size: 1.6 MB
Release files / neurotorchmz-24.12.5.tar.gz
| Download URL | neurotorchmz-24.12.5.tar.gz |
|---|---|
| Size | 820.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62562a5e731a964e52e702b681e7b99e1db2edb7f3af685b94677d16e9f5152c
|
|
BLAKE2b-256 checksum How to use checksums |
0e766ce65ba63b9678a2e95ff6fd08bb0c2c0779c63671225153b23efcb2ac5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / neurotorchmz-24.12.5-py3-none-any.whl
| Download URL | neurotorchmz-24.12.5-py3-none-any.whl |
|---|---|
| Size | 828.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c88fc5a6444f09fd96db63caca81fab7c2889d8246f5bd27562b41c4ef813183
|
|
BLAKE2b-256 checksum How to use checksums |
d12b638a413f08d3d7b384e9270b1672e50529ab232331351aa2a2ea639dfed6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for Neurotorchmz 24.12.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.