Description Usage Arguments Value Examples
Evaluates if the batch effects with a gene expression dataset using linear regression and if the batch is associated with the data, the data is batch-corrected using the ComBat Algorithm.
Please set your working directory before you call the function as all output files will be saved to this folder.
1 2 3 4 5 6 7 8 9 10 |
expr |
gene expression data; rows should be genes and columns should be samples. |
batch.info |
contains the batch information. The first column should be sample names. |
batch |
The title of the batch for which you want to evaluate and do the correction. Default = "Batch" |
NameString |
String that will be added in all output filenames. Default=NA. |
discrete.batch |
Logical value indicating whether the samples are already grouped in discrete batches. If the value is FALSE, contiguous batch information is clustered into discrete batches. Useful for clustering batch variables that are contiguous, for example, used reads and useful reads in mClust. Default = TRUE |
cond |
The column name in the batch.info data which denotes a biological condition variable that may need to be considered for batch correction. |
clus.method |
Method to be used for clustering. "km" denotes k-means clustering, "NMF" denotes NMF with 30 runs. Default employs both the methods, using clus.method= c("NMF", "km"). |
nrun.NMF |
number of runs for NMF. Default = 30. |
the batch-corrected dataset is returned.
1 2 3 4 5 6 7 | ## Not run:
beacon(expr1 = dataset,
batch.info = batch_info,
batch = "Batch",
discrete.batch = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.