Skip to main content

Diametrize cells

Project description

This code is a work in progress and will aimed at generating synthetic diameters for neurons, with parameters learned from a set of biological neurons.

Installation

The usual

pip install -e .

Main usage

Step 1: Building models

In folder example, you first have to modify create_jsons.py to suit your needs.

You have the following important parameters for the dict extract_models_params:

  • morph_path: path to morphology files

  • mtypes_sort: how to learn distributions: all to use all together, mtypes to use by mtypes , super_mtypes to use home made cells types (see diameter_types below)

  • models: to create several models (for now they are all the same, just differen realisation of random numbers)

  • neurite_types: types of neurite to learn parameters for

  • extra_params: dict of additional model parameters

Step 2: Building diameters

Then simply run ./run_models.sh to create the models (saved in a json file).

In create_jsons.py, the dict generate_diameters_params needs to be updated, too, with entries matching the previous dict. The path in new_morph_path will be where the new morphologies will be saved.

Then run ./run_diamters.sh to generate diameters.

Additional scripts

Several additional scripts in folder scripts:

  • diameter-checks: run the diameter-check code (bluepymm) on the biological and sampled cells

  • diameter_types: cluster mtypes using distributions of surface areas (uses two privates repositories a the moment)

  • extract_morphometrics: from bio and sample cells, extracts and plot distribution of surface aread and diameter as a function of branch order and path lengths

  • extract_morphologies: from a cell release, find the ones that can be run through diameter-check

  • plot_morphologies: plot all morphologies in mtype folders

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diameter-synthesis-0.2.6.tar.gz (418.3 kB view details)

Uploaded Source

Built Distribution

diameter_synthesis-0.2.6-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file diameter-synthesis-0.2.6.tar.gz.

File metadata

  • Download URL: diameter-synthesis-0.2.6.tar.gz
  • Upload date:
  • Size: 418.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for diameter-synthesis-0.2.6.tar.gz
Algorithm Hash digest
SHA256 eac3e1e94916f41d21d2884a5a3096f6566867710f2ec3da29ee64f7caaddbc7
MD5 d39e1349bb6fab4eda85ebe8a1bb3e29
BLAKE2b-256 cd8c067525e557b10a2fc271bd87a50c5f0009433811220203c0266e8a18b1c9

See more details on using hashes here.

Provenance

File details

Details for the file diameter_synthesis-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for diameter_synthesis-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8ab06501735c9ba23231ca125e72eeca522dd630219e3e7616bbf3375c381acb
MD5 014f147f9d40aa0d15baad9f7af53e39
BLAKE2b-256 c9573bde926cb5e01a8acdefcce04de98a30191e2cf6dea9c9d8bf5182fbdb78

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page