R/clusterset_report.R
cluster_set_report.Rd
Create a report from a ClusterSet and Seurat object.
cluster_set_report(
clusterset_object = NULL,
seurat_object = NULL,
file_path = NULL,
force = FALSE,
report_title = "Scigenex_report",
report_author = "Unknown",
heatmap_colors = colors_for_gradient("Ju1"),
heatmap_color_ident = NULL,
coord_flip = TRUE,
pt_size = 2.75,
go_info = c("ID", "Description", "GeneRatio", "pvalue", "qvalue", "Count"),
verbosity = 1,
pandoc_heap_size = "512m",
report_id = rlang::hash(clusterset_object)
)
The ClusterSet object.
The Seurat object.
A file path where to store the report (html extension).
Whether to force erase output file.
A title for the report.
Names of report authors.
Colors for the heatmap gradient.
Colors for cell classes.
Whether to flip spatial coordinates.
Size of the spots.
Info about GO stats. Should be from the list: "ONTOLOGY", "ID", "Description", "GeneRatio", "BgRatio", "pvalue", "p.adjust", "qvalue", "geneID", "Count"
The verbosity level (0-3, defaut to 1.)
Fix the maximum memory used by pandoc. See https://pandoc.org/MANUAL.html.
Used to label code chunks.
# Load datasets
set_verbosity(3)
library(Seurat)
load_example_dataset("7870305/files/lymph_node_tiny_clusters_2")
#> |-- INFO : Dataset 7870305/files/lymph_node_tiny_clusters_2 has been loaded.
load_example_dataset("7870305/files/lymph_node_tiny_2")
#> |-- INFO : Dataset 7870305/files/lymph_node_tiny_2 has been loaded.
# Create a report
cluster_set_report(clusterset_object = lymph_node_tiny_clusters_2[1,],
seurat_object=lymph_node_tiny_2,
pt_size=6)
#> |-- DEBUG : Checking ClusterSet format.
#> |-- DEBUG : Report ID is : e5cde0b97ddfd882ccff69e313ef025a
#> |-- INFO : Preparing report.
#> |-- INFO : Dumping dataset
#> |-- INFO : Writing report into /var/folders/zy/wl3dj2_n76zfc8sdvny1q06c0000gn/T//Rtmp7s9US9/scigenex_report436e61e79eed.Rmd
#> |-- INFO : Rmd file written at : /var/folders/zy/wl3dj2_n76zfc8sdvny1q06c0000gn/T//Rtmp7s9US9/scigenex_report436e61e79eed.Rmd
#> |-- INFO : Rendering report.
#> |-- INFO : Creating report at : /var/folders/zy/wl3dj2_n76zfc8sdvny1q06c0000gn/T//Rtmp7s9US9/scigenex_report436e61e79eed.html