View source: R/batch.removal.R
batch.removal | R Documentation |
It removes posible batch effects present in multiple FCS stored in a FCS.SCE
object. It based on:
Seurat's Canonical Correlation Analysis (CCA) or Reciprocal PCA (RPCA), see the tutorial for more information (another one).
Harmony's methodology.
batch.removal(
fcs.SCE,
assay.i = "transformed",
method,
batch,
new.matrix.name = "normalized",
harmony.params = NULL,
seurat.params = NULL,
threads = NULL
)
fcs.SCE |
A |
assay.i |
Name of matrix stored in the |
method |
Methodology to perform batch correction. Possible values are "Seurat" or "harmony". |
batch |
Variable name from |
new.matrix.name |
New normalized matrix name (it will stored within the |
harmony.params |
List with those options from original |
seurat.params |
List with those options from original |
threads |
Number of threads for multithreading. Default = |
## Not run:
fcs <- batch.removal(fcs, method = "harmony", batch = "patient_id",
new.matrix.name = "harmony")
fcs <- batch.removal(fcs, method = "harmony", batch = "patient_id",
new.matrix.name = "harmony",
harmony.params = list(plot_convergence = T)) #display optimal number of iterations
fcs <- batch.removal(fcs, method = "seurat", batch = "patient_id",
seurat.params = list(reduction = "cca"))
fcs <- batch.removal(fcs, method = "seurat", batch = "patient_id",
seurat.params = list(reduction = "cca", dims = 1:50))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.