Skip to content

Commit

Permalink
Merge pull request #21 from rformassspectrometry/jomain
Browse files Browse the repository at this point in the history
fix: import of Alabaster MsBackendMetaboLights
  • Loading branch information
jorainer authored Oct 30, 2024
2 parents 98e282c + bafd047 commit aa0527e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: MsIO
Title: Serializing and restoring/importing mass spectrometry data objects
Version: 0.0.7
Version: 0.0.8
Authors@R:
c(person(given = "Johannes", family = "Rainer",
email = "[email protected]",
Expand Down Expand Up @@ -70,4 +70,4 @@ Collate:
'mzTabParam.R'
'XcmsExperiment.R'
'utils.R'
'zzz.R'
'zzz.R'
7 changes: 6 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Version 0.0

## Changes in 0.0.8

- Fix bug in `readObject()` for `MsBackendMetaboLights` that would not
update/fix the local path to the cached data files.

## Changes in 0.0.7

- Add `saveObject()` for `MsBackendMetaboLights`.
Expand All @@ -25,4 +30,4 @@

## Changes in 0.0.2

- Refactor code for text-based import and export of MS data objects.
- Refactor code for text-based import and export of MS data objects.
4 changes: 2 additions & 2 deletions R/MsBackendMetaboLights.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ readAlabasterMsBackendMetaboLights <- function(path = character(),
be <- MsBackendMetaboLights::MsBackendMetaboLights()
slot(be, "spectraData", check = FALSE) <- sdata
slot(be, "peaksVariables", check = FALSE) <- pvars
MsBackendMetaboLights::mtbls_sync(be, offline = offline)
be <- MsBackendMetaboLights::mtbls_sync(be, offline = offline)
validObject(be)
be
}
Expand All @@ -69,4 +69,4 @@ setMethod("readMsObject", signature(object = "MsBackendMetaboLights",
function(object, param, offline = FALSE) {
readAlabasterMsBackendMetaboLights(path = param@path,
offline = offline)
})
})

0 comments on commit aa0527e

Please sign in to comment.