Skip to main content

FractalDNA

Python routines for generating geometric models of DNA

Build status Python Version Dependencies Status

Code style: black Security: bandit Pre-commit Semantic Versions License

FractalDNA is a Python package to make DNA geometries that can be joined together like jigsaw puzzles. Both simple, sections of DNA and Solenoidal DNA can be built. This module was built to enable DNA-level simulations to be run in Geant4-DNA, part of the Geant4 project.

Structure models define the large scale structure of DNA, seeded from fractals. An example seeding fractal is below:

A 3-D iterated Hilbert Curve

DNA Models provide straight and curved segments that can come together to make DNA for use in simulations.

A straight solenoidal DNA segment

Project documentation is available here alongside notebook examples

⚙️ Installation

Install FractalDNA with pip

pip install fractaldna

or install with Poetry

poetry add fractaldna

🧬 Make some DNA

from fractaldna.dna_models import dnachain as dna

# Make a DNA Chain 40 base pairs long (repeating GATC).
chain = dna.DNAChain("GTAC" * 10)

# Export it to a DataFrame for use in another program
df = chain.to_frame()

For more, check out the notebook examples in the project documentation.

🛡 License

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.

📃 Citation

@misc{fractaldna,
  author = {Nathanael Lampe},
  title = {FractalDNA},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/natl/fractaldna}}
}

Credits 🚀 Your next Python package needs a bleeding-edge project structure.

This project was generated with python-package-template

Metadata

Release files for fractaldna 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fractaldna 0.7.0
File Size Uploaded
fractaldna-0.7.0.tar.gz 42.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fractaldna 0.7.0
File Interpreter ABI Platform
fractaldna-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 89.4 kB

Release files / fractaldna-0.7.0.tar.gz

Download URL fractaldna-0.7.0.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9f5996e1d3500b15eebd5c4430e88987b6509678f16577666a995f978e6ef5c4
BLAKE2b-256 checksum
How to use checksums
e93187df02e1859da8a296a83f2adb7f8db37b1a0edb6e5e435f94d533250d5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.11 Linux/6.15.10-200.fc42.aarch64

Release files / fractaldna-0.7.0-py3-none-any.whl

Download URL fractaldna-0.7.0-py3-none-any.whl
Size 46.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ccb62e1709a72d45b6863f8e1469ecda07650570c423401e246d685ba04f7a4
BLAKE2b-256 checksum
How to use checksums
d53b3b4c3b6de22bc734dc23b0b3586c462db88c30eff3656e244e0328321ad7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.11 Linux/6.15.10-200.fc42.aarch64

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page