Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: msPurity
Type: Package
Title: Automated Evaluation of Precursor Ion Purity for Mass Spectrometry Based
Fragmentation in Metabolomics
Version: 1.37.2
Date: 2025-02-19
Version: 1.37.3
Date: 2025-03-10
Authors@R: c(
person(given = "Thomas N.", family = "Lawson",
email = "thomas.nigel.lawson@gmail.com", role = c("aut", "cre"),
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
CHANGES IN VERSION 1.37.3
+ Update within the tests only (not within the R code base): library database path for lvl spectral matching testing (required after removal of the local SQLite database from msPurityData).

CHANGES IN VERSION 1.37.2
+ Bug fix for subsetting the grouped data frame in the `average_xcms_grouped_msms_indiv` function

Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test.5_sm.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ test_that("checking spectral matching functions (spectralMatching) library vs li
rid <- paste0(paste0(sample(LETTERS, 5, TRUE), collapse=""), paste0(sample(9999, 1, TRUE), collapse=""), ".sqlite")
sm_out_pth <- file.path(td, rid)

l_dbPth <- file.path(td, "library_spectra.db")
download.file("https://zenodo.org/records/18700802/files/library_spectra.db?download=1",
l_dbPth, mode = "wb", quiet = TRUE)

q_dbPth <- system.file("extdata", "library_spectra", "library_spectra.db", package="msPurityData")
l_dbPth <- system.file("extdata", "library_spectra", "library_spectra.db", package="msPurityData")

result <- spectralMatching(q_dbPth=q_dbPth,
result <- spectralMatching(q_dbPth=l_dbPth,
l_dbPth=l_dbPth,
q_pids = c(1,2,3),
q_spectraTypes = NA,
Expand Down