Skip to main content

FractalDNA is a Python package built to generate DNA geometries for simulations

Project description

FractalDNA

Python routines for generating geometric models of DNA

FractalDNA is being converted to a package, it is under active developmemt

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

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

fractaldna-0.5.0.tar.gz (43.6 kB view details)

Uploaded Source

Built Distribution

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

fractaldna-0.5.0-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file fractaldna-0.5.0.tar.gz.

File metadata

  • Download URL: fractaldna-0.5.0.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.7.6 Darwin/21.3.0

File hashes

Hashes for fractaldna-0.5.0.tar.gz
Algorithm Hash digest
SHA256 a1814711dc5ad19cd83a921bc8c3ad998596d9ba759f0f73db5a857bab8b2738
MD5 ab545cfb2f43a87172f656fc5d81821b
BLAKE2b-256 359eeb554c7d134e9675c8c97a5afc0cbe4e708366f69da802179ddb84488010

See more details on using hashes here.

File details

Details for the file fractaldna-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: fractaldna-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.7.6 Darwin/21.3.0

File hashes

Hashes for fractaldna-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4b02b04925dde77ac9e318e20a75ce131ec1c93da951ce816fb5296bf2c4788
MD5 b3501f854d9169fba80225acdf34f088
BLAKE2b-256 67675dab36e8976d18f34b96b0033198d7a7d0455420b4bc298173006832405c

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