Calculates the uc distance for uptake curve
get_uc_distance.Rd
Calculates the uc distance between uptake curves for one peptide in two
biological states. The possible methods of caluclation is described in the
vignette TODO.
This function supports comparison of two different peptides provided that the
values Start
, End
, MaxUptake
and Exposure
are the same.
Examples
kin_dat_1 <- prepare_kin_dat(alpha_dat, state = unique(alpha_dat[["State"]])[1])
kin_dat_2 <- prepare_kin_dat(alpha_dat, state = unique(alpha_dat[["State"]])[2])
fit_dat_1 <- kin_dat_1[kin_dat_1[["ID"]] == 1, ]
fit_dat_2 <- kin_dat_2[kin_dat_2[["ID"]] == 1, ]
get_uc_distance(fit_dat_1, fit_dat_2)
#> # A tibble: 1 × 8
#> # Groups: MaxUptake, Start [1]
#> MaxUptake Start End frac_uptake_diff uptake_diff frac_uptake_dist
#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 9 1 11 74.1 138. 0.0423
#> # ℹ 2 more variables: uptake_dist <dbl>, Sequence <chr>