diff options
| author | Alexander_Kabui <alexanderkabui@proton.me> | 2026-10-14 22:01:57 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabui@proton.me> | 2026-10-14 22:01:57 +0300 |
| commit | 15c735742f35e4688b6448d3c7e6922c78ec0746 (patch) | |
| tree | 7b9b04e49be9cfbc6c949a94b5b211d8fba6dda4 /scripts | |
| parent | 2604f063f9c3210599cbd55c77e7ee39e712504b (diff) | |
| download | genenetwork4-15c735742f35e4688b6448d3c7e6922c78ec0746.tar.gz | |
gemma/rqtl: three fixes from the endpoint review
- rqtl: per-call unique output filename. The content hash alone was deterministic across processes, so two concurrent identical requests shared one output file; R truncates on open, so one request could read the other's half-written results with no error. The per-call unique (pid + nanos, already computed for the pheno file) now names the output file too. - streaming/gemma/rqtl: append a failure marker to the run log on every error path, mirroring the completion marker. A status poller can now tell a failed run from a still-running one. - rqtl: --scale is now honored. The wrapper selects the geno file's cM/Mb map column from it, and the route rejects values other than mb/cm with 422 instead of silently ignoring them. Both new behaviors are unit-tested; the live Rscript tests pass.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rqtl_wrapper.R | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/rqtl_wrapper.R b/scripts/rqtl_wrapper.R index 0b39a6a..a2b4403 100644 --- a/scripts/rqtl_wrapper.R +++ b/scripts/rqtl_wrapper.R @@ -176,7 +176,8 @@ header = readLines(geno_file, 40) type <- get_geno_code(header, 'type') verbose_print('Generating cross object\n') -cross_object = geno_to_csvr(geno_file, trait_names, trait_vals, cross_file, type) +scale_col <- if (toupper(opt$scale) == "CM") "cM" else "Mb" +cross_object = geno_to_csvr(geno_file, trait_names, trait_vals, cross_file, type, mapping_scale = scale_col) # Calculate genotype probabilities if (!is.null(opt$pairscan)) { |
