Skip to main content

GWAS Association Tools

Project description

GWAS Association Tools

A command-line tool for genomic-wide association studies (GWAS) data validation and analysis.

Features

  • Validate:
    • Input: File path of GWAS Submission template that contains top associations
    • Output: Validation report of top associations

Installation

Install from PyPI:

pip install gwas-assoc-tools

Usage

# Basic validation command
gwas-assoc validate <template excel file path>

# For help
gwas-assoc --help
gwas-assoc validate --help

Development

Setup

# Install Poetry (if not already installed)
curl -sSL https://install.python-poetry.org | python3 -

# Install dependencies
poetry install

# Activate virtual environment
poetry shell

Building and Installation

# Build the package (creates .whl and .tar.gz in dist/)
poetry build

# Install your new package in development mode
poetry install

Testing

TODO

Running with Real Files

# Run the CLI command through Poetry
# For failed test file
poetry run gwas-assoc validate ./tests/test_fail.xlsx   
# For successful test file
poetry run gwas-assoc validate ./tests/test_success.xlsx   


# Or after activating the shell
poetry shell
# For failed test file
gwas-assoc validate ./tests/test_fail.xlsx   
# For successful test file
gwas-assoc validate ./tests/test_success.xlsx   

Dependency Management

# Add a new dependency
poetry add new-package

# Add a development dependency
poetry add --group dev pytest-mock

# Check for dependency updates
poetry update --dry-run

# Update dependencies
poetry update

Code Quality

# Run formatting
poetry run black .
poetry run isort .

# Run linting
poetry run ruff check .

# Run type checking
poetry run mypy src

# Run all formatting checks
poetry run pre-commit run --all-files

Documentation

Please find the Confluence page here: https://embl.atlassian.net/wiki/spaces/GOCI/pages/57606184/GWAS+Associations+Tools

License

License

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

gwas_assoc_tools-0.1.2.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

gwas_assoc_tools-0.1.2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file gwas_assoc_tools-0.1.2.tar.gz.

File metadata

  • Download URL: gwas_assoc_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/5.14.0-503.22.1.el9_5.x86_64

File hashes

Hashes for gwas_assoc_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 18a26bdb4f32b5c05ad055a4146757f2d77172982eb951b92b7f55a02b97a062
MD5 ff4b9e82a187b50236a34d29b37ed000
BLAKE2b-256 6bc36f5e7ee5a7ace335d088d4620bb72abc0bb6585711c703816c70d980d3a9

See more details on using hashes here.

File details

Details for the file gwas_assoc_tools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gwas_assoc_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/5.14.0-503.22.1.el9_5.x86_64

File hashes

Hashes for gwas_assoc_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10af9e14899a85adc8359e32ffdc760249e259609045b67df344b41532186909
MD5 963d11116aaf053d0c780fbe2f72830e
BLAKE2b-256 b08fc5937f1806038fa89f247bd8376827743e677b76326d36c141dc5377a9ff

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