semvec/pypi-packages huggingface dataset:
QCBio 0.1.0
QCBio: A small bioinformatics toolkit with 6 essential tools.
License: MIT
Requires Python: >=3.6

# QCBio

**QCBio** 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 QCBio via pip once it's uploaded:

```bash
pip install QCBio
```


# Usage
## 1. FASTA Reader
```bash
from QCBio import read_fasta

sequences = read_fasta("example.fasta")
print(sequences)
```

## 2. Reverse Complement

```bash
from QCBio import reverse_complement

seq = "ATCG"
rc = reverse_complement(seq)
print(rc)
```

## 3. DNA Translator

```bash
from QCBio import translate_dna

dna_seq = "ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG"
protein = translate_dna(dna_seq)
print(protein)
```


## 4. GC Content Calculator

```bash
from QCBio import gc_content

seq = "ATGCGC"
gc_percentage = gc_content(seq)
print(f"GC Content: {gc_percentage:.2f}%")

```



## 5. Motif Finder

```bash
from QCBio import find_motif

seq = "ATGCGCGTAGCGC"
motif = "GCG"
positions = find_motif(seq, motif)
print(positions)
```


## 6. Random DNA Generator

```bash
from QCBio import generate_random_dna

random_seq = generate_random_dna(50)
print(random_seq)


```