Description Usage Arguments Details Value Author(s) See Also Examples
This function returns several plots describing the results obtained by cohesiveness.
1 2 | plotCohesiveness(mx, cl, id, coh,
category = NA, color = "darkred")
|
mx |
a numeric matrix containing the omic dataset, where rows are features and columns are samples. |
cl |
a character vector describing which samples are belonging to each category. |
id |
a character indicating the ID of the feature to represent. |
coh |
results provided by |
category |
a character naming which category of samples must be highlighted. |
color |
color of highlighted category of samples. |
R function to perform a cohesiveness analysis.
This function returns several plots describing the results.
FJ Campos-Laborie (fjcamlab@gmail.com)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Example of omic dataset based on normal distribution data
mx <- t(sapply(seq_len(1000), function(x) rnorm(n = 200, mean = 5, sd = 1)))
## Formatting the example matrix
rownames(mx) <- paste("g", seq_len(1000), sep = "")
colnames(mx) <- paste("s", seq_len(200), sep = "")
## Naming a vector of sample categories
classes <- rep(LETTERS[1:8], c(20, 40, 15, 40, 65, 5, 5, 10))
names(classes) <- colnames(mx)
## Running cohesiveness
resultsCohesiveness <- cohesiveness(mx, classes)
## Example of plot of cohesiveness for 'g1'
plotCohesiveness(mx, cl = classes,
coh = resultsCohesiveness, id = "g1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.