-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleScript.R
More file actions
33 lines (28 loc) · 1.36 KB
/
SampleScript.R
File metadata and controls
33 lines (28 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
source("SCOPE_Functions.R")
library(doParallel)
doParallel::registerDoParallel(cores = 4)
expr.data <- fread("SampleData/SampleExpressionData.csv")
phen <- fread("SampleData/SamplePhenotypes.csv")[[1]]
set.seed(1234)
scopeOutputs <- scope(exprData = expr.data,
phenotype = phen,
removeZeroVar = TRUE,
removeLowVar = TRUE,
lowVarPercentile = 0.25,
formula = NULL,
seed = 2222,
iterations = 10, splitRatio = 0.7,
cvFolds = 10, parallel = TRUE, family = "binomial",
propCutoff = 0.8,
corrIterations = 100, corrProbesPerIter = 1000,
corrQuantileCutoff = 0.975,
diffCorrIterations = 100, diffCorrProbesPerIter = 1000,
diffCorrQuantileCutoff = 0.975,
corrGenesCGN = TRUE,
diffCorrGenesCGN = TRUE,
enrichmentOrganism = "hsapiens",
enrichmentEnrichDatabase="pathway_KEGG",
enrichmentInterestGeneType="ensembl_gene_id",
enrichmentReferenceGeneType = "ensembl_gene_id",
enrichmentReferenceSet = "genome",
enrichmentIsOutput = FALSE)