Calculate coverage across hairpins

calc_hairpin_coverage(fsce, cell_ids = NULL, activities = NULL,
  expt = "haircut", meta = "rnaseq")

Arguments

fsce

FunctionalSingleCellExperiment

cell_ids

cell ids to include in coverage calculation or category from colData in rnaseq expt

activities

vector of activites to calculate coverage over. default is all present.

expt

Data to use for calculating variable features (default is rnaseq). Must be present in names(fsce).

meta

Data to use to find cell_ids categories default is rnaseq

Examples

calc_hairpin_coverage(fsce_small)
#> # A tibble: 426 x 4 #> cell_id hairpin position count #> <chr> <chr> <dbl> <dbl> #> 1 all_cells Abasic 1 2.61 #> 2 all_cells Abasic 10 0.0507 #> 3 all_cells Abasic 11 0.0620 #> 4 all_cells Abasic 12 0.222 #> 5 all_cells Abasic 13 0.162 #> 6 all_cells Abasic 14 0.0770 #> 7 all_cells Abasic 15 0.0658 #> 8 all_cells Abasic 16 0.0583 #> 9 all_cells Abasic 17 0.120 #> 10 all_cells Abasic 18 0.148 #> # … with 416 more rows