order_entries: Define Ordering for STR Data

View source: R/util.R

order_entriesR Documentation

Define Ordering for STR Data

Description

Create a standardized ordering vector (as per base::order) for the rows of the given data frame, using whichever STR-related metadata columns are available. Sample identifiers are treated as integers primarily but then resolved further by character sorting. Note that the identification-related report code relies on this to order lowest-distance genotype matches first.

Usage

order_entries(data)

Arguments

data

STR data frame, such as produced by prepare_dataset or a summary from summarize_dataset.

Value

integer vector of new row ordering

See Also

make_rownames


ressy/microsat documentation built on Aug. 24, 2023, 10:09 a.m.