# \donttest{
# compute the LDA between the 50th SNP and the 55th SNP
# painting data for the 50th SNP (2 ancestries)
data_base <- cbind(LDAandLDAS::example_painting_p1[,50],
LDAandLDAS::example_painting_p2[,50])
# painting data for the 55th SNP (2 ancestries)
data_experiment <- cbind(LDAandLDAS::example_painting_p1[,55],
LDAandLDAS::example_painting_p2[,55])
# resample painting data for the 50th SNP
data_resample <- data_base[sample(1:nrow(data_base)),]
#compute their pairwise LDA
LDA_value <- cal_lda(data_resample,data_base,data_experiment,2)
# }
Run the code above in your browser using DataLab