Skip to contents

Tidy data to long format with column sample, variant, and the metric name. internal use only

Usage

tidy_metrics(data_mat, values_cname, rnames, cnames)

Arguments

data_mat

a data matrix in sample x variant format

values_cname

name of the metric -- eg RealDepth

rnames

vector to name the columns, eg sample.ids

cnames

vector to name the rows, eg variant_ids

Value

a tidy dataframe in long format with columns sample, variant, metric