Learn R Programming

DDPNA (version 0.4.1)

moduleID: extract intersection ID between dataset and module

Description

extract intersection ID between dataset and one of module

Usage

moduleID(inf, module, num, coln = "new.ID")

Arguments

inf

dataset protein ID information. a vector of protein IDs.

module

module information which is getted in Module_inf function.

num

module number which will extract to compared with dataset ID information.

coln

column names of module protein IDs.

Author

Kefu Liu

Details

column coln information in module when module number is num intersect with inf.

Examples

Run this code
data(net)
data(imputedData)
data <- imputedData
logD <- data$log2_value
rownames(logD) <- data$inf$ori.ID
group <- gsub("[0-9]+","", colnames(logD))
Module <- Module_inf(net, data$inf)
up <- changedID(logD, group, vs.set2 = "ad",vs.set1 = "ctl",
              rank = "foldchange",anova = FALSE, Padj = "none",cutoff = 1,
              datatype = "log2",fctype = "up")
intersection <- moduleID(up, Module, 5, coln = "ori.ID")

Run the code above in your browser using DataLab