Skip to main content

Python package for analysing nuclear shape from 3D-genome models generated from Hi-C data.

Project description

nuclear_shape

A small Python library for analysing nuclear shape from 3D‑genome models (Chrom3D .cmm files).
Includes ellipsoid fitting, PCA, basic shape metrics, and simple plotting/rendering.

Installation

pip install nuclear_shape

Basic Usage

from nuclear_shape import NuclearShape

shape = NuclearShape("path/to/file.cmm")

shape.ellipsoid_fit()
shape.ellipsoid_inner()
shape.ellipsoid_outer()
shape.compute_pca()

shape.print_metrics()
shape.plot("sphericity", show=True)
shape.render("ellipsoid", show=True)

Example Data

An example .cmm file and a test script are included:

test/example_real_data_0.cmm
python test/test.py

License

MIT License

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

nuclear_shape-0.1.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nuclear_shape-0.1.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file nuclear_shape-0.1.3.tar.gz.

File metadata

  • Download URL: nuclear_shape-0.1.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nuclear_shape-0.1.3.tar.gz
Algorithm Hash digest
SHA256 605c83775fe36b618f39bc445a668f9bc1f660dff4035f824ad4e2926e6ae37b
MD5 5713194c90d275fc490bec199f78cd32
BLAKE2b-256 dc2265900c6d73e498ed98289445eeeda3f796b94b2c698d87d1533b46442616

See more details on using hashes here.

File details

Details for the file nuclear_shape-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: nuclear_shape-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for nuclear_shape-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4ca51bbf1885dd4b51d2d9828f9a59b2d95bf1893a47d7b5f84381264b50b4a
MD5 249f556915b92143fc787613a9d7be2d
BLAKE2b-256 1fb699f579d48fc33e20c250bf100d4a5dcfba7055afa276eb1e9ef98e917e1a

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