pathwayRF(pathwayRF) | R Documentation |
Pathway analysis using Random Forests classification and regression.
PathwayRF <- function(clsfile, gmtfile, gctfile, numoftree, range, categorical) PathwayRFimp <- function(clsfile, gmtfile, gctfile, numoftree, pathwaynum, categorical)
clsfile |
a phenotype data file. |
gmtfile |
a pathway/geneset file. |
gctfile |
a gene expression data file. |
numoftree |
number of trees used for each iteration of Random Forests run. |
range |
enter the rows from your gmt file to perform RF pathway analysis. |
categorical |
specify whether your input cls file is categorical phenotype or not. |
pathwaynum |
the line number of the pathway in gmt |
Herbert Pang <pathwayRF@gmail.com> and Hongyu Zhao <hongyu.zhao@yale.edu>
## load example data cls_location <- url("http://people.duke.edu/~hp44/data/breast.cls") gmt_location <- url("http://people.duke.edu/~hp44/data/breast.gmt") gct_location <- url("http://people.duke.edu/~hp44/data/breast.gct") ## run Random Forests pathway analysis with 5000 trees ## using the canine data ## looking at pathway 1 to 10 PathwayRF(cls_location, gmt_location, gct_location, 5000, 1:10, TRUE) ## save your output in an object called myresults myresults <- PathwayRF(cls_location, gmt_location, gct_location, 5000, 1:10, TRUE) ## calling myresults myresults