validate_pairs: Validate sample pairing for pair-ended RNA seq

View source: R/validate_pairs.R

validate_pairsR Documentation

Validate sample pairing for pair-ended RNA seq

Description

Used internally by select_pairs and externally by dseqr

Usage

validate_pairs(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 pairing is valid, otherwise FALSE.

Examples

# example if valid pairing
pairs <- rep(NA, 4)
rows <- c(1, 2)
reps <- rep(NA, 4)
validate_pairs(pairs, rows, reps)

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