Sequence analysis
Work directly with DNA and RNA sequences using predictable, composable primitives.
↗GenomeHouse is a modular Python toolkit for sequence analysis, genomic parsing, machine learning, visualization, and the work that connects them.
from genomehouse import sequence_tools
# inspect a sequence in one line
sequence = "ATGCGTAC"
gc_content = sequence_tools.gc_content(sequence)
> 50.0
Start with a single sequence or build a repeatable workflow. Each module stays small enough to understand and useful enough to ship.
Work directly with DNA and RNA sequences using predictable, composable primitives.
↗Stream standard research formats without forcing whole files into memory.
↗Move from biological sequences to useful features and baseline models quickly.
↗Create publication-ready views for genomic and biological data.
↗Turn exploratory measurements into reproducible analysis workflows.
↗Compose the toolkit around your own pipelines and research conventions.
↗Install the package, open a Python shell, and keep your attention on the biology.
GenomeHouse 1.2.0 requires Python 3.8 or newer. Optional dependencies are available for visualization and machine learning.
$ pip install genomehouseA few familiar entry points from the package README, arranged for quick scanning and copying.
from genomehouse import sequence_tools
seq = "ATGCGTACGGCTA"
gc_content = sequence_tools.gc_content(seq)
print(f"GC Content: {gc_content}%")from genomehouse import genomic_parsers
for header, sequence in genomic_parsers.parse_fasta("data.fasta"):
print(f">{header}")
print(f"Length: {len(sequence)}")genomehouse-cli parse-fasta data/sample.fasta
genomehouse-cli gc-content ATGCGTACA clearer starting point