Learn R Programming

LipidomicsR (version 0.3.6)

replicate.delete: Delete repeated channel data generated by LC-MS

Description

replicate.delete select one of the channel with largest mean value out of multiple replicated LC-MS cahnnels, and it returns an edited data frame with no repeated channel and simplified row name.

Usage

replicate.delete(data, delete.pattern = c("_\\d", "(\\+)AcO"))

Value

Edited data with no repeat channels and simplified row name.

Arguments

data

Primary lipidomic data in .csv format.

delete.pattern

Pattern of characters that needs to be removed.

Examples

Run this code
x1 <- c(1,1,1,1)
x2 <- c(1.1,1.2,1.3,1.4)
x3 <- c(1,1,1,1)
x4 <- c(2,2,2,2)
rowNames <- c('PC(14:0/14:1)+AcO_1','PC(14:0/14:1)+AcO_2','PC(16:0/16:1)_1','PC(16:0/16:1)_2')
ExampleData <- data.frame(x1,x2,x3,x4, row.names =rowNames)
replicate.delete(ExampleData,delete.pattern= c('_\\d','(\\+)AcO'))

Run the code above in your browser using DataLab