OIST Banner OIST Banner OIST Banner Dark Mode OIST Banner Dark Mode

Test page

  1. Indented code blocks or not?
  2. Straight quotes “ “ or fancy quotes “ “ in running text?

Here’s an example batch script:

Here’s an example batch script:

    #!/bin/bash
    #SBATCH -p short
    #SBATCH -t 1:00:00
    #SBATCH --mem=10G
    #SBATCH -c 8

    module load ncbi-blast
    blastp -in fastafile.fasta
#!/bin/bash
#SBATCH -p short
#SBATCH -t 1:00:00
#SBATCH --mem=10G
#SBATCH -c 8

module load ncbi-blast
blastp -in fastafile.fasta

The “#SBATCH” lines set the job parameters the same way as for srun: The “short” partition, 10GB memory and 8 cores for one hour. Everything after the #SBATCH lines is a regular bash shell script that, in this case, loads the ncbi-blast module, then runs the program “blastp” on a data file.

The “#SBATCH” lines set the job parameters the same way as for srun: The “short” partition, 10GB memory and 8 cores for one hour. Everything after the #SBATCH lines is a regular bash shell script that, in this case, loads the ncbi-blast module, then runs the program “blastp” on a data file.

    $ sbatch myscript.slurm
$ sbatch myscript.slurm