msviperAnnot: msVIPER annotation change

Description Usage Arguments Value See Also Examples

View source: R/general.r

Description

This function changes the annotation of genes in msviper objects

Usage

1
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

1
2
3
4
5
6
7
8
9
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)

viper documentation built on Nov. 8, 2020, 7:37 p.m.