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.

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

Usage

The basic usage is:

from pylmeasure import *

# Specify the L-Measure to compute, full list: http://cng.gmu.edu:8080/Lm/help/index.htm
LMOutput = getMeasure(['Surface', 'Diameter'], ["path/to/file.swc"])

#                                              V-- measure index           V-- file index
print("Surface area of first file:",  LMOutput[0]["WholeCellMeasuresDict"][0]["TotalSum"])
print("Mean diameter in first file:", LMOutput[1]["WholeCellMeasuresDict"][0]["Average"])

For more examples, see this Jupyter notebook.

Issues

If you encounter an issues, first make sure it's not due to L-Measure itself -- this library simply wraps the L-Measure executables. If it is, please contact the L-Measure team. If the issue is with this library, please create an issue on Github.

Contributing

To contribute, please open an issue first and discuss your plan for contributing. Then fork this repository and commit a pull-request with your changes.

Acknowledgements

This wrapper library project was initialy started by Ajayrama Kumaraswamy. View the original source.

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.5.tar.gz (3.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pylmeasure-0.1.5-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: pylmeasure-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 62482fc73d83d40f1d8474d19dfb3392a4aa0385ba19dadebeba83c5658d3e4a
MD5 5f20b9ee10b0cc4146f0d6ebbc1751ec
BLAKE2b-256 d4df89548d414d8cf97c8ac516562773d805c0461e912bf5475e46767cd378ce

See more details on using hashes here.

File details

Details for the file pylmeasure-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pylmeasure-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f0cb0d0c41ce237c0ae7a3a596808d4f8f7469849649089a5b3fc0cf35fb42
MD5 6c1a265b5085351a05109b7287d4acc4
BLAKE2b-256 b1ed0147f33e468448935f55dc32ade4b01259ee3198b245a56c2ad97a9310b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylmeasure-0.1.5-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.5-py2-none-any.whl
Algorithm Hash digest
SHA256 c5a61fec919de08f09bc5bfb8cfe08014cd5011729294ef9eea34bbc4d425bf1
MD5 47a142ed549007a345114bd26ae0dbfd
BLAKE2b-256 41e9e424aae201bc896095bea4472c5fcceab0b09a739de87b72781735d83adc

See more details on using hashes here.

Supported by

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