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.0.2.tar.gz (57.6 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.0.2-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lineagetree-3.0.2.tar.gz
  • Upload date:
  • Size: 57.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for lineagetree-3.0.2.tar.gz
Algorithm Hash digest
SHA256 ff5b8774aa8da85428764fdbf1b234aee129caf98697de7f16edd600c8ba28b0
MD5 0879350f4145327952335657e304d1ba
BLAKE2b-256 df4f5c4f4218e359ce3ed4d9790b1a698cad0949432bbe13e5c81a599348b2f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lineagetree-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 59.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for lineagetree-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f40a62388b448ef1e25b3d6d0651bb5f4fdec9d40fcef9aedd3586a906625f81
MD5 bce1bee091bef65bd3f9a7b36e0f6d54
BLAKE2b-256 d8aa3ff4a8cefc760489131b2cfa24ec9e46fdc8d5b2639e6cc8c100421ab944

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