View source: R/ELeFHAnt_Functions.R
DeduceRelationship | R Documentation |
Deduce Relationship is a function that hels deduce relationships among celltypes/annotationCol between two datasets. It requires two datasets (both processed Seurat Objects). Obtain relationships among metadata of interest. Function outputs a heatmap with annotation from dataset1 y-axis and annotation from dataset2 on x-axis.
DeduceRelationship( reference1 = NULL, reference2 = NULL, downsample = TRUE, downsample_to = 1000, selectvarfeatures = 2000, ntree = 500, annotationCol_ref1 = "Celltypes", annotationCol_ref2 = "Celltypes" )
reference1 |
a processed Seurat Object with Celltypes column in metadata |
reference2 |
a processed seurat object with Celltypes column in metadata |
downsample |
logical Indicator (TRUE or FALSE) to downsample reference1 and reference2, enabling fast computation |
downsample_to |
a numerical value > 1 to downsample cells Default: 1000 |
selectvarfeatures |
number of variable features to select while training (Default: 2000) |
ntree |
number of trees randomForest classifier should build (Default: 500) |
annotationCol_ref1 |
Name of column in metdata which has Celltypes information Default: Celltypes in reference1 |
annotationCol_ref2 |
Name of column in metdata which has Celltypes information Default: Celltypes in reference2 |
ggplot2 heatmap object and heatmap is automatically saved
Praneet Chaturvedi & Konrad Thorner
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.