h_has_req_annotations: Predicate for Required Annotations

View source: R/HermesData-methods.R

h_has_req_annotationsR Documentation

Predicate for Required Annotations

Description

[Experimental]

This helper function determines for each gene in the object whether all required annotation columns are filled.

Usage

h_has_req_annotations(object, annotation_required)

Arguments

object

(AnyHermesData)
input object.

annotation_required

(character)
names of required annotation columns for genes.

Value

Named logical vector with one value for each gene in object, which is TRUE if all required annotation columns are filled, and otherwise FALSE.

See Also

filter() where this is used internally.

Examples

object <- hermes_data
result <- h_has_req_annotations(object, "size")
all(result)
rowData(object)$size[1] <- NA # nolint
which(!h_has_req_annotations(object, "size"))

insightsengineering/hermes documentation built on Sept. 19, 2024, 9:06 p.m.