Skip to content

Modernize to pip-installable package (v2.0)#152

Open
jonasscheid wants to merge 7 commits intoFRED-2:masterfrom
jonasscheid:feature/modernize-pip-package
Open

Modernize to pip-installable package (v2.0)#152
jonasscheid wants to merge 7 commits intoFRED-2:masterfrom
jonasscheid:feature/modernize-pip-package

Conversation

@jonasscheid
Copy link

@jonasscheid jonasscheid commented Feb 2, 2026

Summary

Transforms OptiType into a modern, pip-installable Python package.

Key changes:

  • Package structure: src-layout with pyproject.toml (hatchling)
  • CLI: Click-based with subcommands (optitype run, check-deps, init-config)
  • Data format: HDF5 → Parquet (92MB → 370KB)
  • Python: 3.10+ only (removed Python 2.7 compatibility)
  • CI/CD: GitHub Actions with PyPI trusted publishing
  • API: Programmatic interface (run_hla_typing())

Installation:

pip install optitype

Usage:

optitype run -i reads_1.fq -i reads_2.fq --dna -o results/

Results verified against baseline - HLA typing output unchanged.

Exome (1.3.5 top, 2.0.0 botton)
Screenshot 2026-02-02 at 11 14 39
Screenshot 2026-02-02 at 11 15 13

RNA (1.3.5 top,, 2.0.0 botton)
Screenshot 2026-02-02 at 11 16 54

Screenshot 2026-02-02 at 11 17 15

🤖 Generated with Claude Code

@jonasscheid
Copy link
Author

@andras86 @b-schubert @lkuchenb @christopher-mohr

Would be great to have a modern optitype package. I would like to ask you to give feedback and help pushing a new optitype version to pypi. On top of this, new small features can be simply added, e.g. reference update etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant