contributions

open-source contributions to scientific software projects

Dec 2026
merged
ValidationTests

ClawBio's rules say never to publish a benchmark figure without its date and scope, and its model-evaluation plan will publish tables of model runs. Built the results layer for that: a summary format for one run (date, commit, task-set hash, scope, model, settings, tokens, cost, hardware) with a validator that names every problem, and a table renderer that refuses to print any run whose summary is incomplete, so a figure can't appear without its date and scope. The validator also refuses hardware fields that look like file paths, network shares or user@host, rejects NaN and infinity, and sorts rows so the table doesn't depend on input order. Ships no results and adds no dependency. Merged by Manuel Corpas. 8d3ffd1

Nov 2026
merged
Bug fixCompatibility

Follow-up to the review of my cache fix (#802). The skill still wrote its report, metadata and reproducibility files in the locale encoding, so on Windows a character outside cp1252 in the input or output path crashed the run after the analysis had finished, leaving an empty file and no reproducibility bundle. Those writes and the cache's checksum sidecar now go through the repository's UTF-8, LF-only writer. That also makes the Windows checksums.sha256 verify with sha256sum -c, which failed on every line before. Predictions, tables and figures are unchanged. Merged by Manuel Corpas. 07b7d0a

Nov 2026
merged
TestsCompatibility

43 reads in the repository's tests decoded UTF-8 files such as skills/catalog.json and the README with the locale encoding. On Windows, 11 tests failed with a UnicodeDecodeError before checking anything, and others silently read garbled text; CI runs only on Linux with a UTF-8 locale, so it never saw this. Each read now names UTF-8, with no assertion changes, and the PR maps the remaining locale-dependent reads and two failures in skill code for follow-ups. Merged by Manuel Corpas. 2604940

Nov 2026
merged
Docs

The /analyse command told the agent to ask for a data file, while the repository's agent instructions say to run the demo instead when the user has none, so an agent loading both got two rules that disagreed. The command now uses the user's file if there is one and otherwise runs the skill's demo with --output, so a report is actually written. The PR also lists three catalog demo commands that don't run, for follow-ups. Merged by Manuel Corpas. 2d303d8

Nov 2026
merged
Bug fixCompatibilityTests

The shared demo runner read the skill catalog in the locale encoding, but the catalog is UTF-8 and holds non-ASCII text, including Chinese trigger keywords. On Windows every demo was reported as failed before it started, and all 22 demo snapshot tests raised errors; CI on Linux never saw it. The read now names UTF-8, with a test that runs the demo runner under an ASCII locale and fails on main on both Linux and Windows. Merged by Manuel Corpas. 7bf2b91

Nov 2026
merged
Tests

Follow-up to the review of my UTF-8 fix (#803). Its test turned a missing file encoding into an error only for the skill's own script, so an unencoded write in the shared clawbio reproducibility writers the demo also calls would have passed. The test now starts the CLI through a short runner whose warning filter is a regular expression covering the script and every clawbio module, which -W on the command line cannot express. The widened test passes on main, confirming those writers were already safe, and the PR maps 27 other locale-dependent text reads and writes in clawbio/ for separate fixes, one of which fails on Windows today. Merged by Manuel Corpas. 88bc485

Nov 2026
merged
Tests

Follow-up to the review of my cache fix (#802), which noted that removing its blank-line filter left all 17 existing tests passing. Added a Hypothesis property that inserts blank lines after the header, between fold rows or at the end, with LF or CRLF endings, and checks that each fold still returns its own coefficients and that a fold past the last raises the fold-count error. Also let the file's property tests run on their own: run alone, they paid for importing pandas and matplotlib on their first example and missed Hypothesis's 200 ms deadline. Merged by Manuel Corpas. b638c0f

Nov 2026
merged
Bug fixCompatibilityTests

Found that proteomics-clock cached its organ-aging coefficient files in text mode. 42 of the 46 files use CRLF line endings, which Windows wrote back as CR CR LF, and the checksum was computed after that write, so the damaged cache passed its own check. Every cached run then saw a blank row after each fold: --fold 1 silently left the organ with no coefficients and --fold 2 silently used fold 1's, so only the first run was right, for 21 of 23 organs. The cache now stores and hashes the exact bytes served, blank lines are no longer counted as folds, and an empty fold raises an error naming the file instead of predicting NaN. Caches damaged by earlier runs parse correctly without being cleared. Merged by Manuel Corpas. 049d61d

Nov 2026
merged
Bug fixCompatibility

organ-aging-studio wrote report.md in the locale encoding, and the report's formula contains Σ, which neither Windows' cp1252 nor the ASCII C locale can encode. Every run on those locales crashed with a UnicodeEncodeError, left an empty report and wrote no reproducibility bundle. The report and result.json are now written as UTF-8, and the CLI escapes symbols such as ✓ and → that a redirected console can't show instead of crashing on its last line. Predicted ages are unchanged. Verified on Windows and on Linux with a forced non-UTF-8 locale. Merged by Manuel Corpas. c181ba9

Oct 2026
merged
Bug fix

Found that --jax_backend=cpu crashed on Linux machines where JAX can see an NVIDIA GPU of compute capability 8.0 or newer. tokamax picks kernels at trace time from JAX's default device rather than the jit target, so the Triton GLU kernel was traced into a computation lowered for CPU and Pallas raised a ValueError. Traced the cause through tokamax and proposed a three-line fix that makes the selected device JAX's default, a no-op for the default GPU run. Verified on an RTX 5080 and a Ryzen 9 7900X that a patched CPU run on a GPU machine matches a run with no GPU visible across all eight output files. Merged by Augustin Zidek. efc4124

Oct 2026
merged
Tests

Follow-up to my earlier Gompertz fix in proteomics-clock: the existing test still checked the old README formula that fix replaced, so it was failing on main. Rewrote it to check that the cohort-average hazard maps to the UK Biobank training cohort's mean age of 57.29 years, and added a property-based test that every age from 0 to 120 converts to a Gompertz hazard and back to the same age. The old formula fails that test at every age because of its +6.13-year offset. Also documented in the docstring why the formula deliberately differs from the README, so it isn't reverted. Merged by Manuel Corpas. 78c3443

Oct 2026
merged
Error handling

Ran AlphaFold 3 on an AMD Instinct MI300X and found that run_alphafold.py assumed every GPU reports a numeric compute capability. AMD reports 'gfx942', so startup crashed with an unexplained ValueError. Proposed an actionable error that names the device and points to --jax_backend=cpu, with no change on NVIDIA. Verified the CPU backend on the MI300X matched an RTX 5080 CUDA reference (pTM 0.83, mean pLDDT 90.20), and mapped the remaining blockers for ROCm support in tokamax and the ROCm JAX plugin. Fixed in run_alphafold.py by Augustin Zidek. cfbfddd

Sep 2026
merged
Validation

Found that template queryIndices outside the sequence were never validated. An index past the end crashed later in featurisation with a bare numpy error, and a negative index was accepted silently: the chain folded against an alignment the user never specified, and the run looked normal. Proposed rejecting out-of-range indices at parse time alongside the existing PTM bounds check, verified end to end on the real pipeline. The fix was implemented differently by Augustin Zidek, with validation and tests added to folding_input.py, citing the PR as its basis. c6ea94f

Sep 2026
merged
DocsPerformance

The performance docs said the JAX persistent compilation cache avoids recompilation between runs, but gave no measured effect. Benchmarked it on an RTX 5080: subsequent runs drop from ~143-148 s to ~32 s with the cache enabled, and cached runs are bit-identical (0.000000 Å difference) where uncached runs vary by ~0.131 Å RMSD. Wording kept deliberately non-specific since measurements came from a single machine. Adapted into docs/performance.md by Augustin Zidek. a66cc52

Aug 2026
merged
Bug fixCompatibility

Restored backwards compatibility for input JSON written by AlphaFold 3 versions 3.0.0 through 3.0.3, which serialized empty template maps as "templateIndices": null and caused a TypeError when loaded in 3.0.4. Null values are now read as empty maps rather than passed directly to zip(). Also added strict=True to the zip call so mismatched queryIndices and templateIndices lengths raise instead of silently truncating. Merged with a refactor by Augustin Zidek. 2546145

Aug 2026
merged
PerformanceCleanup

Removed two unused tensors (disto_target and token_to_rep_atom) inherited from a training featurizer but never read by the inference forward pass, along with the _compute_disto_target helper (~40 lines). Added a regression test asserting the exact set of expected featurizer output keys. On an RTX 5080: GPU memory reduced from 155.1 to 16.8 MiB (~9x smaller), host-to-device copy time from ~9.8 to ~1.3 ms per batch (~7x faster). Merged by Nikhil Shenoy.

Jul 2026
merged
Performance

Replaced two sequential einsum operations in OuterProductMean with a single fused three-way einsum, reducing peak intermediate tensor memory from ~256 MB to ~72 MB (3.56x reduction) with no throughput regression. Outputs verified numerically identical on an RTX 5080. Merged by Augustin Zidek; included in v3.0.4 release notes. 7b4c2a5

Jul 2026
merged
Bug fix

Fixed a crash in folding_input.py where serializing a ProteinChain with an empty query_to_template_map caused a TypeError on deserialization. The list(values) or None pattern was converting empty lists to null, which then broke zip(queryIndices, None). Removed the or None clause so empty template maps serialize as [], consistent with how queryIndices is already handled. Merged by Augustin Zidek. 62136ec

Jun 2026
merged
CorrectnessTests

Corrected four critical errors across bioinformatic analysis skills: replaced incorrect normal-distribution p-values in rnaseq-de with a proper Welch t-test (prior method had a 90.6% false discovery rate at n=3); fixed a flipped sign in the Gompertz age formula in proteomics-clock that caused a consistent +6.13-year bias; extended ORF detection in analyze-fasta from 3 forward frames to all 6 (enabling reverse-complement gene discovery); and added EM admixture convergence checking to genome-compare to prevent silent failures. Added unit tests and scipy dependency declaration.

Jun 2026
merged
Correctness

Corrected the GF-matrix vibrational analysis implementation to use mass-weighted Cartesian coordinates. The prior code used unweighted coordinates, causing heavy atoms (Br, I, S) to artificially dominate eigenvalue calculations and misidentify soft conformational modes. Fix substantially reranks low-frequency modes in heavy-atom systems, e.g. 2-iodothiophene shifted from 3 to 5 correctly identified soft modes, with iodine displacement dropping from 59% to ~3%.

May 2026
merged
Bug fixCompatibility

Ported the RDKit 2026.03 BFGS gradient-convergence denominator fix into nvMolKit's CUDA minimizer kernels, gated behind a version check to preserve compatibility with older RDKit builds. Applied to both the batched and per-molecule BFGS paths (bfgs_minimize.cu, bfgs_minimize_permol_kernels.cu).

May 2026
merged
Bug fixTests

Fixed a decade-old bug in the BFGS optimizer where negative energy values (common in MMFF94/UFF force fields) caused the convergence denominator to clamp to 1.0, artificially tightening gradient tolerance and triggering spurious "too many iterations" errors. Replaced funcVal with fabs(funcVal) in BFGSOpt.h and added a regression test covering always-negative energy trajectories.

May 2026
merged
PerformanceCorrectness

Six targeted GPU performance and correctness improvements across independent subsystems: replaced sequential block reductions with warp-shuffle patterns in conformer RMSD (17→3 sync calls); switched TFD kernels to double-precision sqrt with division-by-zero guards; moved eigensolver buffer allocation to a persistent class member; introduced per-device similarity caching; preserved signed-energy reference behavior in BFGS; and fused Butina clustering GPU→CPU sync points from ~6 to 2 per iteration.

May 2026
merged
Bug fixCleanup

Fixed six distinct bugs across the RoseTTAFold-All-Atom codebase: initialized L_s/offset before use in multi-chain PDB parsing; removed a line in protein.py overwriting insertion counts with residue indices; corrected an undefined variable in Track_module.py's symmetry fitting; added a guard for empty-tensor torch.cat() in the refinement block; fixed a tensor shape mismatch from (L,1) to (1,L,1); and removed unreachable dead code in parsers.py.