Skip to main content

Compute total electrons for DNA sequences with FASTA parsing and Biopython integration.

Project description

dna-electrons

Compute total electrons for DNA sequences with toggles for backbone and phosphate charges. Now includes FASTA parsing and Biopython integration.

Install (from source)

git clone https://github.com/yashmgupta/dna-electrons.git
cd dna-electrons
python -m venv .venv && source .venv/bin/activate  # on Windows: .venv\Scripts\activate
pip install -U pip build
pip install -e .

CLI

dna-electrons --seq ATGCAT --double --include-backbone --include-charge
dna-electrons --fasta sequences.fasta --output csv > results.csv

Python API

from dna_electrons import compute_electrons
from dna_electrons.io import compute_from_fasta

res = compute_electrons("ATGCAT", double_stranded=True, include_backbone=True, include_phosphate_charge=True)
for rec_id, r in compute_from_fasta("sequences.fasta", double_stranded=True):
    print(rec_id, r.total, r.breakdown)

Contributing

  • Run tests: pytest -q
  • Lint (optional): add your preferred linter/formatter.

License

MIT © 2025 {Yash Munnalal Gupta}

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

dna_electrons-0.2.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

dna_electrons-0.2.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file dna_electrons-0.2.1.tar.gz.

File metadata

  • Download URL: dna_electrons-0.2.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for dna_electrons-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a5f0a3b414f8849cba33837d50db90dca4a649988a6302bd245602abbba57492
MD5 ad739c6c1bf505af2e69508595c5a0b2
BLAKE2b-256 274418188dabd102aa9be72d2d4170df9096949058956e34f049b75173ad48df

See more details on using hashes here.

File details

Details for the file dna_electrons-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dna_electrons-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for dna_electrons-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89341d89c2de08dd1ce3ae8e3999f5e9e33e5c673510ec97caf5e90407c356e3
MD5 0fdbcd2a83d7bc17ab1ce5f283e90c45
BLAKE2b-256 159cb1799829dc98baceac569a9cc7e9105dd74d3227e03c2a8a9ac6c3aeba35

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