editmetabolitesmrbin: A function for editing metabolite identities.

View source: R/mrbin.R

editmetabolitesmrbinR Documentation

A function for editing metabolite identities.

Description

This function edits the metabolite list within an mrbin object and returns it

Usage

editmetabolitesmrbin(mrbinObject, borders, metabolitenames, add = TRUE)

Arguments

mrbinObject

An mrbin object

borders

A matrix of signal borders. 1D: two columns: left, right 2D: four columns: left, right, top, bottom

metabolitenames

A character vector of metabolite identities

add

Should the new metabolite list be added to an existing list, or replace the current list?

Value

An (invisible) mrbin object

Examples

 mrbinObject<-mrbin(silent=TRUE,
                   parameters=list(verbose=TRUE,dimension="1D",PQNScaling="No",
                   binwidth1D=0.04,signal_to_noise1D=1,PCA="No",binRegion=c(9.5,0.5,10,156),
                   saveFiles="No",referenceScaling="No",noiseRemoval="No",
                   fixNegatives="No",logTrafo="No",noiseThreshold=.05,tryParallel=TRUE,
                   NMRfolders=c(system.file("extdata/2/10/pdata/10",package="mrbin"),
                              system.file("extdata/3/10/pdata/10",package="mrbin"))
                   ))
 mrbinObject<-editmetabolitesmrbin(mrbinObject,borders=matrix(c(
     1.346,1.324,
     3.052,3.043,
     4.066,4.059
   ),ncol=2,byrow=TRUE),metabolitenames=c(
   "Lactate",
   "Creatinine",
   "Creatinine"
   ))
mrbinObject$parameters$metaboliteIdentities

mrbin documentation built on June 22, 2024, 9:39 a.m.