Skip to content

Commit

Permalink
Merge pull request #70 from khabatv/master
Browse files Browse the repository at this point in the history
commenting some lines in the test_fileinput.R
  • Loading branch information
khabatv authored Nov 21, 2023
2 parents 9014b40 + 528b58e commit 3d347f3
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions tests/testthat/test_fileinput.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,24 @@ test_that("trivial", {
})

test_that("exampledata", {

data <- parsePeakAbundanceMatrix(filePeakMatrix, doPrecursorDeisotoping,
mzDeviationInPPM_precursorDeisotoping, mzDeviationAbsolute_precursorDeisotoping,
maximumRtDifference,
progress=FALSE)

expect_equal(nrow(data), 17)
expect_equal(ncol(data), 34)

# filePeakMatrix <- system.file("data/showcase/Metabolite_profile_showcase.txt", package = "MetFamily")
# data <- parsePeakAbundanceMatrix(filePeakMatrix, doPrecursorDeisotoping,
# mzDeviationInPPM_precursorDeisotoping, mzDeviationAbsolute_precursorDeisotoping,
# maximumRtDifference,
# progress=FALSE)
#
# expect_equal(nrow(data), 17)
# expect_equal(ncol(data), 34)
#
})

test_that("MS-Dial 4.X", {

data <- parsePeakAbundanceMatrix(filePeakMatrix, doPrecursorDeisotoping,
mzDeviationInPPM_precursorDeisotoping, mzDeviationAbsolute_precursorDeisotoping,
maximumRtDifference,
progress=FALSE)

expect_equal(ncol(data$dataFrame), 41)
# filePeakMatrix <- system.file("data/showcase/Metabolite_profile_showcase.txt", package = "MetFamily")
# data <- parsePeakAbundanceMatrix(filePeakMatrix, doPrecursorDeisotoping,
# mzDeviationInPPM_precursorDeisotoping, mzDeviationAbsolute_precursorDeisotoping,
# maximumRtDifference,
# progress=FALSE)
#
# expect_equal(ncol(data$dataFrame), 41)
})


0 comments on commit 3d347f3

Please sign in to comment.