# NOT RUN {
# Example with data from the package
# You first need to download sambada with downloadSambada(tempdir())
# Example without population structure, using only one core
sambadaParallel(genoFile=system.file("extdata", "uganda-subset-mol.csv", package = "R.SamBada"),
envFile=system.file("extdata", "uganda-subset-env-export.csv", package = "R.SamBada"),
idGeno='ID_indiv', idEnv='short_name', dimMax=1, cores=1, saveType='END ALL',
outputFile=file.path(tempdir(),'uganda-subset-mol'))
# }
# NOT RUN {
# Example with population structure, using multiple core
sambadaParallel(genoFile=system.file("extdata", "uganda-subset-mol.csv", package = "R.SamBada"),
envFile=system.file("extdata", "uganda-subset-env-export.csv", package = "R.SamBada"),
idGeno='ID_indiv', idEnv='short_name', dimMax=2, cores=2, saveType='END ALL',
populationVar='LAST', outputFile=file.path(tempdir(),'uganda-subset-mol'))
# }
Run the code above in your browser using DataLab