create_sce_haircut: Create a single-cell Haircut experiment

Description Usage Arguments Value Examples

View source: R/expt.R

Description

Create a single-cell Haircut experiment

Usage

1
create_sce_haircut(path, norm_method = "clr_normalize", adducts = NULL)

Arguments

path

path to output matrices, or R matrix object.

norm_method

Normalization method for counts. Normalized data is stored in logcounts. Set to NULL to skip normalization.

adducts

data_frame with positions of hairpin adducts. Expects two columns named adduct and pos.

Value

SingleCellExperiment containing a sparseMatrix of counts

Examples

1
2
3
4
5
create_sce_haircut(scrunchy_data("haircut/"))

# using pre-loaded matrix
mat <- SingleCellExperiment::counts(fsce_small[["haircut"]])
create_sce_haircut(mat)

hesselberthlab/scrunchy documentation built on Nov. 11, 2019, 2:29 p.m.