Skip to content

General improvements - #11

Merged
jonasfreimuth merged 26 commits into
masterfrom
freimujo/refactor-script-dispatch
Sep 2, 2026
Merged

General improvements#11
jonasfreimuth merged 26 commits into
masterfrom
freimujo/refactor-script-dispatch

Conversation

@jonasfreimuth

@jonasfreimuth jonasfreimuth commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator
  • Centralizes script dispactch in a python script.
  • Adds centralized config script defining IMGT HLA and custom reference paths.
  • Adds a check for all installed packages.
  • Factors script funcitonality into reasonably testable functions.
  • Ensures proper main protection for all scripts.
  • Removes unused setup.py and commented out code.
  • Removes script version and date data.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Centralizes command dispatch and configuration while refactoring scripts into callable functions.

Changes:

  • Adds unified Python argument parsing and dispatch.
  • Centralizes reference/data paths and extracts testable functions.
  • Cleans obsolete metadata, commands, and packaging code.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
arcasHLA Delegates dispatch to Python.
scripts/arcasHLA.py Adds unified CLI dispatch.
scripts/config.py Centralizes paths and parameters.
scripts/arcas_utilities.py Adds executable validation.
scripts/align.py Corrects Kallisto command construction.
scripts/convert.py Extracts conversion API and parser.
scripts/customize.py Extracts customization API and uses config.
scripts/extract.py Extracts read-processing API and parser.
scripts/genotype.py Extracts genotyping API and dependencies.
scripts/merge.py Extracts merge API and parser.
scripts/partial.py Extracts partial-genotyping API.
scripts/quant.py Extracts quantification API and fixes commands.
scripts/reference.py Centralizes reference management.
setup.py Removes obsolete packaging definition.
test/conftest.py Calls extraction directly in fixtures.
test/test_arcasHLA.py Adds top-level help parsing coverage.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/arcasHLA.py
Comment thread scripts/extract.py
Comment thread scripts/genotype.py
Comment thread scripts/partial.py
jonasfreimuth and others added 13 commits September 1, 2026 19:07
So we can use them as entrypoints later on.
As this has been only a collection of scripts packaged via conda,
this was unsed.
Each part must be a list element.
scripts/arcasHLA.py already centralizes arg parsing and dependency
checks, but the top-level `arcasHLA` wrapper still hand-rolled its own
per-command dispatch and ad-hoc dependency warnings. Forward all
invocations to the central dispatch script instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonasfreimuth
jonasfreimuth force-pushed the freimujo/refactor-script-dispatch branch from 0b42664 to 82d0593 Compare September 1, 2026 17:07
@jonasfreimuth
jonasfreimuth merged commit 82d0593 into master Sep 2, 2026
3 checks passed
@jonasfreimuth
jonasfreimuth deleted the freimujo/refactor-script-dispatch branch September 2, 2026 11:51
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.

2 participants