get_counts_index {celaref} | R Documentation

## get_counts_index

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

    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.

[Package celaref version 1.8.0 Index]