PyBioQuanta: A small bioinformatics toolkit with 6 essential tools.
Project description
PyBioQuanta
PyBioQuanta is a lightweight Python package offering 6 essential bioinformatics utilities.
It is designed for quick sequence operations, small analyses, and everyday bioinformatics tasks.
Features
- FASTA Reader: Parse FASTA files into Python dictionaries.
- Reverse Complement: Get the reverse complement of DNA or RNA sequences.
- DNA Translator: Translate DNA sequences into protein.
- GC Content Calculator: Calculate GC percentage of a sequence.
- Motif Finder: Find positions of motifs (subsequences) inside sequences.
- Random DNA Generator: Create random DNA sequences of desired length.
Installation
You can install PyBioQuanta via pip once it's uploaded:
pip install PyBioQuanta
Usage
1. FASTA Reader
from PyBioQuanta import read_fasta
sequences = read_fasta("example.fasta")
print(sequences)
2. Reverse Complement
from PyBioQuanta import reverse_complement
seq = "ATCG"
rc = reverse_complement(seq)
print(rc)
3. DNA Translator
from QCBPyBioQuanta import translate_dna
dna_seq = "ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG"
protein = translate_dna(dna_seq)
print(protein)
4. GC Content Calculator
from PyBioQuanta import gc_content
seq = "ATGCGC"
gc_percentage = gc_content(seq)
print(f"GC Content: {gc_percentage:.2f}%")
5. Motif Finder
from PyBioQuanta import find_motif
seq = "ATGCGCGTAGCGC"
motif = "GCG"
positions = find_motif(seq, motif)
print(positions)
6. Random DNA Generator
from PyBioQuanta import generate_random_dna
random_seq = generate_random_dna(50)
print(random_seq)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyBioQuanta-0.1.0.tar.gz.
File metadata
- Download URL: PyBioQuanta-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72a179eac817b132bcb1348688b550f7fe870b048601b9c6a9c15e58a33902b7
|
|
| MD5 |
f9a4e461daa15fa4d0711ac735cfc8d2
|
|
| BLAKE2b-256 |
4d0f38bdad0c9ac27d9b388cf438694ec7d5195aa9869554e9913ce6ece92606
|
File details
Details for the file PyBioQuanta-0.1.0-py3-none-any.whl.
File metadata
- Download URL: PyBioQuanta-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
021c3bc1cad9d124e5a480bc90d4f6e0bbefcb4a8022fffa15df3637b715c9d1
|
|
| MD5 |
85adabe1f0c3e152c10de300bfa33941
|
|
| BLAKE2b-256 |
e79a86a643942ead528a0f695a1f1506def77b861674cd765c339facbd8dba83
|