Changes between Version 28 and Version 29 of cypress/R
- Timestamp:
- 08/19/25 14:50:13 (42 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/R
v28 v29 272 272 }}} 273 273 274 The downloaded sample file '''bootstrap.sh''' containsthe above SLURM script code, and we can submit as shown below.274 For now we'll need to modify the downloaded sample file '''bootstrap.sh''' to contain the above SLURM script code, and we can submit as shown below. 275 275 276 276 Also, note that since we did not specify an output file in the SLURM script, the output will be written to slurm-<!JobNumber>.out. For example: … … 295 295 The disadvantage of the above approach is that it is system specific. If we move our code to a machine that uses PBS-Torque as it's manager ([[https://hpc.loni.org/resources/hpc/system.php?system=QB2|LONI QB2]] for example) we have to change our source code. An alternative method that results in a more portable code base uses command line arguments to pass the value of our environment variables into the script. 296 296 297 Let's look at the downloaded file '''bootstrapWargs.R''' containing the following code.297 Let's look at the downloaded sample file '''bootstrapWargs.R''' containing the following code. 298 298 299 299 {{{#!r … … 362 362 }}} 363 363 364 The downloaded file '''bootstrapWargs.sh''' containsthe above SLURM script code.364 For now we'll need to modify the downloaded sample file '''bootstrapWargs.sh''' to contain the above SLURM script code. 365 365 366 366 Now submit as in the following.