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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lineagetree-3.0.4.tar.gz
  • Upload date:
  • Size: 59.8 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.4.tar.gz
Algorithm Hash digest
SHA256 f2dfe91a96f5ae979bade582a9232718cb118ff1f0175a1e94f0ffc7e055a362
MD5 ed0abc7c3711d363176e30eeac222124
BLAKE2b-256 d62116aa2e361331bf52a5903d0fe28cd7520a1b13a4bc42cd359e5b2c4e7ecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lineagetree-3.0.4-py3-none-any.whl
  • Upload date:
  • Size: 62.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 711f6a7fe11814ba9b94883a8bbe72aa8771f873cf39032e7c8c110e320e3679
MD5 ea90aa98df0b74816aef427b585dda2e
BLAKE2b-256 0b95824e757a9683895aa3fbda8d1c5b198da66ab494f00e9d52ba7711432b57

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