Skip to main content

A Python wrapper for L-Measure

Project description

Build Status Coverage Status PyPI version

PyLMeasure: A Python Wrapper for L-Measure.

PyLMeasure is a Python wrapper library for the command-line interface of the neuronal morphology analysis tool L-Measure.

Installation

To install the library, simply type in pip install pylmeasure in your terminal.

There is no need to separately download L-Measure or install Java. The above command includes the necessary binaries.

Usage

Issues

Contributing

Mainly, three functions are implemented getMeasure(), getMeasureDistribution() and getMeasureDependence().

Operating systems Supported:

  1. Linux 32 and 64 bit

Installation: Linux: Caution: Do not place these files in a system path.

  1. Copy the folder 'python-Lmeasure' to a location(for example /installations/)

  2. Add the path '/LMIO/' to the system PYTHONPATH by adding the following line to .profile or .bashrc

    export PYTHONPATH="$PYTHONPATH:/LMIO/"

    Source the .profile or .bashrc file.

Output Format:

The object returned by any of the three functions is a list of a dictionaries, each dictionary with the following structure. Each dictionary corresponds to one measure specified as input to the function being used(in measureNames or measure1Names).

LMOutputTemplate = dict(rawData=None, measure1BinCentres=None, measure1BinCounts=None, measure2BinAverages=None, measure2BinStdDevs=None, WholeCellMeasures=None, )

WholeCellMeasures is a (# of swc files given)x7 numpy array. The seven entries along the second dimension correspond respectively to

TotalSum, CompartmentsConsidered, Compartments Discarded, Minimum, Average, Maximum, StdDev

All meaure**** fields are (# of swc files given) x (nBins +1) numpy arrays.

getMeasure() has its results in WholeCellMeasures.

getMeasureDistribution has its results in measure1BinCentres and measure1BinCounts

getMeasureDependence has its results in measure1BinCentres, measure2BinAverages and measure2BinStdDevs

Misc:

See the file ExampleUsage.py for example usage.

Look at the documentation strings for more information

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

pylmeasure-0.1.3.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

pylmeasure-0.1.3-py2-none-any.whl (3.2 MB view details)

Uploaded Python 2

File details

Details for the file pylmeasure-0.1.3.tar.gz.

File metadata

  • Download URL: pylmeasure-0.1.3.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for pylmeasure-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9fe65e1c834a621025246374edbfeab99e92b4dc52d83001834bc81d8909b045
MD5 5e2ddb6e5422673c9015a6c3599b217c
BLAKE2b-256 ed19bfb446aef2f623224fc1213572c1c87b7d0c7c2e7b851f21cfe544e0911d

See more details on using hashes here.

File details

Details for the file pylmeasure-0.1.3-py2-none-any.whl.

File metadata

  • Download URL: pylmeasure-0.1.3-py2-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for pylmeasure-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 6592fe9c384dafe168fc80ff20901578c2eeafdec3bc9d603b22d43535700753
MD5 4a735e79c386392dcbb0e6b910076dc5
BLAKE2b-256 d14be27079e1a5a3a1c6b11fce5e99f14534b16a8c15f1919ce87fdd0a74fb3c

See more details on using hashes here.

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