Skip to content

JustasB/pylmeasure

 
 

Repository files navigation

Build Status codecov PyPI version

PyLMeasure: A Python Wrapper for LMeasure.

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 = getOneMeasure('Surface', 'path/to/cell.swc')

print("Surface area:",  LMOutput["TotalSum"])

For more examples, see this Jupyter notebook.

Issues

If you encounter an issue, 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.

Releases

No releases published

Packages

No packages published

Languages

  • HTML 62.8%
  • Jupyter Notebook 24.3%
  • Python 9.4%
  • JavaScript 3.0%
  • CSS 0.5%