| Age | Commit message (Collapse) | Author |
|
Every dependency in hmf/packages/java-libraries.scm used to be installed
as a pre-built Maven Central jar. 56 of them are now compiled here.
New machinery
- maven-central-source-jar: fetches ARTIFACT-VERSION-sources.jar and
compiles it with javac on openjdk17, installing the same
artifact-version.jar name the binary package used. It drops
module-info.java (ant has no module path), prunes the multi-release
META-INF/versions/ overlay (ant's flat javac would compile duplicate
classes), re-bundles META-INF/services & friends into the class tree,
synthesises META-INF/maven/<group>/<artifact>/pom.properties (DJL
reads it back at runtime), supports #:prune for optional integrations
and #:extra-resources for resources Maven generates but the sources
archive lacks (DJL's pytorch-engine.properties).
- New leaf packages Guix mainline does not have: commons-logging,
protobuf-java, jakarta-inject, jakarta-activation, stax-ex, jna,
asm-9, checker-qual, jsoup, jts-core, fastinfoset, bcprov/bcpkix
1.68 (PDFBox needs the 1.6x API while iText 7.1.5 needs 1.53).
- java-h2database: built from the git tag; H2's sources jar omits
org/h2/util/JSR310Utils.java (generated), which the tree carries
under h2/src/java8/src, so both source roots are compiled together.
Still installed as published jars (each for a concrete reason)
- kotlin-stdlib/-jdk7/-jdk8, kotlin-reflect, kotlin-compiler{,-embeddable},
kotlin-daemon-embeddable, kotlinx-coroutines-core{-jvm}: the sources
are Kotlin, so building them needs a Kotlin compiler that we would
have to bootstrap from these very jars.
- djl-pytorch-jni, gatk-bwamem-jni: the jars *are* the native payload.
- selenium-java: an aggregator pom; its sources jar is empty.
- tablesaw-core: needs fastutil, RoaringBitmap, univocity, icu4j,
classgraph, smile-core and jamm; not worth the tree (teal only writes
metric tables).
- postgresql (new, for jOOQ): waffle 1.9 needs the JAAS
java.security.acl API that JDK 17 removed, and scram 2.1 is not
published on Central.
- immutables-value: upstream ships a shade-plugin fat jar with
relocated guava (pre-existing decision, unchanged).
Also fixed while wiring this up
- hmftools-module launchers: absolute #!bash shebang, and the
patient-db jOOQ-codegen classpath now globs each dependency's
share/java instead of hard-coding jar names that change with the
library version.
- java-patient-db codegen passes the new java-jakarta-activation and
r2dbc-spi.
Verified
- All 77 java-libraries packages, all 39 hmftools modules, maven-amber
and maven-bam-tools build (guix build --keep-going: exit 0).
- test/test-vchord.sh: CPU leg reproduces breast 0.7854 / ovarian
0.8577 / pancreatic 0.8223 / prostate 0.8063 / other 0.8236 with
djl-api, pytorch-engine and every other dependency compiled from
source (the GPU leg still needs an sm_120-capable DJL runtime).
* hmf/packages/java-libraries.scm: maven-central-source-jar plus 56
rebuilt packages and the new leaf packages.
* hmf/packages/hmftools.scm: patient-db classpath globbing.
|
|
Upstream has published no amber-v4.4 tag (the newest release tag is
amber-v4.3), but the monorepo's version properties already say amber
4.4 / purple 4.5 / sage 5.1 / ..., so anchor %hmf-source to the master
commit those properties come from (6531166b66, 2026-10-14) instead of
the amber-v4.3 tag.
Versions now follow the poms: amber 4.4, purple 4.5, cobalt 3.1,
esvee 2.1, isofox 2.1, lilac 2.1, linx 2.4, orange 5.1,
orange-datamodel 5.1, panel-builder 1.2, redux 2.1, sage 5.1,
virus-interpreter 1.7.1, wisp 1.4, bam-tools 1.6.2, hmf-common 4.4
(and maven-bam-tools 1.6.1 -> 1.6.2 from its release jar). maven-amber
stays at 4.3: there is no amber_v4.4.jar release to fetch.
Four modules moved out of the monorepo since amber-v4.3:
* finding and finding-datamodel: dropped (upstream commit f292edd581,
"Findings: moved to separate repo").
* fastq-tools and health-checker: kept, but pinned to the amber-v4.3
snapshot through a new %hmf-source-4.3 origin. hmftools-module grew
a #:source keyword for this.
* taur (TAUR - FASTQ adjustment routines) is new; add java-taur.
ORANGE 5.1 now draws its report tables with boxable 1.8.2, which is
compiled against PDFBox 3.0.6 -- the 2.0.30 API qsee uses is not
compatible. Add java-boxable, java-pdfbox-3, java-pdfbox-io-3 and
java-fontbox-3, and give java-orange those instead of the 2.x jars.
Also fix the launcher main classes, which were wrong for a dozen
modules (cuppa pointed at a class that never existed; isofox, neo,
pave-reverse, gene-utils, paddle, sigs, sv-tools, compar, bam-tools,
teal and cider named classes that do not exist under those names).
Libraries with no entry point (orange-datamodel) now pass #f and get
no bin/ launcher.
All 39 packages build. Verified: every installed launcher resolves its
main class and reaches its own config parsing; `mvn -B install
-DskipTests && mvn -B -Dmaven.build.cache.enabled=false test` in
hmftools at 6531166b66 gives 3062 tests, 0 failures, 0 errors (36
modules); test/test-vchord.sh still reproduces the CPU prediction
(breast 0.7854, ovarian 0.8577, ...).
* hmf/packages/hmftools.scm: %hmf-source -> commit pin, %hmf-source-4.3,
version bumps, java-taur, drop finding/finding-datamodel, #:source
keyword, launcher fixes.
* hmf/packages/java-libraries.scm: java-boxable, java-pdfbox-3,
java-pdfbox-io-3, java-fontbox-3.
|
|
Two more classifier variants shipped by DJL at pytorch 2.2.2 -- the
CUDA 12.1 GPU runtimes:
- java-djl-pytorch-native-cu121-linux-x86_64 (~2.3 GiB)
- java-djl-pytorch-native-cu121-win-x86_64 (~2.3 GiB)
Each bundles a CUDA-enabled libtorch_cuda*.so / .dll plus the
matching cuBLAS / cuDNN / cuFFT runtime blobs. Users must still
have a compatible NVIDIA driver and CUDA userspace on their host
for DJL to schedule kernels, but the Java-side classpath is
complete.
The CUDA-CPU choice is intentionally left to the caller: v-chord
and v-cuppa continue to depend on java-djl-pytorch-native-cpu
(x86_64-linux); guix users with a suitable NVIDIA GPU add
java-djl-pytorch-native-cu121-linux-x86_64 to their profile so
DJL's native loader prefers the CUDA build.
* hmf/packages/java-libraries.scm
(java-djl-pytorch-native-cu121-linux-x86_64,
java-djl-pytorch-native-cu121-win-x86_64): New variables.
|
|
Round out the DJL PyTorch native runtime with the three remaining
classifier variants shipped upstream at v2.2.2:
- java-djl-pytorch-native-cpu-osx-x86_64 (x86_64-darwin, 122 MB)
- java-djl-pytorch-native-cpu-osx-aarch64 (aarch64-darwin, 36 MB)
- java-djl-pytorch-native-cpu-win-x86_64 (x86_64-w64-mingw32, 79 MB)
Their supported-systems values reference the conventional target
triplets even though Guix mainline does not currently target Darwin
or MinGW. A user on an x86_64-linux host can still 'guix build' any
of them (guix warns 'does not support x86_64-linux' but produces a
valid store item), because our trivial-build-system just copies the
architecture-neutral Maven jar bytes; the platform-specific
libtorch dylib / dll inside the jar simply will not be usable at
runtime on Linux. This makes the packages useful for downstream
distribution scripts and pre-empts eventual Guix ports.
* hmf/packages/java-libraries.scm
(java-djl-pytorch-native-cpu-osx-x86_64,
java-djl-pytorch-native-cpu-osx-aarch64,
java-djl-pytorch-native-cpu-win-x86_64): New variables.
|
|
DJL upstream does not ship a linux-aarch64 classifier for
pytorch-native-cpu at v2.2.2; the sibling
pytorch-native-cpu-precxx11 artifact (built against the pre-C++11
libstdc++ ABI) is provided for that platform instead. This is
safe for Java consumers because they cross the C JNI boundary
rather than libstdc++.
Refactor the (unrelated single-instance) x86_64 package definition
into a small %djl-pytorch-native helper procedure so both classifier
variants share a single code path. guix aarch64 users who want to
run java-v-chord or java-v-cuppa install this package alongside
them (v-chord's own extra-inputs still reference only the x86_64
variant, so the two hmftools modules remain buildable on both
architectures without cross-arch input entanglement).
* hmf/packages/java-libraries.scm (%djl-pytorch-native): New
procedure.
(java-djl-pytorch-native-cpu-precxx11-linux-aarch64): New variable.
(java-djl-pytorch-native-cpu): Rebuild from the helper.
|
|
linux-x86_64.
Package the three additional AWS DJL artifacts needed to actually
execute the PyTorch-backed classifiers, not just compile against
the DJL API:
- java-djl-pytorch-engine 0.28.0: DJL PyTorch engine glue (pure
Java, portable).
- java-djl-pytorch-jni 2.2.2-0.28.0: JNI bindings that call into
the native libtorch shared library (pure Java, portable).
- java-djl-pytorch-native-cpu 2.2.2: prebuilt libtorch.so,
libtorch_cpu.so and libc10.so bundled inside the classifier-
suffixed jar. Architecture-specific -- upstream ships a
separate jar per <os>-<arch> combo; we restrict this package to
supported-systems x86_64-linux, matching the WiGiTS pipeline's
deployment target.
Add all three to v-chord's and v-cuppa's extra-inputs. The
hmftools-module launcher then puts them on the runtime classpath,
DJL's native loader extracts and dlopens libtorch from the
share/java jar at first call, and 'v-chord' / 'v-cuppa' run
end-to-end -- verified: v-chord now reaches ConfigBuilder and
reports the four required flags (sample, purple_dir, model,
output_dir).
Users on non-x86_64-linux systems can still guix build the DJL API
layer and the pure-Java engine + jni jars; only
java-djl-pytorch-native-cpu is restricted.
* hmf/packages/java-libraries.scm (java-djl-pytorch-engine,
java-djl-pytorch-jni, java-djl-pytorch-native-cpu): New variables.
* hmf/packages/hmftools.scm (java-v-chord, java-v-cuppa)[extra-
inputs]: Add the DJL PyTorch runtime trio.
|
|
The last two hmftools modules. Both v-chord and v-cuppa are
PyTorch-backed classifiers, but their pom.xml scopes pytorch-engine,
pytorch-jni and pytorch-native-cpu as runtime -- only ai.djl:api is
required at compile time. Ship the AWS DJL 0.28 core API jar from
Maven Central and build both modules through the standard
hmftools-module helper.
The DJL PyTorch runtime jars and their native libtorch shared library
are architecture-specific and not packaged here; end users who want
to execute v-chord or v-cuppa (rather than merely compile against
their API) must install a compatible DJL PyTorch runtime out of
band.
With this the entire hmftools amber-v4.3 mono-repo -- all 39 modules
-- has a from-source Guix package.
* hmf/packages/java-libraries.scm (java-djl-api): New variable.
* hmf/packages/hmftools.scm (java-v-chord, java-v-cuppa): New
variables.
|
|
The RecordBuilder annotation processor is loaded by javac via
ServiceLoader, and its no-arg constructor transitively touches
com.palantir.javapoet.TypeName. Without the palantir/javapoet jar
on the classpath javac silently swallows the underlying
NoClassDefFoundError and reports 'Bad service configuration file ...
Unable to get public no-arg constructor', which is why our earlier
finding-datamodel attempt failed.
Ship javapoet 0.5.0 from Maven Central alongside the record-builder
jars and finding-datamodel + finding both build cleanly through the
same hmftools-module helper.
* hmf/packages/java-libraries.scm (java-javapoet): New variable.
* hmf/packages/hmftools.scm (java-finding-datamodel, java-finding):
New variables (formerly the TODO stub).
|
|
Finalise the from-source hmftools module set:
- Fetch Google Guice 7.0.0 from Maven Central to satisfy bam-tools'
runtime injection.
- java-bam-tools 1.6: the from-source counterpart of the earlier
maven-bam-tools fat-jar wrapper. Uses hmf-common-bwa +
gatk-bwamem-jni for the alt-contig remapper.
- java-health-checker 3.6: aggregate QC 'health' report for
pipeline runs; only needs the hmf-common baseline classpath.
* hmf/packages/java-libraries.scm (java-google-guice): New variable.
* hmf/packages/hmftools.scm (java-bam-tools, java-health-checker):
New variables.
|
|
java-hmf-id-generator.
Two more Maven Central pre-built jars needed by hmf-id-generator's
declared classpath (bcprov-jdk15on 1.53, selenium-java 3.14.0),
plus the two remaining patient-db dependents. gene-utils also uses
BWA-MEM (hmf-common-bwa) and requires r2dbc-spi on the compile
classpath because its EnsemblDAO's DSL.using(Connection, ...)
resolution walks jOOQ's reactive facade.
* hmf/packages/java-libraries.scm (java-bcprov-jdk15on,
java-selenium-java): New variables.
* hmf/packages/hmftools.scm (java-gene-utils,
java-hmf-id-generator): New variables.
|
|
Reproduce hmftools' patient-db build outside Maven by wiring the
jOOQ 3.15 code generator into a custom guix build phase:
- Fetch jooq-codegen, jooq-meta and jooq-meta-extensions from Maven
Central alongside the jOOQ runtime we already had.
- Ship the missing JVM 9+ JAXB runtime (jaxb-api, jaxb-runtime,
istack-commons-runtime, txw2) so GenerationTool can unmarshal
its config XML.
- Ship H2 1.4.200 (pinned; jOOQ 3.15's INFORMATION_SCHEMA queries
break under H2 2.x's precision checks) so DDLDatabase can
interpret patient-db's generate_database.sql.
- Ship mysql-connector-java 8.0.16, reactive-streams 1.0.3 and
r2dbc-spi 0.9 as runtime dependencies referenced from jOOQ /
DAO code.
java-patient-db then runs GenerationTool from a config XML we
write out at build time, dumps the generated Tables classes into
patient-db/src/main/java/com/hartwig/hmftools/patientdb/database/
hmfpatients, and lets ant compile the whole tree normally.
Use the new patient-db to package five previously-blocked
hmftools modules:
- paddle 1.1 (needs reactive-streams too)
- sigs 1.2.1
- sv-tools 1.0
- compar 1.6 (needs reactive-streams too)
- cuppa 2.5 already lived without patient-db but has jOOQ on the
declared classpath -- unchanged here
* hmf/packages/java-libraries.scm (java-jaxb-api, java-jaxb-runtime,
java-istack-commons-runtime, java-txw2, java-h2database,
java-jooq-meta, java-jooq-meta-extensions, java-jooq-codegen,
java-mysql-connector-java, java-reactive-streams, java-r2dbc-spi):
New variables.
* hmf/packages/hmftools.scm (java-patient-db, java-paddle,
java-sigs, java-sv-tools, java-compar): New variables.
|
|
Fetch the jOOQ 3.15.5 runtime jar from Maven Central and use it to
unblock java-cuppa (tissue-of-origin prediction). cuppa's pom
declares a jOOQ dependency but the source itself does not import
any org.jooq types -- the jar just has to be present on javac's
classpath for the module to compile.
* hmf/packages/java-libraries.scm (java-jooq): New variable.
* hmf/packages/hmftools.scm (java-cuppa): New variable.
|
|
Add the Kotlin 2.1 compile pipeline: kotlin-compiler (non-embeddable
Maven Central jar), trove4j, org.jetbrains:annotations 24.1, and the
existing kotlin-stdlib{,-jdk7,-jdk8} / kotlin-reflect / kotlinx-
coroutines-core-jvm libraries. Also add newer variants of two
libraries that hmftools' Kotlin modules require but Guix mainline
does not carry: commons-csv 1.9 (CSVFormat.Builder API) and
jcommander 1.81 (UnixStyleUsageFormatter).
Extend the hmftools-module helper with a #:kotlin? keyword and an
optional #:source-dir override:
- When kotlin? is set, a new 'compile-kotlin phase runs before ant's
default 'build to invoke K2JVMCompiler on every .kt file under
source-dir, producing build/classes. The kotlinc driver classpath
bundles kotlin-compiler, stdlib, reflect, coroutines, trove4j and
jetbrains-annotations; the compile classpath includes the shared
hmf-common baseline plus caller-supplied extras. extra-inputs are
prepended so newer library variants shadow the baseline.
- #:source-dir lets teal build straight out of teal/src/main/kotlin
instead of the default */src/main/java layout.
Use both to package the last two hmftools tool modules that only
depended on a Kotlin toolchain:
- cider 1.2: TCR/BCR V(D)J recombination sequence detection, 100%
Kotlin, needs BWA-MEM realignment (uses hmf-common-bwa).
- teal 1.4: telomere content and length estimation, 100% Kotlin,
uses tablesaw-core for metric tabulation.
Also add pdfbox/fontbox/iText scaffolding and the trove4j
prerequisite while we are here.
* hmf/packages/java-libraries.scm (java-kotlin-compiler, java-trove4j,
java-jetbrains-annotations, java-commons-csv-1.9, java-jcommander-1.81,
java-tablesaw-core): New variables.
* hmf/packages/hmftools.scm (hmftools-module): Add #:kotlin? and
#:source-dir keywords, prepend extra-inputs.
(java-cider, java-teal): New variables.
|
|
Ship iText 7.1.5 as three pre-built Maven Central jars (AGPL-3+):
kernel, layout and io. With PDFBox and the existing orange-datamodel
this is enough to build hmftools java-orange, the WGS/WTS clinical
PDF summary report + JSON summary generator.
* hmf/packages/java-libraries.scm (java-itext-io, java-itext-kernel,
java-itext-layout): New variables.
* hmf/packages/hmftools.scm (java-orange): New variable.
|
|
Ship Apache PDFBox 2.0.30 and its FontBox companion as pre-built
jars from Maven Central (both Apache-2.0), and use them to unlock
java-qsee -- the QC / per-sample metric reporter, which touches
only two PDFBox classes (MemoryUsageSetting and PDFMergerUtility).
* hmf/packages/java-libraries.scm (java-pdfbox, java-fontbox): New
variables.
* hmf/packages/hmftools.scm (java-qsee): New variable.
|
|
kotlin-stdlib{,-jdk7,-jdk8}, kotlinx-coroutines-core{,-jvm} and maven-central-jar helper.
Introduce a small maven-central-jar helper that packages any pre-
built Apache-2.0-ish artifact from Maven Central under share/java,
following the pattern already used for immutables-value etc. Then
add seven artifacts through the helper to unblock the remaining
hmftools modules:
- gatk-bwamem-jni 1.0.5: Broad Institute's JNI wrapper around
BWA-MEM, needed by hmf-common's bwa sub-tree, esvee, cider,
panel-builder, gene-utils.
- log4j-slf4j-impl 2.25.3: SLF4J-to-Log4j2 bridge referenced by
many modules' pom.xml.
- kotlin-stdlib 2.1.0 + jdk7/jdk8 marker artifacts and
kotlinx-coroutines-core{,-jvm} 1.10.0: Kotlin runtime consumed
by cider and teal.
* hmf/packages/java-libraries.scm (maven-central-jar): New
procedure.
(java-gatk-bwamem-jni, java-log4j-slf4j-impl, java-kotlin-stdlib,
java-kotlin-stdlib-jdk7, java-kotlin-stdlib-jdk8,
java-kotlinx-coroutines-core, java-kotlinx-coroutines-core-jvm): New
variables.
|
|
-record-builder-{core,processor}.
Four more compile-time libraries needed by finding-datamodel and its
downstream consumers. jspecify is built from source under openjdk17
(icedtea-8's javac lacks ElementType.MODULE); the record-builder
artifacts and jakarta.validation-api are installed from their pre-
built Maven Central jars.
A stubbed TODO note in hmftools.scm records why finding-datamodel is
not exposed yet: the pre-built RecordBuilder processor jar depends
on transitive libs that our classpath does not provide, and javac
rejects it with 'Unable to get public no-arg constructor'.
* hmf/packages/java-libraries.scm (java-jspecify,
java-jakarta-validation-api, java-record-builder-core,
java-record-builder-processor): New variables.
* hmf/packages/hmftools.scm: TODO comment explaining the
finding-datamodel gap.
|
|
orange-datamodel decorates its record types with @@Gson.TypeAdapters,
an annotation shipped by the sibling org.immutables:gson artifact
(distinct from our existing org.immutables:value package). Fetch the
Apache-2.0 pre-built jar from Maven Central following the same shade-
avoidance shortcut we use for java-immutables-value.
* hmf/packages/java-libraries.scm (java-immutables-gson): New
variable.
* hmf/packages/hmftools.scm (java-orange-datamodel): New variable.
|
|
Same class of failure as java-pcollections: src/main/java/module-
info.java is Java 9+ syntax and icedtea-8 (ant-build-system's default
javac) rejects it with 'class, interface, or enum expected'. jfreesvg
does not need to be consumed as a JPMS module by hmftools.
* hmf/packages/java-libraries.scm (java-jfreesvg)[source]<snippet>:
Delete src/main/java/module-info.java.
|
|
hmftools' hmf-common pins htsjdk 2.23.0; Guix mainline's
java-htsjdk-latest sits at 2.14.3 with an explicit note that any newer
release requires Gradle. Inherit java-htsjdk-latest and just bump
version and source: its phase set already discards the deprecation-
stub build.xml and removes the Scala test tree, leaving ant-build-
system to compile src/main/java with the same set of runtime inputs
(java-ngs, java-snappy-1, java-commons-compress,
java-commons-logging-minimal, java-commons-jexl-2, java-xz) that
worked for 2.14.3. htsjdk still targets Java 1.8 bytecode.
* hmf/packages/java-libraries.scm (java-htsjdk-2.23): New variable.
|
|
Package org.immutables:value 2.9.3 for use as a compile-time (Maven
'provided' scope) annotation processor by hmf-common. Upstream ships
the artifact as a shaded fat jar bundling value-annotations, value-
processor, generator and a relocated copy of Guava; reproducing that
shade recipe with ant would require rebuilding four sibling modules
plus a package-relocating jar rewrite pass. Fetch the Apache-2.0
pre-built jar from Maven Central and install it verbatim under
share/java, mirroring the shortcut we already use for the hmftools
release jars.
* hmf/packages/java-libraries.scm (java-immutables-value): New
variable.
|
|
Package the com.intellij:annotations 12.0 artifact as a compile-time
dependency of hmf-common. Sourced from Maven Central's -sources.jar
because the equivalent JetBrains/intellij-community 12.0 monorepo is
prohibitively large to check out for a handful of annotation classes.
The unpack phase unzips the sources jar into src/ before ant-build-
system compiles it. Runtime code is not affected: hmf-common only
uses @@Nullable / @@NotNull for static analysis.
* hmf/packages/java-libraries.scm (java-intellij-annotations): New
variable.
|
|
Package jfree/jfreesvg 5.0.5 for use as a compile-time dependency of
hmf-common (used to render analytical plots as SVG in the ORANGE PDF
report). Compile src/main/java with ant-build-system; skip the JUnit 5
test suite.
* hmf/packages/java-libraries.scm (java-jfreesvg): New variable.
|
|
Package tipsy/j2html 1.6.0 for use as a compile-time dependency of
hmf-common. Upstream is a Maven project; we compile just the
library/src/main/java tree with ant-build-system. Tests are skipped;
they require a Junit + hamcrest + commons-lang3 3.0 harness whose
older commons-lang3 conflicts with Guix mainline's 3.20.0.
* hmf/packages/java-libraries.scm (java-j2html): New variable.
|
|
Package hrldcpr/pcollections 4.0.2 for use as a compile-time dependency
of hmf-common. Upstream builds with Gradle; we reuse the plain
src/main/java tree with ant-build-system after dropping the JPMS
module descriptor (ant's javac invocation does not handle module-info).
Tests are JUnit 5 and are skipped; Guix currently ships JUnit 4.
* hmf/packages/java-libraries.scm: New file.
(java-pcollections): New variable.
|