Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.7%) to scientific vocabulary
Keywords
Repository
Automated synapse detection in C. elegans EM images.
Basic Info
Statistics
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Cnapse: Automated synapse detection in C. elegans EM images
Cnapse is a tool that enables automated synapse detection in C. elegans electron microscopy (EM) images. Cnapse is designed to detect only chemical synapses as these synapses have clear visual features in EM images such as synaptic vesicles and dark regions near the presynaptic membrane.
Installation
``` git clone https://github.com/jabae/Cnapse.git cd Cnapse
pip install -e . ```
Cnapse pipeline

Cnapse consists of two steps for the synapse detection: 1. presynaptic density prediction and 2. postsynaptic partner assignment.
Presynaptic density prediction
The first step, presynaptic density prediction, takes raw EM image as an input use trained convolutional neural network (CNN)[^1] to detect the synapse candidates.
Refer to inference command in detectEM.
Active zone info extraction
Once the presynaptic densities have been identified, this step extracts active zone information: presynaptic cell and size of the active zone.
python synapse_getinfo.py --syn_seg [syn_seg.tif] --cell_seg[cell_seg.tif] --res [x] [y] [z] --outpath [outpath.csv]
- syn_seg : Synpase segmentation volume
- cell_seg : Cell segmentation volume
- res : x, y, z resolution in $nm$
- outpath : Path to save result
This script outputs synapse info table with synapse ids, presynaptic cell ids, active zone sizes and locations. This synapse info file can be used for postsynaptic partner assignment in the next step.
Postsynaptic partner assignment
The following step, postsynaptic partner assignment, assigns partners by running Monte Carlo simulation of neurotransmitter diffusion[^2] and the size of the synaptic connections are determined by the proportion of neurotransmitters.
python synapse_diffuse.py --syn_seg [syn_seg.tif] --cell_seg [cell_seg.tif] --syn_info [syn_info.csv] --mip [mip] --outpath [outpath.csv]
- syn_seg : Synpase segmentation volume
- cell_seg : Cell segmentation volume
- syn_info : List of presynaptic density ids with assigned presynaptic cell ids
- mip : Mip level of the volumes (2^[mip] $nm$ resolution)
- outpath : Path to save result
Synapse table format
| synid | pre | preid | post | postid | xpos | ypos | zpos | size |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
- syn_id : Synapse segment id
- pre : Presynaptic neuron name
- pre_id : Presynaptic neuron segment id
- post : Postsynaptic neuron name
- post_id : Postsynaptic neuron segment id
- x_pos : x-axis position of synapse segment centroid in $nm$
- y_pos : y-axis position of synapse segment centroid in $nm$
- z_pos : z-axis position of synapse segment centroid in $nm$
- size : Volume of synapse segment in $nm^3$
[^1]: Ronneberger, Olaf, Philipp Fischer, and Thomas Brox. 2015. “U-Net: Convolutional Networks for Biomedical Image Segmentation.” In Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, 234–41. Springer International Publishing. [^2]: Witvliet, Daniel, Ben Mulcahy, James K. Mitchell, Yaron Meirovitch, Daniel R. Berger, Yuelong Wu, Yufang Liu, et al. 2021. “Connectomes across Development Reveal Principles of Brain Maturation.” Nature 596 (7871): 257–61.
Owner
- Name: Alex Bae
- Login: jabae
- Kind: user
- Twitter: jalex_bae
- Repositories: 3
- Profile: https://github.com/jabae
Citation (CITATION.cff)
cff-version: 1.0.0 message: "If you use this software, please cite it as below." authors: - family-names: "Bae" given-names: "J. Alexander" orcid: "https://orcid.org/0000-0002-4681-6342" title: "Cnapse: Automated synapse detection in C. elegans EM images" version: 0.1.0 date-released: 2022-09-01 url: "https://github.com/jabae/Cnapse"
GitHub Events
Total
Last Year
Dependencies
- cloud-volume *
- h5py *
- matplotlib *
- numpy *
- scikit-build *
- scipy *
- tensorboardX *
- torch *
- torchvision *