#' Check if a single-SNP selector is valid.
#'
#' Check if a single-SNP selector is valid.
#' Will \link{stop} if not.
#' @inheritParams default_params_doc
#' @return Nothing.
#' @seealso
#' There are multiple SNP selector checking functions,
#' see \link{create_snps_selector} for an overview
#' @examples
#' check_single_snp_selector(create_test_single_snp_selector())
#' @author Richèl J.C. Bilderbeek
#' @export
check_single_snp_selector <- function(single_snp_selector) {
testthat::expect_true(is.list(single_snp_selector))
testthat::expect_true("snp" %in% names(single_snp_selector))
testthat::expect_false("window_kb" %in% names(single_snp_selector))
plinkr::check_snp(single_snp_selector$snp)
invisible(single_snp_selector)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.