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
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:
DNA Models provide straight and curved segments that can come together to make DNA for use in simulations.
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
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
This project was generated with python-package-template
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file fractaldna-0.6.1.tar.gz
.
File metadata
- Download URL: fractaldna-0.6.1.tar.gz
- Upload date:
- Size: 44.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.7.6 Darwin/21.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1e97098cfc7c616cf4623f65678ae4ead17a538cb7bbd1a2394fbf5b8f08e50 |
|
MD5 | 30fd4b0dcd847e8d0a4e04ff35474bc2 |
|
BLAKE2b-256 | 9db5d82b093539ef560d7853364ad2deebde58e9c25290989d46b75a4ef65760 |
File details
Details for the file fractaldna-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: fractaldna-0.6.1-py3-none-any.whl
- Upload date:
- Size: 46.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.7.6 Darwin/21.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fa308e77099f6f62c06fd84ff7ff4042887b8c010f643570f3c83494387623c |
|
MD5 | 33f3374da76f2f8e5a32a2a6e97eafc3 |
|
BLAKE2b-256 | c77bcf3047e9afbea5d19700cf3f5f01fd6501f4bcd74d60e6c0d1a361c7bea5 |