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-2.0.3.tar.gz (53.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-2.0.3-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lineagetree-2.0.3.tar.gz
Algorithm Hash digest
SHA256 fcf0001077b64e9f0cf6b3d49972bab6e6c9d1c3a971e7744a96a36819f300e4
MD5 fba9c0d01079e7f786fd15145a3a5c05
BLAKE2b-256 f1150f47382eea6342dc44a5433b6190db954bd2c7f23c25bd6b953939d39d3e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lineagetree-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79f9fe634bed23cfe47eda010239778f42ba00248ddb24393f69902b470ead40
MD5 c801e5ce71474f6e75992b53ded05889
BLAKE2b-256 d7ef79322680257ed3a59625970341e0f4441038771e5f85cbb2801a2b3f287f

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