Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RMassBank_by_MaliRemorker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Environmental Cheminformatics
RMassBank_by_MaliRemorker
Commits
9282c690
Commit
9282c690
authored
11 years ago
by
michele
Browse files
Options
Downloads
Patches
Plain Diff
(fixed missing edits from last commit)
parent
e386af4c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NAMESPACE
+2
-0
2 additions, 0 deletions
NAMESPACE
R/leMsMs.r
+21
-1
21 additions, 1 deletion
R/leMsMs.r
man/recalibrate.Rd
+11
-0
11 additions, 0 deletions
man/recalibrate.Rd
with
34 additions
and
1 deletion
NAMESPACE
+
2
−
0
View file @
9282c690
...
...
@@ -77,7 +77,9 @@ export(reanalyzeFailpeaks)
export(recalibrate)
export(recalibrate.addMS1data)
export(recalibrate.identity)
export(recalibrate.linear)
export(recalibrate.loess)
export(recalibrate.mean)
export(recalibrateSingleSpec)
export(recalibrateSpectra)
export(resetInfolists)
...
...
This diff is collapsed.
Click to expand it.
R/leMsMs.r
+
21
−
1
View file @
9282c690
...
...
@@ -2063,6 +2063,10 @@ recalibrate.addMS1data <- function(spec,mode="pH", recalibrateMS1Window =
#' which predicts 0 for all input values. This can be used if the user wants to
#' skip recalibration in the RMassBank workflow.
#'
#' #' \code{recalibrate.mean()} and \code{recalibrate.linear()} are simple recalibrations
#' which return a constant shift or a linear recalibration. They will be only useful
#' in particular cases.
#'
#' \code{recalibrate()} itself is only a dummy function and does not do anything.
#'
#' Alternatively other functions can be defined. Which functions are used for recalibration
...
...
@@ -2070,11 +2074,15 @@ recalibrate.addMS1data <- function(spec,mode="pH", recalibrateMS1Window =
#' \code{recalibrator: MS1} value is irrelevant, since for a common curve generated with
#' the function specified in \code{recalibrator: MS2} will be used.)
#'
#' @aliases recalibrate.loess recalibrate recalibrate.identity
#' @aliases recalibrate.loess recalibrate recalibrate.identity
recalibrate.mean recalibrate.linear
#' @usage recalibrate.loess(rcdata)
#'
#' recalibrate.identity(rcdata)
#'
#' recalibrate.mean(rcdata)
#'
#' recalibrate.linear(rcdata)
#'
#' @param rcdata A data frame with at least the columns \code{recalfield} and
#' \code{mzFound}. \code{recalfield} will usually contain delta(ppm) or
#' delta(mz) values and is the target parameter for the recalibration.
...
...
@@ -2134,6 +2142,18 @@ recalibrate.identity <- function(rcdata)
return
(
lm
(
recalfield
~
0
,
data
=
rcdata
))
}
#' @export
recalibrate.mean
<-
function
(
rcdata
)
{
return
(
lm
(
recalfield
~
1
,
data
=
rcdata
))
}
#' @export
recalibrate.linear
<-
function
(
rcdata
)
{
return
(
lm
(
recalfield
~
mzFound
,
data
=
rcdata
))
}
#' Standard progress bar hook.
#'
#' This function provides a standard implementation for the progress bar in RMassBank.
...
...
This diff is collapsed.
Click to expand it.
man/recalibrate.Rd
+
11
−
0
View file @
9282c690
\name{recalibrate}
\alias{recalibrate}
\alias{recalibrate.identity}
\alias{recalibrate.linear}
\alias{recalibrate.loess}
\alias{recalibrate.mean}
\title{Predefined recalibration functions.}
\usage{
recalibrate.loess(rcdata)
recalibrate.identity(rcdata)
recalibrate.mean(rcdata)
recalibrate.linear(rcdata)
}
\arguments{
\item{rcdata}{A data frame with at least the columns
...
...
@@ -34,6 +40,11 @@
all input values. This can be used if the user wants to
skip recalibration in the RMassBank workflow.
#' \code{recalibrate.mean()} and
\code{recalibrate.linear()} are simple recalibrations
which return a constant shift or a linear recalibration.
They will be only useful in particular cases.
\code{recalibrate()} itself is only a dummy function and
does not do anything.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment