read_vista_metadata() standardizes a sample sheet for use as
sample_info in create_vista(). It infers or creates the required
sample_names column using the same conventions VISTA already accepts in the
constructor.
Usage
read_vista_metadata(
x,
sample_column = NULL,
required_columns = NULL,
drop_empty = TRUE,
standardize_names = TRUE,
verbose = TRUE
)Arguments
- x
Sample metadata as a data frame or file path.
- sample_column
Optional column to use as
sample_names. If omitted, VISTA uses an existingsample_namescolumn, non-default rownames, or common aliases such assample,sample_id, orRun.- required_columns
Optional character vector of columns that must be present after import.
- drop_empty
Logical; if
TRUE, remove columns that are entirelyNAor empty strings.- standardize_names
Logical; if
TRUE, coerce the finalsample_namescolumn to character and set rownames to match it.- verbose
Logical; print an informational import summary.
Value
A data frame suitable for use as sample_info in create_vista().
