get_cv_data()
is a wrapper function to return cv (coefficient of
variation) calculated with filter_cv()
.
Examples
data <- import_data(
example_path("coculture_peak_table.csv"),
example_path("metadata.csv"),
format = "Progenesis"
)
data_filter <- filter_cv(data,
cv_threshold = 0.01,
cv_param = "median"
)
#> ℹ Parsing 1303 peaks for replicability across technical replicates.
#> ✔ 1298 ions failed the cv_filter filter, 5 ions remain.
cv <- get_cv_data(data_filter)
head(cv)
#> Compound mean_cv median_cv
#> <char> <num> <num>
#> 1: 1 0.21346035 0.05760617
#> 2: 2 0.91799997 0.91799997
#> 3: 3 0.90848851 0.90848851
#> 4: 4 0.06782583 0.06782583
#> 5: 5 0.02727037 0.02727037
#> 6: 6 0.09005716 0.09005716