This is a user friendly R package for facilitating the use of SDA, including data formatting, importing results and analysis.
# install.packages("remotes")
remotes::install_github("marchinilab/SDAtools")
Note that SDA itself must be downloaded and installed separately.
library(SDAtools)
export_data(simulate_2D_data()$Y, name = "simulated.data")
run_SDA(data = "simulated.data", out = "simulation_results")
results <- load_results(results_folder = "simulation_results")
genome_loadings(results$loadings[[1]][8,])
For a full guide on how to use this package please see the vignette.
Contributions and comments of any size or form are welcome!