Skip to main content

MICrONS-Combiner

License PyPi_Version

This project contains tools to work with the MICrONS Cortical MM3 dataset, providing a robust interface to interact with the nucleus data.

From version 0.3.0.0, the package has been renamed to microns-combiner in order to better reflect its usage. Latest version with name 'datacleaner' is 0.2 and it has been archived.

Key features

  • Simple interface to download and keep organized anatomical data via CAVEClient or archived versions.
  • Allows to query the synapse table in chunks avoiding common pitfalls.
  • Easily process nucleus annotation tables.
  • Automatically segment the brain volume into cortical layers.
  • Tools for filtering and constructing connectome subsets.
  • Interface to access the full functional dataset in a simplified way.

Install 📥

pip install microns-combiner

Using the package ⏩

  • Few lines of code to get a full table with neurons' brain area, layer, cell_type, proofreading information, and nucleus position:
#Import the lib
import microns_combiner as mic

#Target version and download folder
combiner = mic.MicronsCombiner(datadir = "data", version=1300) 

#Download the data
combiner.download_nucleus_data()

#Process the downloaded data and segment into layers
units, segments = combiner.process_nucleus_data()
  • Filter easily! How can we get all neurons in V1, layers L2/3 and L4 with proofread axons?
units_filter = fl.filter_neurons(units, layer=['L2/3', 'L4'], proofread='ax_clean', brain_area='V1')
  • Robustly download synapses between a subset of pre and post-synaptic neurons in chunks.
preids  = units_filter['pt_root_id']
postids = units_filter['pt_root_id']
combiner.download_synapse_data(preids, postids)

#Connection problems at chunk number 23? Just restart from there
combinerdownload_synapse_data(preids, postids, start_index=23)

Check the docs and our tutorial notebook just below to get started!

Docs & Tutorials 📜

If it is the first time working with the MICrONS data, we recommend you read our basic tutorial (also available as a Python Notebook), as well as the official documentation of the MICrONS project.

If you want to contribute, please read our guidelines first. Feel free to open an issue if you find any problem.

You can find a full documentation of the API and functions in the docs.

Requirements

Dependencies

  • CaveCLIENT
  • Pandas
  • Numpy
  • Scipy
  • TQDM
  • Standard transform for coordinate change (MICrONS ecosystem)

Dev-dependencies

  • pdoc (to generate the docs)
  • ruff (to keep contributions in a consistent format)

Citation Policy 📚

If you use our code, please consider to cite the associated repository, as well as the IARPA MICrONS Minnie Project and the Microns Phase 3 NDA repository.

Our code serves as an interface for the MICrONS data. Please cite appropiate the literature for the data used following their Citation Policy. The papers may depend on the annotation tables used.

Our unit table is constructed by integrating information from the following papers:

  1. Functional connectomics spanning multiple areas of mouse visual cortex. The Microns Consortium. 2025
  2. Foundation model of neural activity predicts response to new stimulus types
  3. Perisomatic ultrastructure efficiently classifies cells in mouse cortex
  4. NEURD offers automated proofreading and feature extraction for connectomics
  5. CAVE: Connectome Annotation Versioning Engine

Acknowledgements

We acknowledge funding by the NextGenerationEU, in the framework of the FAIR—Future Artificial Intelligence Research project (FAIR PE00000013—CUP B43C22000800006).

Generating the docs

Go to the main folder of the repository, and run

pdoc -t docs-src/template src/microns_combiner/ -o docs/

The docs will be generated in the docs/ folder in HTML format, which can be checked with the browser.

Metadata

Release files for Microns-Combiner 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Microns-Combiner 0.4.0
File Size Uploaded
microns_combiner-0.4.0.tar.gz 29.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Microns-Combiner 0.4.0
File Interpreter ABI Platform
microns_combiner-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 62.9 kB

Release files / microns_combiner-0.4.0.tar.gz

Download URL microns_combiner-0.4.0.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b9607e3bf664591ebbc553e96bc29d16aa683042a0244c7b3a595795a92f4565
BLAKE2b-256 checksum
How to use checksums
101499e8216006b2709ab622a7c29173253ad46013cc8eeb8cc7171f9e96a100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.10.20 Linux/6.5.0-17-generic

Release files / microns_combiner-0.4.0-py3-none-any.whl

Download URL microns_combiner-0.4.0-py3-none-any.whl
Size 33.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85871e66d75abfbbcb4d68ae78a9d299acb2c8a57d4a752441df4e20199f5923
BLAKE2b-256 checksum
How to use checksums
71739147f87148c16410030ed15804adf454f941f27d56cb8c44efb27ccfee77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.10.20 Linux/6.5.0-17-generic

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page