Skip to main content

Structure for Lineage Trees

Project description

LineageTree

Documentation available at LineageTree Documentation

This library allows to import and work with cell (but not limited to cells) lineage trees. With LineageTree you can read from:

Basic usage

Once installed the library can be called the following way (as an example):

from lineagetree import LineageTree

and one can then load lineage trees the following way:

For .lT files:

lT = LineageTree.load('path/to/file.lT')

For ASTEC data:

from lineagetree import read_from_ASTEC
lT = read_from_ASTEC('path/to/ASTEC.pkl')

For MaMuT or TrackMate:

from lineagetree import read_from_mamut_xml
lT = read_from_mamut_xml('path/to/MaMuT.xml')

For TGMM:

from lineagetree import read_from_tgmm_xml
lT = read_from_tgmm_xml('path/to/single_time_file{t:04d}.xml', tb=0, te=500)

For Mastodon:

from lineagetree import read_from_mastodon
lT = read_from_mastodon('path/to/Mastodon.mastodon')

or, for Mastodon csv file:

from lineagetree import read_from_mastodon_csv
lT = read_from_mastodon_csv(['path/to/nodes.csv', 'path/to/links.csv'])

Quick install

To quickly install the library together with its dependencies one can run:

pip install LineageTree

or, for the latest version if you have cloned the directory:

pip install .

or for the latest version wihtout cloning the directory

pip install git+https://github.com/leoguignard/LineageTree

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

lineagetree-3.2.0.tar.gz (63.0 kB view details)

Uploaded Source

Built Distribution

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

lineagetree-3.2.0-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

Details for the file lineagetree-3.2.0.tar.gz.

File metadata

  • Download URL: lineagetree-3.2.0.tar.gz
  • Upload date:
  • Size: 63.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for lineagetree-3.2.0.tar.gz
Algorithm Hash digest
SHA256 6cde0cb28057864e36b86c9f9d051f94b22e719f29df602d56181f5f374dc020
MD5 bf825a803ae7c14c97cd26b7512aa272
BLAKE2b-256 c48fc7c2c0d2387a766cdd2955638525392bf6443fc11afd5a0ba16188c07f1c

See more details on using hashes here.

File details

Details for the file lineagetree-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: lineagetree-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 64.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for lineagetree-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1b8ba19b94edc3b8be4e6a9584a9f67d9671c6219e4951646f0a0e8dfb46f5
MD5 04be4de62cd84b65211414a2b9fe27ea
BLAKE2b-256 169abc0fe4f575e95309a213cec79a71a1893a21083d9a8020c1b1309282e996

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