Module QIIME 2
Contents |
|---|
Interactive Job
Open an interactive session to a compute node. Adjust the number of CPUs (--cpus-per-task 1) and the amount of memory (--mem 8G) needed for your job. Increase the number of --cpus-per-task only when using code that can run in parallel.
srun --cpus-per-task 1 --mem 8G --pty bash
Load the QIIME2 module (select amplicon or shotgun distribution):
module load qiime2/amplicon-2023.9
or
module load qiime2/shotgun-2023.9Run QIIME2:
qiime [OPTIONS] COMMAND [ARGS]...[user@athena1 ~]$ srun --cpus-per-task 1 --mem 8G --pty bash
[user@athena201 ~]$ module load qiime2/amplicon-2023.9
(qiime2-amplicon-2023.9) [user@athena201 ~]$ qiime info
System versions
Python version: 3.8.15
QIIME 2 release: 2023.9
QIIME 2 version: 2023.9.2
q2cli version: 2023.9.1
Installed plugins
alignment: 2023.9.0
composition: 2023.9.0
cutadapt: 2023.9.0
dada2: 2023.9.0
deblur: 2023.9.0
demux: 2023.9.1
diversity: 2023.9.0
diversity-lib: 2023.9.0
emperor: 2023.9.0
feature-classifier: 2023.9.0
feature-table: 2023.9.0
fragment-insertion: 2023.9.0
longitudinal: 2023.9.1
metadata: 2023.9.0
phylogeny: 2023.9.0
quality-control: 2023.9.0
quality-filter: 2023.9.0
sample-classifier: 2023.9.0
taxa: 2023.9.0
types: 2023.9.0
vsearch: 2023.9.0Batch Job
Create the Slurm job script file. Adjust the number of CPUs (--cpus-per-task 1) and the amount of memory (--mem 8G) needed for your job. Increase the number of --cpus-per-task only when using code that can run in parallel.
QIIME2_slurm_script.sh
#!/bin/bash
#SBATCH --job-name QIIME2_job
#SBATCH --output QIIME2_job_output.log
#SBATCH --error QIIME2_job_error.log
#SBATCH --cpus-per-task=1
#SBATCH --mem 8G
module load qiime2/amplicon-2023.9
qiime [OPTIONS] COMMAND [ARGS]...Submit the job to Slurm:
sbatch QIIME2_slurm_script.shMonitor the execution of your job in the Slurm queue:
squeue -u $USERThe job may show up in the queue as running (R) or pending (PD). When the job completes, it will disappear from the queue and you can check the output.
[user@athena1 ~]$ sbatch QIIME2_slurm_script.sh
Submitted batch job 371
[user@athena1 ~]$ squeue -u $USER
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) ## Job is running with JOBID 371
371 cpu QIIME2_j user R 0:02 1 athena201
[user@athena1 ~]$ squeue -u $USER
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) ## JOBID 371 completed and exited the queue
[user@athena1 ~]$ cat QIIME2_job_output.log
...