-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add extracMsData and plotMsData functions #312
Conversation
- Add extractMsData and plotMsData function to extract MS data as a data.frame and visualize the data. - Fix removePeaks,Spectrum after recent changes in IRanges (introduced in Bioconductor 3.7).
R/AllGenerics.R
Outdated
@@ -147,3 +147,6 @@ setGeneric("splitByFile", function(object, f, ...) standardGeneric("splitByFile" | |||
setGeneric("productMz", function(object, ...) standardGeneric("productMz")) | |||
## setGeneric("aggregationFun", function(object, ...) | |||
## standardGeneric("aggregationFun")) | |||
|
|||
setGeneric("extractMsData", function(object, ...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using here a method instead of a function, because in xcms
I have a extractMsData,XCMSnExp
method that has some additional functionality (ensures that adjusted retention times are used if present).
Codecov Report
@@ Coverage Diff @@
## master #312 +/- ##
=========================================
Coverage ? 75.97%
=========================================
Files ? 78
Lines ? 8350
Branches ? 0
=========================================
Hits ? 6344
Misses ? 2006
Partials ? 0
Continue to review full report at Codecov.
|
I haven't looked into it in details nor run the code, but my first question is, why Also, re using |
I haven't looked at the output of |
Re using I do however like the idea of a |
Re |
Thinking it over I think I'll reduce the pull request to a single |
A |
and visualize the data.
Bioconductor 3.7).
The
extractMsData
andplotMsData
are two functions I had defined inxcms
but they might be better placed inMSnbase
because they provide some more low level functionality. I will need these then later in the examples and vignette related to the centroiding that I am currently developing in thecentroiding
branch.