validate_reps: Validate sample replicates for RNA seq

View source: R/validate_pairs.R

validate_repsR Documentation

Validate sample replicates for RNA seq

Description

Used internally by select_pairs and externally by dseqr

Usage

validate_reps(pairs, rows, reps)

Arguments

pairs

Numeric vector of integers and/or NA. Positions with the same integer value indicate samples that are paired in a pair-ended experiment.

rows

Numeric vector of integers indicating selected rows.

reps

Numeric vector of integers and/or NA. Positions with the same integer value indicate samples that replicates.

Value

TRUE if the replicate is valid, otherwise FALSE.

Examples

# example if valid replicate specification
pairs <- rep(NA, 4)
rows <- c(1, 2)
reps <- rep(NA, 4)
validate_reps(pairs, rows, reps)

alexvpickering/rkal documentation built on Nov. 27, 2022, 8:38 p.m.