Modernize to pip-installable package (v2.0)#152
Modernize to pip-installable package (v2.0)#152jonasscheid wants to merge 10 commits intoFRED-2:masterfrom
Conversation
|
@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. |
|
@andras86 @b-schubert @lkuchenb @christopher-mohr do not want to be annoying, but would be great to have your opinion on this PR and how to proceed. Lots of people are still using Optitype, would be a pity to discontinue maintenance. I can offer to help out with this as well. |
|
Following; mean to test this revision soon. Will report back. If this works directly in a python env this sounds promising. |
|
@Zaroganos sounds good! You can use the feature branch with bam/sam input in python env. With fastq input you require razer3, which is available via conda, so you might wanna switch to a conda env and run optitype from within there |
|
Hi @jonasscheid! Thank you for this, it's nice to see you want to keep OptiType alive, and I definitely won't prevent you from doing that :) You're right that in its original form it's a total PITA to use, so modernizing it to play along with the ecosystem would do great service to any users. I'm okay with trusting you and whoever else is interested to test it, so if @Zaroganos is satisfied we can merge. The one thing I'd ask you though is to version it as v1.5 instead of 2.0, which was meant to be the version that types HLA Class II as well. A preliminary form of it (different concept from OT1) in some branch was used in a couple of projects (mostly ancient DNA), but let sleeping dogs lie. |
Summary
Transforms OptiType into a modern, pip-installable Python package.
Key changes:
pyproject.toml(hatchling)optitype run,check-deps,init-config)run_hla_typing())Installation:
Usage:
Results verified against baseline - HLA typing output unchanged.
Exome (1.3.5 top, 2.0.0 botton)


RNA (1.3.5 top,, 2.0.0 botton)

🤖 Generated with Claude Code