GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tags · phenological/nmr-parser

Tags

0.3.9

Toggle 0.3.9's commit message
release 0.3.9

One change, and it reaches data that was never produced rather than data
that was produced wrongly.

plasma_quant_report_ver_1_0.xml was missing from the quant priority list.
dir() found it, the priority loop matched nothing, and the sample was
dropped from res$quant without a word, so an expno holding only that report
returned no small molecule data at all.

It is not a rare shape. Counted over the archive:

  plasma_quant_report_ver_1_0.xml   20276 files   not in the list
  urine_quant_report_e.xml          19697        yes
  plasma_quant_report.xml           11309        yes

so it was the most common quant report there is, and the only one of the
ten that was unreachable.

It sits below the plain report rather than above it, where the urine
ordering would put it, so no expno that already returns data changes. Only
expnos that today return nothing are affected, and they gain their quant
data.

Anything parsed before this that covered plasma samples is worth checking
for expnos with no quant row: those are the ones that will now have one.

refs #2

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
  • Aug 20, 2026
  • 4516ca9
  • zip
  • tar.gz
  • Notes

0.3.8

Toggle 0.3.8's commit message
add a README, refresh the generated docs, extend the copyright year

The README covers what the package reads and the three ways in:
readExperiment() over one expno or thousands, scanFolder() to find them,
and the individual readers when only one report is wanted. Every example
was run against a clean install and the output shown is the output
produced, including the row names readLipo() carries over from the Bruker
comment field.

The man pages and NAMESPACE are regenerated. getQcTable() and
getSmTable() gained match.arg() in 0.3.7 and their Rd files still carried
the old signature, which R CMD check reports as a codoc mismatch:

  Code: function(matrixType = c("SER", "URI"), withValue = FALSE)
  Docs: function(matrixType = "SER", withValue = FALSE)

That was mine and is now fixed. R CMD check goes from 1 WARNING and 2
NOTEs to 1 NOTE, the remaining one being data.table's `.` idiom, which
R's code analysis always reports.

The licence is unchanged in substance and was already correct: MIT + file
LICENSE with the two line stub R expects, and the full text in
LICENSE.md. Only the year is extended to 2023-2026, the span of the
commits. Putting the full text in LICENSE instead makes GitHub display
the licence, but R CMD check then reports "License stub is invalid DCF",
so the stub stays; dplyr and usethis show as "Other" on GitHub for the
same reason.

refs #2

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
  • Aug 7, 2026
  • 85fdf44
  • zip
  • tar.gz
  • Notes

0.3.7

Toggle 0.3.7's commit message
release 0.3.7

One change reaches stored data and needs a recompute:

  - readQuant() reports creatinine's reference range in the extended
    report shape, the *_ver_*.xml files, where it was special cased to
    NA although the REFERENCE node is present and identical to the one
    the other shape reads. All four report pairs now agree: plasma
    0.14/0.06, urine B and E 19/1, urine NE 12/0, all mmol/L. Anything
    derived from an extended report carries NA where the range belongs.

The three XML readers no longer line their columns up by position.
readLipo, readPacs and readQuant swept the whole document once per
attribute and assumed the k-th VALUE and REFERENCE belonged to the k-th
PARAMETER; each now reads them from inside the parameter, so a missing
node gives NA in that row rather than shifting every later row onto its
neighbour's numbers. readQuant's hard coded c(NA, ...) pad for creatinine
having no VALUERELATIVE goes with it. Output is unchanged on all 18
fixtures.

readQuant also picks its branch from the document rather than the file
name. Bruker gives both shapes the same version attribute, so a report
copied out of pdata/1 under a different name was read by the wrong
parser, which returned every compound with a NA concentration.

Fixes to loud failures that were silent, or silent failures that were
loud in the wrong place:

  - readSpectrum() names the missing procs parameter and returns NULL
    instead of failing later with "argument is of length zero", which
    aborted a whole readExperiment run over one truncated file.
  - readParam() matches the parameter declaration rather than the name
    anywhere in the line. It was reading LOCSW for SW, DATE for TE and
    CPDPRG for RG. 70 of 4648 lookups over the acqus and procs under
    inst/ change, all of them from wrong to right. No call the package
    makes itself was affected.
  - empty input no longer crashes: 1:length(x) is c(1, 0), so twelve
    loops ran twice over nothing. scanFolder returns an empty table that
    readExperiment accepts.

Test suite goes from 308 to 364.

refs #2

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
  • Aug 7, 2026
  • fc00324
  • zip
  • tar.gz

0.3.6

Toggle 0.3.6's commit message
release 0.3.6

Two changes reach stored data and need a recompute of anything derived
from them:

  - extend_lipo_value() now scales before rounding. 38 of the 316 values
    in the extended table move in their last bits, at most 7.1e-15
    absolute, so no value changes at the two decimals it reports.
  - cleanNames() applies the replicate deduplication it always claimed
    to: duplicated names now come back suffixed #1, #2 instead of
    duplicated.

Two fixes change what gets read, in favour of reading more:

  - readParams() reads the last line of a file that does not end on
    ##END=, which was losing one parameter per such file.
  - readExperiment() builds the eretic expno path from the expno rather
    than the whole path, so an expno given with a trailing slash no
    longer misses QuantFactorSample.xml and return spectra scaled by 1.

getQcTable() and getPacsTable() worked only from a source checkout and
now work from an installed package, extend_lipo() returns numeric rather
than list reference bounds, and readParam() resolves each name of a multi
name call on its own. Fifteen further fixes and cleanups, one per commit,
and the test suite goes from 253 to 308.

refs #2

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
  • Aug 6, 2026
  • 9376e23
  • zip
  • tar.gz

0.3.5

Toggle 0.3.5's commit message
fix wrong denominator in lipoprotein subfraction fractions

The innermost prefix loop in extend_lipo_value() rebuilt col2 but not
col, so frac[[col]] was overwritten on every pass and only the last
prefix (LD) survived. Every subfraction was therefore divided by the
LDL parent instead of its own class: H1..H4 should divide by HD*, and
V1..V5 by VL*. 36 of the 60 _frac columns were wrong. L1..L6 happened
to be correct because LD was last.

Map the subfraction letter to its parent class explicitly and drop the
loop. The CE loop above now uses the same map rather than its own
ternary spelling of it.

Verified on tests/testthat/lipo_results.xml: exactly those 36 values
change, the id vector is unchanged, and no NA/NaN/Inf is introduced.
Subfraction sums move from 332% (V*TG) and 127% (H*PL) to 99% and 103%.

Downstream data produced since 83a39d5 (2024-08-15) needs recomputing
for the H* and V* _frac variables, hence the version bump.

Also fix six expect() calls in test-readExperiment.R that passed a
number where testthat wants a logical, so they errored rather than
tested, and add closure tests for pct and for the frac columns whose
denominator is a calculated total.

refs #2

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
  • Aug 6, 2026
  • 85a8c03
  • zip
  • tar.gz

0.3.4

Toggle 0.3.4's commit message
release 0.3.4

  • Jun 23, 2025
  • d3e1610
  • zip
  • tar.gz
  • Notes

0.3.3

  • May 20, 2025
  • 2c3a1c5
  • zip
  • tar.gz

0.3.2

Toggle 0.3.2's commit message
update

  • May 20, 2025
  • fa5ea8e
  • zip
  • tar.gz
  • Notes

0.3.1

Toggle 0.3.1's commit message
make release 0.3.1

  • May 19, 2025
  • 742ba0f
  • zip
  • tar.gz
  • Notes

0.3.0

Toggle 0.3.0's commit message
release 0.3.0

  • Feb 21, 2025
  • dfa1173
  • zip
  • tar.gz
  • Notes
PreviousNext
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.