The goal of the Shasta long read assembler is to rapidly produce accurate assembled sequence using DNA reads generated by Oxford Nanopore flow cells as input.
Computational methods used by the Shasta assembler include:
shasta-Linux-0.11.1 --help
Allocate an interactive session and run the program.
Sample session (user input in bold):
[user@biowulf]$ sinteractive --cpus-per-task=10 --mem=10G salloc.exe: Pending job allocation 46116226 salloc.exe: job 46116226 queued and waiting for resources salloc.exe: job 46116226 has been allocated resources salloc.exe: Granted job allocation 46116226 salloc.exe: Waiting for resource configuration salloc.exe: Nodes cn3144 are ready for job [user@cn3144 ~]$ module load shasta [user@cn3144 ~]$ cp $SHASTA_TEST_DATA/TinyTest.fasta.gz . [user@cn3144 ~]$ gunzip TinyTest.fasta.gz [user@cn3144 ~]$ shasta-Linux-0.11.1 \ --input TinyTest.fasta \ --config Nanopore-Oct2021 \ --threads=8 \ --assemblyDirectory shasta_test [user@cn3144 ~]$ exit salloc.exe: Relinquishing job allocation 46116226 [user@biowulf ~]$
Create a batch input file (e.g. shasta.sh). For example:
#!/bin/bash #SBATCH --cpus-per-task=10 #SBATCH --mem=10G #SBATCH --time=2:00:00 #SBATCH --partition=norm set -e module load shasta shasta-Linux-0.11.1 \ --input TinyTest.fasta \ --config Nanopore-Oct2021 \ --threads=8 \ --assemblyDirectory shasta_test
Submit the job:
sbatch shasta.sh
Create a swarmfile (e.g. job.swarm). For example:
cd dir1; shasta-Linux-0.11.1 --input TinyTest1.fasta --config Nanopore-Oct2021 --threads=8 --assemblyDirectory test1 cd dir2; shasta-Linux-0.11.1 --input TinyTest2.fasta --config Nanopore-Oct2021 --threads=8 --assemblyDirectory test2
Submit this job using the swarm command.
swarm -f job.swarm [-g #] --module shastawhere
-g # | Number of Gigabytes of memory required for each process (1 line in the swarm command file) |
--module | Loads the module for each subjob in the swarm |