View source: R/qualityControl.R
qualityControl | R Documentation |
Function that provide some helpful plots about the data to
ensure that the experimental plan passed to diffExpressedVariants
is correct and to control the quality of the data.
This function should be run before launching
diffExpressedVariants
, to validate the data.
qualityControl(countsData, conditions, storeFigs = FALSE, returnPCAdata = FALSE)
countsData |
the output of the |
conditions |
a character vector that gives the conditions' order. It has as many elements as there are samples in total. |
storeFigs |
a logical or a string indicating if the plots should be
stored and in which directory. If the |
returnPCAdata |
a logical indicating if the data frame used in the PCA
analysis should be returned. By default ( |
countsData
input must be formatted as follows: in its first column the
names of the events, in its second column the lengths of the events, and in
the following columns, the counts corresponding to each replicate of each
experimental condition of one variant. Each row corresponds to one variant.
The figures are saved or displayed in the R session.
diffExpressedVariants
fpath <- system.file("extdata", "output_kissplice_SNV.fa", package="kissDE")
mySNVcounts <- kissplice2counts(fpath, counts = 0, pairedEnd=TRUE)
mySNVconditions <- c("EUR", "EUR", "TSC", "TSC")
qualityControl(mySNVcounts, mySNVconditions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.