Learn R Programming

viper (version 1.6.0)

msviperAnnot: msVIPER annotation change

Description

This function changes the annotation of genes in msviper objects

Usage

msviperAnnot(mobj, annot, complete = TRUE)

Arguments

mobj
msviper object generated by msviper function
annot
Vector os character strings containing the gene names and gene identifiers as vector names attribute
complete
Logical, whether the signature and target names should be also transformed

Value

msviper object with updated annotations

See Also

msviper

Examples

Run this code
data(bcellViper, package="bcellViper")
sig <- rowTtest(dset, "description", "CB", "N")$statistic
mra <- msviper(sig, regulon)
tmp <- unique(c(names(mra$regulon), rownames(mra$signature)))
annot <- 1:length(tmp)
names(annot) <- tmp
plot(mra, cex=.7)
mra <- msviperAnnot(mra, annot)
plot(mra, cex=.7)

Run the code above in your browser using DataLab