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.1.tar.gz (10.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.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nuclear_shape-0.1.1.tar.gz
  • Upload date:
  • Size: 10.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.1.tar.gz
Algorithm Hash digest
SHA256 62cfd4432eaabcb8695c8ab9dcaa64e2912edaccf777628844e649466107e13f
MD5 12e8ec29262f0ac668271978221e060e
BLAKE2b-256 c82c4312f919bd93e5b8b02eb06daec2c7fe043212c15a470b1d9f3e52f1e2e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nuclear_shape-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0dc7246edc8ef1a9203fb2c073e3390ddc12afd3d6dbac9cfe04efdff8f3484
MD5 24bcdfbed1721cb8079d826e63a5c9bf
BLAKE2b-256 30ddba00cc90504c226eb7c3562cc39078e142402e1f70ba33cca4ca66753baa

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