set_tech_failure: Set Technical Failure Flags

View source: R/quality.R

set_tech_failureR Documentation

Set Technical Failure Flags

Description

[Experimental]

Setter function which allows the user to define a sample manually as a technical failure.

Usage

set_tech_failure(object, sample_ids)

Arguments

object

(AnyHermesData)
input.

sample_ids

(character)
sample IDs to be flagged as technical failures.

Value

AnyHermesData object with modified technical failure flags.

See Also

add_quality_flags() which automatically sets all (gene and sample) quality flags, including these technical failure flags.

Examples

# Manually flag technical failures in a `AnyHermesData` object.
object <- hermes_data
get_tech_failure(object)["06520101B0017R"]
result <- set_tech_failure(object, c("06520101B0017R", "06520047C0017R"))
get_tech_failure(result)["06520101B0017R"]

insightsengineering/hermes documentation built on Dec. 15, 2024, 8:07 a.m.