rename_dupnewID {DDPNA}R Documentation

rename_dupnewID

Description

rename the duplicated newID in moduleinf and renew the ID in DEPstat

Usage

rename_dupnewID(DEPstat, moduleinf, DEPfromMod = FALSE)

Arguments

DEPstat

a dataframe contains columns:"new.ID" and "ori.ID". it can get from dataStatInf.

moduleinf

a dataframe contains columns:"new.ID" and "ori.ID". it can get from Module_inf.

DEPfromMod

a logical value indicated that whether DEPstat and moduleinf is getted from the same datasets. The default value is FALSE.

Value

a data.frame contains DEPstat information and renewed the new.ID column.

Author(s)

Kefu Liu

Examples

data(net)
data(imputedData)
Module <- Module_inf(net, imputedData$inf)
group <- gsub("[0-9]+","", colnames(imputedData$intensity))
data <- imputedData
data$inf <- data$inf[1:100,]
data$intensity <- data$intensity[1:100,]
stat <- dataStatInf(data, group, meanmethod = "median",
                    T.test = "pairwise", Aadj = "fdr",
                    Tadj = "fdr", cutoff = FALSE)
stat <- rename_dupnewID(stat, Module, DEPfromMod = TRUE)


[Package DDPNA version 0.3.1 Index]