Description Usage Arguments Details Value Note See Also Examples
View source: R/make.decision.tree.R
A decision tree in Pigengene-package uses module eigengenes to
build a classifier that distinguishes the different classes.
Briefly, each eigengene is a weighted average of the expression of
all genes in the module, where the weight of each gene corresponds
to its membership in the module.
| 1 2 3 4 5 6 7 | make.decision.tree(pigengene, Data, 
  Labels = structure(pigengene$annotation[rownames(pigengene$eigengenes),
          1], names = rownames(pigengene$eigengenes)),
  testD = NULL, testL = NULL, selectedFeatures = NULL,
  saveDir = "C5Trees", minPerLeaf = NULL, useMod0 = FALSE, 
  costRatio = 1, toCompact = NULL, noise = 0, noiseRepNum = 10, doHeat=TRUE,
  verbose = 0, naTolerance=0.05)
 | 
| pigengene | The pigengene object that is used to build the decision tree. 
See  | 
| Data | The training expression data | 
| Labels | Labels (condition types) for the (training) expression data. It is a
named vector of characters.  | 
| testD | The test expression data, for example, from an independent dataset. Optional. | 
| testL | Labels (condition types) for the (test) expression data. Optional. | 
| selectedFeatures | A numeric vector determining the subset of eigengenes
that should be used as potential predictors. By default
("All"), eigengenes for all modules are considered.  
See also  | 
| saveDir | Where to save the plots of the tree(s). | 
| minPerLeaf | Vector of integers. For each value, a tree will be
built requiring at least that many nodes on each leaf. By
default ( | 
| useMod0 | Boolean. Wether to allow the tree(s) to use the eigengene of module 0, which corresponds to the set of outlier, as a proper predictor. | 
| costRatio | A numeric value effective only for 2 groups classification. The default value (1) considers the misclassification of both conditions as equally disadvatageous. Change this value to a larger or smaller value if you are more interested in the specificity of predictions for condition 1 or condition 2, respectively. | 
| toCompact | An integer. The tree with this  | 
| noise, noiseRepNum | For development purposes only. These parameters allow investigating the effect of gaussian noise in the expression data on the accurracy of the tree for test data. | 
| doHeat | Boolean. Set to  | 
| verbose | The integer level of verbosity. 0 means silent and higher values produce more details of computation. | 
| naTolerance | Upper threshold on the fraction of entries per gene that
can be missing. Genes with a larger fraction of missing
entries are ignored. For genes with smaller fraction of NA
entries, the missing values are imputed from their average
expression in the other samples.  
See  | 
This function passes the inut eigengenes and appropriate arguments
C5.0 function from C50 package.
A list with following elements:
| call | The call that created the results | 
| c5Trees | A list, with one element of class  | 
| minPerLeaf | A numeric vector enumerating all of the attempted minPerLeaf values. | 
| compacted | The full output of  | 
| heat | The output of   | 
| heatCompact | The output of   | 
| noisy | The full output of   | 
| leafLocs | A matrix reporting the leaf for each sample on 1 row.  The columns are named
according to the correspoding  | 
| toCompact | Echos the  | 
| costs | The cost matrix | 
| saveDir | The directory where plots are saved in | 
For faster computation in an initial, explanatory run, turn off
compacting, which can take a few minutes, with toCompact=FALSE.
Pigengene-package, compute.pigengene,
compact.tree, C5.0,
Pigengene-package
| 1 2 3 4 5 6 7 8 9 10 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.