Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assessPuritySingle for MSMS from QTOF #103

Open
Marievlm opened this issue Dec 15, 2023 · 0 comments
Open

assessPuritySingle for MSMS from QTOF #103

Marievlm opened this issue Dec 15, 2023 · 0 comments

Comments

@Marievlm
Copy link

Hi !

Thank you very much for your package. It is very useful to analyze MSMS spectra.

I would like to assess the purity of my MSMS data acquired on a QTOF and an Orbitrap for comparison. However, for QTOF data, I can't apply the function assessPuritySingle on an mzML file.

The error is the following :
Erreur dans if (scanids$pre == scn1) { : l'argument est de longueur nulle De plus : Message d'avis : Dans for (i in seq_len(n)) { : fermeture de la connexion inutilisée 11 (Data_001.mzML) (sorry it is in french).

I go to the traceback and here are presented the steps :
`8: linearPurity(rowi, scan_peaks, minoff, maxoff, ppm, scanids,
nearest, mostIntense, iwNorm, iwNormFun, ilim, plotP, plotdir,
isotopes, im)

7: .fun(piece, ...)

6: (function (i)
{
piece <- pieces[[i]]
if (.inform) {
res <- try(.fun(piece, ...))
if (inherits(res, "try-error")) {
piece <- paste(utils::capture.output(print(piece)),
collapse = "\n")
stop("with piece ", i, ": \n", piece, call. = FALSE)
}
}
else {
res <- .fun(piece, ...)
}
progress$step()
res
})(1L)
5: loop_apply(n, do.ply)
4: llply(.data = .data, .fun = .fun, ..., .progress = .progress,
.inform = .inform, .parallel = .parallel, .paropts = .paropts)
3: ldply(.data = pieces, .fun = .fun, ..., .progress = .progress,
.inform = .inform, .parallel = .parallel, .paropts = .paropts)
2: plyr::ddply(mrdfshrt, ~seqNum, .parallel = pBool, get_interp_purity,
scan_peaks = scans, ppm = ppmInterp, ms2 = mrdf[mrdf$msLevel ==
2, ]$seqNum, prec_scans = prec_scans, minoff = minoff,
maxoff = maxoff, mostIntense = mostIntense, plotP = plotP,
plotdir = plotdir, interpol = interpol, nearest = nearest,
iwNorm = iwNorm, iwNormFun = iwNormFun, ilim = ilim, isotopes = isotopes,
im = im)
1: assessPuritySingle(filepth = "Data_001.mzML")`

In advance, thank you for your reply,
Sincerely,

Marie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant