tni2tna.preprocess {RTN}R Documentation

A preprocessing function for objects of class TNI.

Description

This is a generic function.

Usage

tni2tna.preprocess(object, phenotype=NULL, hits=NULL, phenoIDs=NULL, 
duplicateRemoverMethod="max", verbose=TRUE)

Arguments

object

a processed object of class 'TNI' TNI-class evaluated by the methods tni.permutation, tni.bootstrap and tni.dpi.filter.

phenotype

a numeric vector of phenotypes named by gene identifiers (usually log2 differential expression values). Required for gsea, synergy and shadow methods (see tna.gsea1).

hits

a character vector of gene identifiers for those considered as hits. Required for tna.mra and tna.overlap methods.

phenoIDs

an optional 2cols-matrix used to aggregate genes in the 'phenotype' (e.g. probe-to-gene ids; in this case, col 1 should correspond to probe ids).

duplicateRemoverMethod

a single character value specifying the method to remove the duplicates. The current version provides "min" (minimum), "max" (maximum), "average". Further details in 'duplicateRemover' function at the HTSanalyzeR package.

verbose

a single logical value specifying to display detailed messages (when verbose=TRUE) or not (when verbose=FALSE).

Author(s)

Mauro Castro

See Also

TNI-class TNA-class

Examples


data(dt4rtn)

# select 5 regulatoryElements for a quick demonstration!
tfs4test <- dt4rtn$tfs[c("PTTG1","E2F2","FOXM1","E2F3","RUNX2")]

## Not run: 

rtni <- tni.constructor(expData=dt4rtn$gexp, regulatoryElements=tfs4test, rowAnnotation=dt4rtn$gexpIDs)
rtni<-tni.permutation(rtni)
rtni<-tni.bootstrap(rtni)
rtni<-tni.dpi.filter(rtni)
rtna<-tni2tna.preprocess(rtni, phenotype=dt4rtn$pheno, hits=dt4rtn$hits, phenoIDs=dt4rtn$phenoIDs)

## End(Not run)

[Package RTN version 2.4.6 Index]