get_counts_index: get_counts_index

Description Usage Arguments Value

View source: R/contrasting_functions.r

Description

get_counts_index is an internal utility function to find out where the counts are (if anywhere.). Stops if there's no assay called 'counts', (unless there is only a single unnamed assay).

Usage

1
get_counts_index(n_assays, assay_names)

Arguments

n_assays

How many assays are there? ie: length(assays(dataset_se))

assay_names

What are the assays called? ie: names(assays(dataset_se))

Value

The index of an assay in assays called 'counts', or, if there's just the one unnamed assay - happily assume that that is counts.


celaref documentation built on Nov. 8, 2020, 5:03 p.m.