get_celltype_table: get_celltype_table

Description Usage Arguments Value Examples

View source: R/get_celltype_table.r

Description

get_celltype_table Generates a table that can be used for supplemenary tables of publications. The table lists how many cells are associated with each celltype, the level of annotation, and the dataset from which it was generated.

Usage

1

Arguments

annot

An annotation dataframe, which columns named 'level1class', 'level2class' and 'dataset_name'

Value

A dataframe with columns 'name', 'level', 'freq' and 'dataset_name'

Examples

1
2
3
4
5
library(ewceData)
# See PrepLDSC.Rmd for origin of merged_ALLCELLS$annot
cortex_mrna <- cortex_mrna()
cortex_mrna$annot$dataset_name <- "cortex_mrna"
celltype_table <- get_celltype_table(cortex_mrna$annot)

NathanSkene/EWCE documentation built on June 19, 2021, 5:40 a.m.