Install from PyPI
pip install genomehouseEverything you need to move from sequence-level exploration to reproducible genomic workflows.
Install the latest release from the Python Package Index or work from source.
pip install genomehousegit clone https://github.com/GenomeHouse/GenomeHouse-1.1.git
cd GenomeHouse-1.1
pip install -e .The core package is intentionally lightweight. Add optional dependencies as your analysis grows.
Python ≥ 3.8
NumPy ≥ 1.19.0
Pandas ≥ 1.3.0
Matplotlib for visualization
Scikit-learn for ML features
Seaborn for advanced plots
Import the modules you need and compose them in a normal Python workflow.
from genomehouse import sequence_tools, genomic_parsers
seq = "ATGCGTAC"
print(sequence_tools.gc_content(seq))
for header, sequence in genomic_parsers.parse_fasta("example.fasta"):
print(header, sequence)Composable primitives for common bioinformatics analysis tasks.
Calculate the GC content percentage of a DNA sequence.
sequence_tools.gc_content("ATGCGCGCTA")Generate the reverse complement of a DNA sequence.
sequence_tools.reverse_complement("ATGCGT")Find all occurrences of a motif pattern in a sequence.
sequence_tools.find_motifs("ATGCGCGCTA", "GC")Translate DNA sequence to amino acid sequence.
sequence_tools.translate("ATGAAATAG")Composable primitives for common bioinformatics analysis tasks.
Parse FASTA files and yield header-sequence pairs.
for header, sequence in genomic_parsers.parse_fasta("sequences.fasta")Parse FASTQ files with quality scores.
for record in genomic_parsers.parse_fastq("reads.fastq")Parse VCF variant files.
for variant in genomic_parsers.parse_vcf("variants.vcf")Composable primitives for common bioinformatics analysis tasks.
Extract numerical features from biological sequences.
features = ml_tools.extract_features(sequences, method="kmer")Machine learning classifier for biological sequences.
classifier.fit(features, labels)
predictions = classifier.predict(new_features)A complete sequence analysis workflow using the core sequence_tools API.
from genomehouse import sequence_tools
dna_sequence = "ATGAAACGCATTAGCACCACCATTACCACCACCATCACCATTACCACAGGTAACGGTGCGGGCTGA"
gc_content = sequence_tools.gc_content(dna_sequence)
protein = sequence_tools.translate(dna_sequence)
print(f"GC content: {gc_content:.1f}%")
print(f"Protein: {protein}")ImportError: check that the package is installed in the active environment.
FileNotFoundError: verify the path and working directory.
Memory concerns: use streaming parsers for large files.
Contributions, tests, and documentation improvements are welcome.
git clone https://github.com/GenomeHouse/GenomeHouse-1.1.git
cd GenomeHouse-1.1
pip install -e .[dev]
pytest tests/