#!/bin/bash
#$ -l mem=10G,time=2:: -N Cindy
#$ -cwd -V
/nfs/apps/matlab/2017a/bin/matlab -r 'run run_cindy.m'
reference:
https://arc.leeds.ac.uk/using-the-systems/why-have-a-scheduler/qsub-qrsh-usage/
https://foundations-in-computational-skills.readthedocs.io/en/latest/content/workshops/06_cluster_computing/06_cluster_computing.html#:~:text=Shell%20scripts%20that%20are%20submitted%20as%20qsub%20script,hello_world.qsub%20%3A%20%23%21%2Fbin%2Fbash%20echo%20hello%20world%20cat%20nonexistent_file
~~~~submit a R script
#!/bin/bash
#$ -l mem=20G,time=40:: -N Dist
#$ -cwd
Rscript modularity_run.R
Possibilities for Executing R Scripts
R console
source("my_script.R")
Command-line
Rscript my_script.R # or just ./myscript.R after making it executable
R CMD BATCH my_script.R # Alternative way 1
R --slave < my_script.R # Alternative way 2~~~
!/bin/bash
$ -l mem=100G,time=40::
$ -l h_vmem=70G
$-N peak_picking
$ -cwd
ulimit -t 36000 -v 102400000
Rscript ht294d_hpc.R
网友评论