Skip to content

PepQueryMHC v1.0.7

Choose a tag to compare

@progistar progistar released this 09 Jul 06:06
· 6 commits to main since this release

New feature

  • Extract mode: a new --mode extract that pulls reads matching the input peptides/locations out of a BAM file into a standalone, sorted and indexed BAM (-e/--extract). Includes deduplication of reads
    pulled from multiple task-level chunks before the final merge.

Performance improvements

  • BAM indexing/sorting (BAMUtil): switched to ValidationStringency.SILENT and enabled async I/O — ~2.2x faster indexing on a 173MB BAM.
  • htsjdk upgraded 4.1.0 → 4.3.0 (verified byte-identical output).
  • Mutation calling (LocationInformation.calMutation): replaced repeated regex-based String.split with a single indexOf-based scan — ~10% faster, byte-identical output.
  • Hashtable → HashMap across the scan/annotate pipeline: removed unnecessary per-call synchronization overhead from maps that are either thread-confined or read-only during the parallel phase — ~2x faster
    on raw get/put, verified race-free under real 8-thread concurrency.
  • Codon translation (Translator.translation/Codon.nuclToAmino): removed a redundant per-codon String allocation and unnecessary toUpperCase() call — ~2.6x faster.
  • Input validation (Validation.checkValidSequence): precompiled the nucleotide/peptide regex patterns instead of recompiling them on every call — ~2x faster.

Bug fix

  • FASTQ mode multi-threading: --thread/-@ was effectively ignored in FASTQ mode — chunks were submitted to a thread pool but immediately awaited one at a time, so only one thread ever did work. Chunk
    submission and result-merging are now decoupled, letting up to --thread chunks run concurrently. ~2.7x faster on a 2M paired-end read benchmark (CPU utilization 189% → 521%), byte-identical output verified
    against the old behavior.

Build

  • Added a Maven assembly plugin configuration so mvn package produces a single self-contained, runnable jar (previously this required an Eclipse "Runnable JAR" export).
  • Added build_jar.sh, which builds and names the release jar after the version declared in Constants.java (e.g. PepQueryMHC.v1.0.7.jar).

Upgrade notes

  • No changes to CLI options, input/output formats, or column schemas in this release — outputs were verified byte-identical against v1.0.6 wherever a like-for-like comparison was possible.

Full Changelog: v1.0.6...v1.0.7