Skip to content

IsmielAbir/PyBioQuanta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

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 PyBioQuanta 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)

About

PyBioQuanta Package

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages