Description Usage Arguments Value Examples
View source: R/epiGPlotFunctions.R
Cleans up the parsed csv/rda file data from obtained dataset, and returns a layout that can be used for plotting
1 2 3 4 5 6 | layoutEpigeneticEV(
dataFrame,
normalized = FALSE,
sample.class = c(),
class.colour = c()
)
|
dataFrame |
The n x 4 data frame loaded from csv/rda using the functions above |
normalized |
Whether or not to perform normalization on expression values |
sample.class |
Chooses and subset a specific sample class from the data frame and use it for layout |
class.colour |
User can specify a list/vector custom colour palette of length equals to number of given sample classes |
Returns a layout containing 4 columns of: expression value, quantile over all genes, colour, sample class with their row names assigned as their sample genes
1 2 3 4 5 6 7 8 9 | ## Not run:
rawData <- EpiGPlot::loadEpigeneticData("data/NO66_HUMAN.rda")
gLayout <- EpiGPlot::layoutEpigeneticEV(rawData,
sample.class=c("cell_line", "tissue"),
class.colour=c("red", "blue"))
nrow(gLayout) # 390
unique(gLayout$Colour) # "red", "blue"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.