Skip to main content

BinGenetic is a lightweight Python library that enables seamless conversion between binary data and genetic sequences (DNA or RNA), facilitating research in DNA data storage and bioinformatics.

Project description

BinGenetic

BinGenetic is a lightweight Python library that enables seamless conversion between binary data and genetic sequences (DNA or RNA), facilitating research in DNA data storage and bioinformatics.


🔧 Development Details


📥 Installation

pip install bingenetic

or,

pip install git+https://github.com/mr-ravin/bingenetic.git

📌 Dependencies:

  • Python >= 3.7
  • No additional dependencies required

🚀 Usage & Examples

🔹 Binary Code to Genetic Code:

import bingenetic

# Convert binary to DNA sequence
genetic_code = bingenetic.btg("00011011", "dna")  # Binary -> DNA
print(genetic_code)  # Output: 'ACGT'

🔹 Genetic Code to Binary Code:

import bingenetic

# Convert DNA sequence to binary
binary_code = bingenetic.gtb("ACGT", "dna")  # DNA -> Binary
print(binary_code)  # Output: '00011011'

📌 Use Cases

  • DNA Data Storage – Store digital information using biological sequences.
  • Bioinformatics – Encode and decode genetic data efficiently.
  • Cryptography – Convert binary data into genetic code for secure encoding.

📜 License

Copyright (c) 2020 Ravin Kumar
Website: https://mr-ravin.github.io

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, 
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the 
Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Release history Release notifications | RSS feed

This version

2.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bingenetic-2.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

bingenetic-2.6-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file bingenetic-2.6.tar.gz.

File metadata

  • Download URL: bingenetic-2.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bingenetic-2.6.tar.gz
Algorithm Hash digest
SHA256 1e8eb1951e6b36c9a1c7bfb3b17869efe501d05db356bba72857018cd79be2ee
MD5 a482a3009fb922a22767ed83f59d1dd6
BLAKE2b-256 7ece21e84f7d5459de7fb2cfd8c3d6bb700deb8309606058815e8edd44ad2256

See more details on using hashes here.

File details

Details for the file bingenetic-2.6-py3-none-any.whl.

File metadata

  • Download URL: bingenetic-2.6-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bingenetic-2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 94b331b6d4be57d3ef847be70fc1d6d2fb9a38591bbf3c16310e92c5df400728
MD5 4e98093e0230bd1997294ece43baeb82
BLAKE2b-256 c59915fa8a6efca7f084ca48bbfbe08e9483ad7da4925418606c6e84bc709d34

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