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
7f80a2d6
Commit
7f80a2d6
authored
10 years ago
by
Michele Stravs
Browse files
Options
Downloads
Patches
Plain Diff
headerCache fix 3 and "partially matched" fix
parent
2128ad84
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/leMsMs.r
+4
-4
4 additions, 4 deletions
R/leMsMs.r
R/leMsmsRaw.R
+5
-5
5 additions, 5 deletions
R/leMsmsRaw.R
with
9 additions
and
9 deletions
R/leMsMs.r
+
4
−
4
View file @
7f80a2d6
...
...
@@ -1375,9 +1375,9 @@ recalibrateSpectra <- function(mode, rawspec = NULL, rc = NULL, rc.ms1=NULL, w =
colnames
(
p
)
<-
c
(
"mzFound"
,
"int"
)
drecal
<-
predict
(
rc.ms1
,
newdata
=
p
)
if
(
recalibrateBy
==
"dppm"
)
p
$
mzRecal
<-
p
$
mz
/
(
1
+
drecal
/
1e6
)
p
$
mzRecal
<-
p
$
mz
Found
/
(
1
+
drecal
/
1e6
)
else
p
$
mzRecal
<-
p
$
mz
-
drecal
p
$
mzRecal
<-
p
$
mz
Found
-
drecal
colnames
(
p
)
<-
c
(
"mz"
,
"int"
,
"mzRecal"
)
}
p
<-
as.matrix
(
p
)
...
...
@@ -1404,9 +1404,9 @@ recalibrateSingleSpec <- function(spectrum, rc,
colnames
(
p
)
<-
c
(
"mzFound"
,
"int"
)
drecal
<-
predict
(
rc
,
newdata
=
p
)
if
(
recalibrateBy
==
"dppm"
)
p
$
mzRecal
<-
p
$
mz
/
(
1
+
drecal
/
1e6
)
p
$
mzRecal
<-
p
$
mz
Found
/
(
1
+
drecal
/
1e6
)
else
p
$
mzRecal
<-
p
$
mz
-
drecal
p
$
mzRecal
<-
p
$
mz
Found
-
drecal
# And rename them back so our "mz" column is
# called "mz" again
colnames
(
p
)
<-
c
(
"mz"
,
"int"
,
"mzRecal"
)
...
...
This diff is collapsed.
Click to expand it.
R/leMsmsRaw.R
+
5
−
5
View file @
7f80a2d6
...
...
@@ -249,17 +249,17 @@ findMsMsHR.direct <- function(msRaw, cpdID, mode = "pH", confirmMode = 0, useRtL
,
fillPrecursorScan
,
deprofile
)
# check whether a) spectrum was found and b) enough spectra were found
if
(
length
(
spectra
)
<
(
confirmMode
+
1
))
sp
<-
new
(
"RmbSpectraSet"
,
found
=
FALSE
)
sp
<-
list
(
foundOK
=
FALSE
)
else
sp
<-
spectra
[[
confirmMode
+
1
]]
#sp@mz <- mzLimits
sp
@
id
<-
as.integer
(
cpdID
)
sp
@
name
<-
findName
(
cpdID
)
sp
@
formula
<-
findFormula
(
cpdID
)
sp
$
mz
<-
mzLimits
sp
$
id
<-
cpdID
sp
$
formula
<-
findFormula
(
cpdID
)
return
(
sp
)
}
#' Read in mz-files using XCMS
#'
#' Picks peaks from mz-files and returns the pseudospectra that CAMERA creates with the help of XCMS
...
...
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