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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nuclear_shape-0.1.0.tar.gz.
File metadata
- Download URL: nuclear_shape-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
752911940d0f3c67d8d6645a63b4c8b172d6645491199fd486a8ba26be6b458a
|
|
| MD5 |
97469a8c46d8951ef801677c91f44f2b
|
|
| BLAKE2b-256 |
c795495cda75178e3e02cd9d72d60903f721c3e9129aed72f8e878f5af236f9b
|
File details
Details for the file nuclear_shape-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nuclear_shape-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0943223d3c9fa56282134d4bd7bb2b81a4141b6c06e38f0cda11dd04ad5f151c
|
|
| MD5 |
936aff909a871e2a8869585d0d391ed7
|
|
| BLAKE2b-256 |
d15e4c9f1ba778b88cba91730714cbb76c5a6e032a96c0d1befaa03bfcb5c869
|