reportCSV | R Documentation |
Functionality to report data produced by most workflow steps such as features, feature groups, calculated chemical formulae and tentatively identified compounds. This is the legacy interface, for the updated interface see reporting.
reportCSV(
fGroups,
path = "report",
reportFeatures = FALSE,
formulas = NULL,
formulasNormalizeScores = "max",
formulasExclNormScores = NULL,
compounds = NULL,
compoundsNormalizeScores = "max",
compoundsExclNormScores = c("score", "individualMoNAScore", "annoTypeCount",
"annotHitCount", "libMatch"),
compsCluster = NULL,
components = NULL,
retMin = TRUE,
clearPath = FALSE
)
reportPDF(
fGroups,
path = "report",
reportFGroups = TRUE,
formulas = NULL,
formulasTopMost = 5,
formulasNormalizeScores = "max",
formulasExclNormScores = NULL,
reportFormulaSpectra = TRUE,
compounds = NULL,
compoundsNormalizeScores = "max",
compoundsExclNormScores = c("score", "individualMoNAScore", "annoTypeCount",
"annotHitCount", "libMatch"),
compoundsOnlyUsedScorings = TRUE,
compoundsTopMost = 5,
compsCluster = NULL,
components = NULL,
MSPeakLists = NULL,
retMin = TRUE,
EICGrid = c(2, 1),
EICParams = getDefEICParams(rRtWindow = 20, topMost = 1, topMostByRGroup = TRUE),
clearPath = FALSE
)
reportHTML(
fGroups,
path = "report",
reportPlots = c("chord", "venn", "upset", "eics", "formulas"),
formulas = NULL,
formulasTopMost = 5,
formulasNormalizeScores = "max",
formulasExclNormScores = NULL,
compounds = NULL,
compoundsNormalizeScores = "max",
compoundsExclNormScores = c("score", "individualMoNAScore", "annoTypeCount",
"annotHitCount", "libMatch"),
compoundsOnlyUsedScorings = TRUE,
compoundsTopMost = 5,
compsCluster = NULL,
includeMFWebLinks = "compounds",
components = NULL,
interactiveHeat = FALSE,
MSPeakLists = NULL,
specSimParams = getDefSpecSimParams(),
TPs = NULL,
retMin = TRUE,
EICParams = getDefEICParams(rtWindow = 20, topMost = 1, topMostByRGroup = TRUE),
TPGraphStructuresMax = 25,
selfContained = TRUE,
optimizePng = FALSE,
clearPath = FALSE,
openReport = TRUE,
noDate = FALSE
)
## S4 method for signature 'featureGroups'
reportCSV(
fGroups,
path = "report",
reportFeatures = FALSE,
formulas = NULL,
formulasNormalizeScores = "max",
formulasExclNormScores = NULL,
compounds = NULL,
compoundsNormalizeScores = "max",
compoundsExclNormScores = c("score", "individualMoNAScore", "annoTypeCount",
"annotHitCount", "libMatch"),
compsCluster = NULL,
components = NULL,
retMin = TRUE,
clearPath = FALSE
)
## S4 method for signature 'featureGroups'
reportPDF(
fGroups,
path = "report",
reportFGroups = TRUE,
formulas = NULL,
formulasTopMost = 5,
formulasNormalizeScores = "max",
formulasExclNormScores = NULL,
reportFormulaSpectra = TRUE,
compounds = NULL,
compoundsNormalizeScores = "max",
compoundsExclNormScores = c("score", "individualMoNAScore", "annoTypeCount",
"annotHitCount", "libMatch"),
compoundsOnlyUsedScorings = TRUE,
compoundsTopMost = 5,
compsCluster = NULL,
components = NULL,
MSPeakLists = NULL,
retMin = TRUE,
EICGrid = c(2, 1),
EICParams = getDefEICParams(),
clearPath = FALSE
)
## S4 method for signature 'featureGroups'
reportHTML(
fGroups,
path = "report",
reportPlots = c("chord", "venn", "upset", "eics", "formulas"),
formulas = NULL,
formulasTopMost = 5,
formulasNormalizeScores = "max",
formulasExclNormScores = NULL,
compounds = NULL,
compoundsNormalizeScores = "max",
compoundsExclNormScores = c("score", "individualMoNAScore", "annoTypeCount",
"annotHitCount", "libMatch"),
compoundsOnlyUsedScorings = TRUE,
compoundsTopMost = 5,
compsCluster = NULL,
includeMFWebLinks = "compounds",
components = NULL,
interactiveHeat = FALSE,
MSPeakLists = NULL,
specSimParams = getDefSpecSimParams(),
TPs = NULL,
retMin = TRUE,
EICParams = getDefEICParams(rtWindow = 20, topMost = 1, topMostByRGroup = TRUE),
TPGraphStructuresMax = 25,
selfContained = TRUE,
optimizePng = FALSE,
clearPath = FALSE,
openReport = TRUE,
noDate = FALSE
)
fGroups |
The |
path |
The destination file path for files generated during reporting. Will be generated if needed. |
reportFeatures |
If set to |
formulas , compounds , compsCluster , components |
Further objects ( |
compoundsNormalizeScores , formulasNormalizeScores |
A |
compoundsExclNormScores , formulasExclNormScores |
A
For |
retMin |
If |
clearPath |
If |
reportFGroups |
If |
formulasTopMost , compoundsTopMost |
Only this amount of top ranked candidate formulae/compounds are reported.
Lower values may significantly speed up reporting. Set to |
reportFormulaSpectra |
If |
compoundsOnlyUsedScorings |
If |
MSPeakLists |
A |
EICGrid |
An integer vector in the form |
EICParams |
A named |
reportPlots |
A character vector specifying what should be plotted. Valid options are: |
includeMFWebLinks |
A |
interactiveHeat |
If |
specSimParams |
A named |
TPs |
A |
TPGraphStructuresMax |
Maximum number of TP structures to plot in TP hierarchies, see the |
selfContained |
If |
optimizePng |
If |
openReport |
If set to |
noDate |
If |
These functions are usually called at the very end of the workflow. It is used to report various data on features and
feature groups. In addition, these functions may be used for reporting formulae and/or compounds that were generated
for the specified feature groups. Data can be reported in tabular form (i.e. ‘.csv’ files) by
reportCSV
or graphically by reportPDF
and reportHTML
. The latter functions will plot for
instance chromatograms and annotated mass spectra, which are useful to get a graphical overview of results.
All functions have a wide variety of arguments that influence the reporting process. Nevertheless, most parameters are optional and only required to be given for fine tuning. In addition, only those objects (e.g. formulae, compounds, clustering) that are desired to be reported need to be specified.
reportCSV
generates tabular data (i.e. ‘.csv’
files) for given data to be reported. This may also be useful to allow
import by other tools for post processing.
reportPDF
will report graphical data (e.g. chromatograms and mass spectra) within PDF files.
Compared to reportHTML
this function may be faster and yield smaller report files, however, its
functionality is a bit more basic and generated data is more 'scattered' around.
reportHTML
will report graphical data (e.g. chromatograms and mass spectra) and summary
information in an easy browsable HTML
file using rmarkdown, flexdashboard and knitr.
reportHTML
uses multiprocessing to parallelize
computations. Please see the parallelization section in the handbook for
more details and patRoon options for configuration
options.
Currently, reportHTML
only uses "classic"
multiprocessing, regardless of the
patRoon.MP.method option.
Any formulae and compounds for feature groups which are not present within fGroups
(i.e. because
it has been subset afterwards) will not be reported.
The topMost
, topMostByRGroup
and onlyPresent
EIC parameters may be ignored,
e.g., when generating overview plots.
Creating MetFrag landing page URLs based on code from
MetFamily R package.
\addCitationsknitr2
\addCitationsknitr3
reporting
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.