/sctkr

A deposit of functions that perform common tasks for single cell analysis

Primary LanguageRGNU General Public License v3.0GPL-3.0

sctkr

Lifecycle: experimental

The goal of sctkr is to serve as a deposit for functions that perform common tasks for single cell analysis

Installation

You can install the released version of sctkr from github with:

devtools::install_github("Teichlab/sctkr")

Usage example

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
))