https://github.com/mr-ravin/bingenetic
This repository contains a simple python library to convert binary data to genetic codes and further genetic codes back to binary data.
https://github.com/mr-ravin/bingenetic
bioinformatics data-storage dna dna-storage genetic-code genetic-storage genetics rna rna-storage
Last synced: over 1 year ago
JSON representation
This repository contains a simple python library to convert binary data to genetic codes and further genetic codes back to binary data.
- Host: GitHub
- URL: https://github.com/mr-ravin/bingenetic
- Owner: mr-ravin
- Created: 2020-11-22T14:01:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T13:02:00.000Z (over 1 year ago)
- Last Synced: 2025-03-04T13:05:04.622Z (over 1 year ago)
- Topics: bioinformatics, data-storage, dna, dna-storage, genetic-code, genetic-storage, genetics, rna, rna-storage
- Language: Python
- Homepage:
- Size: 229 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

**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**
- **π¨βπ» Developer:** [Ravin Kumar](https://mr-ravin.github.io)
- **π GitHub Repository:** [BinGenetic](https://github.com/mr-ravin/bingenetic)
---
## π₯ **Installation**
```sh
pip install bingenetic
```
or,
```sh
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:
```python
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:
```python
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.
```