Description Usage Arguments Value References Examples
Allows calculate all indicators provided by GapAnalysisR R package. Please use the Pre_analysis_function function before run this pipeline
1 2 | Integrate_gap_analysis_function(dir, run_version, Workspace, species,
buff_dist, species_csv, pre_analysis, insitu, exsitu, eooAoo)
|
dir |
A forder to run the gap analysis including inputs and outputs | |||||||||||
run_version |
The version of the analysis used (e.g 'v1') | |||||||||||
Workspace |
A forder where the pipeline will be executed | |||||||||||
species |
Species name provided by user or the get_sp_names function | |||||||||||
buff_dist |
Distance around germplasm accessions geographical coordinates in km^2 | |||||||||||
species_csv |
CSV file name located at /Workspace/parameters/input to be splitted | |||||||||||
pre_analysis |
(logical) This option allows to run the set of pre-analysis functions:
| |||||||||||
insitu |
(logical) This option allows to calculate In-situ indicators:
| |||||||||||
exsitu |
(logical) This option allows to calculate Ex-situ indicators:
| |||||||||||
eooAoo |
(logical) This option allows to calculate EOO and AOO to get IUCN conservation status |
This function run the complete GapAnalysisR pipeline in one unique function
Khoury, C. K., Amariles, D., Soto, J. S., Diaz, M. V., Sotelo, S., Sosa, C. C., … Jarvis, A. (2019). Comprehensiveness of conservation of useful wild plants: An operational indicator for biodiversity and sustainable development targets. Ecological Indicators. https://doi.org/10.1016/j.ecolind.2018.11.016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | Integrate_gap_analysis_function(dir,run_version,Workspace,buff_dist,pre_analysis,insitu,exsitu,eooAoo)
dir <- 'E:/CIAT/workspace/Workspace_test'
run_version <- 'v1'
species_csv <- 'Cucurbita_CWR_2019_09_30.csv'
Workspace <- 'E:/CIAT/workspace/Workspace_test/workspace'
buff_dist <- 50000 #50km radius
pre_analysis <- T
insitu <- T
exsitu <- T
eooAoo <- T
Integrate_gap_analysis_function(dir,run_version,Workspace,species,buff_dist,species_csv,pre_analysis,insitu,exsitu,eooAoo)
#INCLUDE INPUT FILES BEFORE RUN THE NEXT FUNCTION
species_list <- get_sp_names(Workspace,species_csv)
lapply(1:length(species_list),function(i){
species <- species_list[[i]]
x <- Integrate_gap_analysis_function(dir,run_version,Workspace,species,buff_dist,species_csv,pre_analysis,insitu,exsitu,eooAoo)
cat(paste0(species,"| status:",x),"\n")
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.