The goal of sctkr is to serve as a deposit for functions that perform common tasks for single cell analysis
You can install the released version of sctkr from github with:
devtools::install_github("Teichlab/sctkr")
A simple usage example is given below, for more options, look at ?CellTypeCompositionAnalysis
and ?plot_ranef
result <- CellTypeCompositionAnalysis(
obs_tbl,
'sample_id',
'my_annot',
colVarCats=c(
'Sex', 'Kit_version', 'Sample_location', 'Age_bin'
)
)
print(plot_ranef(
result$ranef,
vars=list(
Sample_location=c('Nose', 'Trachea', 'Bronchi'),
Age_bin=c('Neonate', 'Infant', 'Young child', 'Child', 'Adolescent', 'Adult', 'Eldly')
),
maxFC=3
))