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.3.tar.gz (58.3 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.3-py3-none-any.whl (60.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lineagetree-3.0.3.tar.gz
  • Upload date:
  • Size: 58.3 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.3.tar.gz
Algorithm Hash digest
SHA256 af74126de1cc9fba8941c2ec5382eec0715966d86fab34cd25da82d33c922836
MD5 189ecf5cac8401ec413da110f4aad138
BLAKE2b-256 cec3514928b290a86f6f409d70480492df01e678135d288dba77fae4cac52941

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lineagetree-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 60.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0eacb829f8f468af5e78f67d65c2a8346886c64fbf03f6a06df763e4f68c48
MD5 a3b890c301109b590361099eac20848e
BLAKE2b-256 535727b6584e8e6ea91a398e808365c3b5215f9f6543b16b3855fe8e30b1bf6c

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