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
5 changed files
with
75 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#' Access Lin's Concordance Correlation Coefficient for SomaScan | ||
#' | ||
#' Access the CCC between various SomaScan versions.\cr | ||
#' \cr | ||
#' Table of SomaScan Assay versions: | ||
#' \tabular{lll}{ | ||
#' **Version** \tab **Commercial Name** \tab **Size** \cr | ||
#' `V4` \tab 5k \tab 5284 \cr | ||
#' `v4.1` \tab 7k \tab 7596 \cr | ||
#' `v5.0` \tab 11k \tab 11083 \cr | ||
#' } | ||
#' | ||
#' @inheritParams params | ||
#' @return A tibble of either the `serum` or `plasma` CCC | ||
#' between various versions of the SomaScan assay. | ||
#' @author Stu Field | ||
#' @examples | ||
#' # plasma (default) | ||
#' getLiftCCC() | ||
#' | ||
#' # serum | ||
#' getLiftCCC("serum") | ||
#' @export | ||
getLiftCCC <- function(matrix = c("plasma", "serum")) { | ||
matrix <- match.arg(matrix) | ||
dplyr::select(lift_master, SeqId, starts_with(matrix) & 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.