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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nuclear_shape-0.1.2.tar.gz
  • Upload date:
  • Size: 10.3 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.2.tar.gz
Algorithm Hash digest
SHA256 483b7bc5cb4d1e13c7d1c47fc39f169c37bbf7b15249f3d5a65706932961dd60
MD5 fac74b7ac89306c902c9a81c93a1f063
BLAKE2b-256 d06f98f55ce2b8956cdd8b05670fe04508355c3e2a52a491c36ea82d2bd27c62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nuclear_shape-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a14a4deeb4bdde377d06ecee311151930148a893dc5d36f7ab303a887c954bc5
MD5 b36fe2d385f3faeb2923943e5c7936f2
BLAKE2b-256 f76138581cc347453e37d244d3ce62f76c8613dbaca3a54db4090e7d7b31387b

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