# \donttest{
## Loading a subset of SNPs from chromosomes 3 and 12 of sweetpotato dataset
## (SNPs anchored to Ipomoea trifida genome)
dat <- NULL
for(i in c(3, 12)){
cat("Loading chromosome", i, "...\n")
tempfl <- tempfile(pattern = paste0("ch", i), fileext = ".vcf.gz")
x <- "https://github.com/mmollina/MAPpoly_vignettes/raw/master/data/sweet_sample_ch"
address <- paste0(x, i, ".vcf.gz")
download.file(url = address, destfile = tempfl)
dattemp <- read_vcf(file = tempfl, parent.1 = "PARENT1", parent.2 = "PARENT2",
ploidy = 6, verbose = FALSE)
dat <- merge_datasets(dat, dattemp)
cat("\n")
}
dat
plot(dat)
# }
Run the code above in your browser using DataLab