knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(plinkr)

Here we simulate a quantitative trait using PLINK.

Here we create the filename with parameters:

if (plinkr::is_plink_installed()) {
  results <- simulate_qt(
    simulate_qt_params = create_test_simulate_qt_params(),
    n_individuals = 2,
    temp_sim_filename = "temp.sim"
  )
  knitr::kable(utils::head(results$simfreq))
}

Cleanup

clear_plinkr_cache()
check_empty_plinkr_folder()


richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.