Skip to main content

Genomic data analysis utilities from Zavolan Lab

Project description

zavolab_PYutils

Genomic data analysis utilities from the Zavolan Lab. A collection of Python utilities for common bioinformatics tasks including library size normalization, annotation conversion, and other genomic data analysis operations.

Features

  • Library Size Normalization: Multiple normalization methods (TMM, TPM, quantile, median)
  • Annotation Conversion: Convert between GTF and GFF3 formats
  • Genomic Data Processing: Utilities for working with genomic annotation files

Installation

From source

git clone https://github.com/zavolab/zavolab_PYutils.git
cd zavolab_PYutils
pip install -e .

From conda (after bioconda release)

conda install -c bioconda zavolab_pyutils

Development installation

git clone https://github.com/zavolab/zavolab_PYutils.git
cd zavolab_PYutils
pip install -e ".[dev]"

Quick Start

Library Size Normalization

import numpy as np
from genomic_utils import normalize_by_library_size

# Sample count matrix (genes × samples)
counts = np.array([
    [100, 200, 150],
    [50, 100, 80],
    [200, 400, 300],
])

# Normalize by library size (TMM method)
normalized = normalize_by_library_size(counts, method="tmm")

Annotation Conversion

from genomic_utils import convert_gff_to_gtf

# Convert GFF3 to GTF format
convert_gff_to_gtf("input.gff3", "output.gtf")

Documentation

For detailed documentation, see the docs directory.

Testing

Run the test suite with pytest:

pytest tests/

Run with coverage:

pytest tests/ --cov=src/genomic_utils

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please ensure all tests pass and add new tests for new functionality.

Citation

If you use zavolab_PYutils in your research, please cite:

TODO: Add citation information

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues, questions, or suggestions, please open an issue on GitHub.

Acknowledgments

Developed by the Zavolan Lab at the University of Basel.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zavolab_pyutils-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zavolab_pyutils-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file zavolab_pyutils-0.1.0.tar.gz.

File metadata

  • Download URL: zavolab_pyutils-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for zavolab_pyutils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c18a45a198929eece6f5e055b99b3192e58ca1114a6460346858a096d8f352a3
MD5 2a1ba367152b40455524432510d00ca8
BLAKE2b-256 08809a63728bc310f71c5f55dbeec8fdc6e2fe268a5d6cfb164c384aedc27501

See more details on using hashes here.

File details

Details for the file zavolab_pyutils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zavolab_pyutils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74dd0d7a47658a5a35e8635822c80f26ad42e6e262848cd423b8fac168862706
MD5 763af33baeb02288186b681d9a2ae2ff
BLAKE2b-256 09dc37c7a646ed3e47d00f503763f187b46d6454d0132140d733827b32d6637b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page