forked from SomaLogic/SomaDataIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lifting accessor function for Lin's CCC
- new function getLiftCCC() - accesses the lifting correlations between SomaScan versions for each analyte - fixed small bug with SomaReadr reference in params.R - closes SomaLogic#88
- Loading branch information
Showing
6 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#' @rdname adat-helpers | ||
#' | ||
#' @description | ||
#' [getSomaScanLiftCCC()] accesses the lifting Concordance Correlation | ||
#' Coefficients between various SomaScan versions. | ||
#' | ||
#' @inheritParams params | ||
#' @references Lin, Lawrence I-Kuei. 1989. A Concordance Correlation | ||
#' Coefficient to Evaluate Reproducibility. __Biometrics__. 45:255-268. | ||
#' @return | ||
#' \item{[getSomaScanLiftCCC()]}{Returns a tibble of either the | ||
#' `serum` or `plasma` CCC between various versions of the SomaScan assay.} | ||
#' @examples | ||
#' | ||
#' # plasma (default) | ||
#' getSomaScanLiftCCC() | ||
#' | ||
#' # serum | ||
#' getSomaScanLiftCCC("serum") | ||
#' @export | ||
getSomaScanLiftCCC <- function(matrix = c("plasma", "serum")) { | ||
matrix <- match.arg(matrix) | ||
dplyr::select(lift_master, SeqId, | ||
dplyr::starts_with(matrix) & dplyr::ends_with("ccc")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.