# NOT RUN {
# THE CODE IN THIS EXAMPLE IS THE SAME AS THAT USED IN THE TUTORIAL, AND
# THUS YOU NEED TO DOWNLOAD THE TUTORIAL DATA SET AND SET FILEPATH
# CORRECTLY TO RUN THIS
##----Firstly, declare the parameters required for the function--
# A - FILEPATH OF WHERE THE PARAMETER DESIGN SHOULD BE OUTPUT TO
FILEPATH<-"/media/FreeAgent/package_Test_Data/eFAST/Sampling/"
# B - NUMBER OF RESAMPLES (SEARCH CURVES) TO EMPLOY
NUMCURVES <- 3
# C: NUMBER OF TIMES TO SAMPLE EACH CURVE
# (i.e. NUMBER OF PARAMETER SUBSETS)
NUMSAMPLES <- 65
# D: PARAMETERS, IN ORDER, TRY TO AVOID SPACES, AND REMEMBER DUMMY
PARAMETERS<-c("thresholdBindProbability","chemoThreshold",
"chemoUpperLinearAdjust","chemoLowerLinearAdjust",
"maxVCAMeffectProbabilityCutoff","vcamSlope","Dummy")
# E: ARRAY OF THE MINIMUM VALUES OF EACH PARAMETER (AND DUMMY)
PMIN<-c(0,0.1,0.10,0.015,0.1,0.25,1)
# F: ARRAY OF THE MAXIMUM VALUES OF EACH PARAMETER (AND DUMMY)
PMAX<-c(100,0.9,0.50,0.08,1.0,5.0,10)
# }
# NOT RUN {
# DONTRUN IS SET SO THIS IS NOT EXECUTED WHEN PACKAGE IS COMPILED - BUT THIS
# HAS BEEN TESTED WITH THE TUTORIAL DATA
##---- NOW RUN THE METHOD ----
efast_generate_sample(FILEPATH,NUMCURVES,NUMSAMPLES,PARAMETERS,
PMIN,PMAX)
# }
Run the code above in your browser using DataLab