rename_dupnewID: rename_dupnewID

View source: R/network.R

rename_dupnewIDR 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)


DDPNA documentation built on May 17, 2022, 5:05 p.m.