Skip to contents

[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"]
#> 06520101B0017R 
#>          FALSE 
result <- set_tech_failure(object, c("06520101B0017R", "06520047C0017R"))
get_tech_failure(result)["06520101B0017R"]
#> 06520101B0017R 
#>           TRUE