diff --git a/cli_01b.r b/cli_01b.r index 912e0360ef6930b09f355d451ecb333fee9c05c3..37e3175f7fda7dc04cb4906bd7563e68c7c44f7a 100644 --- a/cli_01b.r +++ b/cli_01b.r @@ -55,6 +55,14 @@ options <- list ( default = default.nperm, help = "How many permutations?", metavar = "4" + ), + make_option( + opt_str = c("-s", "--start.round"), + dest = "start.round", + type = "integer", + default = NA, + help = "Which start round?", + metavar = "4" ) ) @@ -65,7 +73,7 @@ parser <- OptionParser( epilogue = "use with caution, the awesomeness might slap you in the face!" ) -cli <- parse_args(parser, positional_arguments = 6) +cli <- parse_args(parser, positional_arguments = 5) # ------------------------------------------------------------------------------ # assign a few shortcuts @@ -76,7 +84,7 @@ traits.path <- cli$args[2] output <- cli$args[3] myfunction <- cli$args[4] combinations <- cli$args[5] -start.round <- cli$args[6] +start.round <- cli$options$start.round max.inter.t <- cli$options$max.inter.t chunkn <- cli$options$chunkn chunk.i <- cli$options$chunk.i @@ -89,5 +97,5 @@ ncores <- cli$options$ncores source("01b_MesobromionCluster.R") -Mesobromion(species.path, traits.path, output, myfunction, combinations, max.inter.t, - chunkn, chunk.i, nperm, ncores) +Mesobromion(species.path, traits.path, output, myfunction, combinations, start.round + max.inter.t, chunkn, chunk.i, nperm, ncores) diff --git a/submit_01b.sh b/submit_01b.sh index 56b0e1159a1dbe619f6fe516e12c29123e981191..9f3f6132b0e373267e3b1a828bc0bb58b5c823bc 100644 --- a/submit_01b.sh +++ b/submit_01b.sh @@ -6,8 +6,8 @@ #$ -o /work/$USER/$JOB_NAME-$JOB_ID.log #$ -j y -#$ -l h_rt=00:45:00:00 -#$ -l h_vmem=1G +#$ -l h_rt=00:50:00:00 +#$ -l h_vmem=2G #$ -pe smp 24-32 @@ -25,9 +25,10 @@ Rscript \ --chunkn 32 \ --nperm 999 \ --ncores ${NSLOTS:-1} \ + --start.round 4 \ /data/splot/HIDDEN/species.out.10perc.txt \ /data/splot/HIDDEN/traits.out.10perc.txt \ "$output" \ "get.corXY.bootstrap" \ "sequential" \ - 4 +