Skip to main content

Structure for Lineage Trees

Project description

LineageTree

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.1.0.tar.gz (60.7 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.1.0-py3-none-any.whl (62.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lineagetree-3.1.0.tar.gz
Algorithm Hash digest
SHA256 4c1d0c37ccf86df4d4ccae0e8fe71605ed93828c02c5cff44f565be342620dd2
MD5 e09c33d33a2ebfe730bd352d81bc9b32
BLAKE2b-256 9853c451532f0dadc2bb0a2b5c218f7869cf8a4ce50fdf68d4d87cf0e0d638d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lineagetree-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 62.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ea9c8b73c3dd8028eeb8b95c889e835aee06c38a9c7f8a15a9877ccccc4df81
MD5 7f2ef697b414dfa852c6358c64ec4b52
BLAKE2b-256 ecd52864f1b572c037883820095970148b201ddd17001644a3d54ac7814935c3

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