doClusterAnalysis: doClusterAnalysis

Description Usage Arguments Examples

View source: R/doClusterAnalysis.R

Description

Function to perform cluster analysis

Usage

1

Arguments

clustPar

List object that contains the parameters needed to carry out the analysis.

Examples

 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
34
35
36
37
38
39
40
41
42
43
44
45
## Not run: 
clustParsList <- list()
for(i in 1:length(compName))
{
  pvalType <- ifelse(adjMethod[i] == "none", "pvalues", "adj-pvalues")
  clustPar <- list(expres = NULL,
                   expresFileName = "exprs.filtered.Rda",
                   geneListFName = paste("geneList",  compName[i],
                                         pvalType, "LT", pValCutOff[i], "Rda", sep = "."),
                   genes2cluster = NULL,
                   samples2cluster = s2clust,
                   sampleNames = as.character(targets$ShortName)[s2clust],
                   comparisonName = compName[i],
                   anotPackage = "org.Hs.eg",
                   my.symbols = symbolsTable,
                   outputDir = outputDir,
                   fileOfLinks = linksFile,
                   numClusters = 2,
                   rowDistance = NULL,
                   colDistance = NULL,
                   RowVals = TRUE,
                   ColVals = FALSE,
                   escala = "row",
                   colorsSet = pal,
                   densityInfo = "density",
                   colsForGroups = c(rep("pink", 5), rep("blue", 5)),
                   cexForColumns = 0.8,
                   cexForRows = 0.8,
                   Title = paste(compName[i],
                                 "with", pvalType,
                                 "<", pValCutOff[i],
                                 ifelse(minLogFoldChange[i]==0, "",
                                        paste0("\n and |logFC|>=", minLogFoldChange[i]))),
                   paste("Comparison:", compName[i]),
                   csvType = csvType)

  clustParsList <- add2parsList(clustParsList, clustPar)
}

for(ix in 1:length(clustParsList))
{
 hm.Estudi <- BasicP::doClusterAnalysis(clustParsList[ix])
}

## End(Not run)

uebvhir/BasicP4microArrays documentation built on Nov. 5, 2019, 11:03 a.m.