Assemble a genome from a trimmed fasta file produced by shotgun sequenceing an isolate.
#!/bin/bash --login
########## SBATCH Lines for Resource Request ##########
#SBATCH --time=4:00:00 # limit of wall time - how long the job will run
#SBATCH --nodes=1 # number of different nodes - exact number or range
#SBATCH --ntasks=6 # number of tasks - how many tasks (nodes) you require
#SBATCH --cpus-per-task=2 # number of CPUs (cores) per task
#SBATCH --mem-per-cpu=2G # memory required per allocated CPU (or core)
#SBATCH --job-name assemble # job name for easier identification
########## Command Lines to Run ##########
mkdir ~/test_assemble
cd ~/test_assemble
singularity shell ~/MiGA << EOF
miga new -P ~/test_assemble -t genomes
miga add -P ~/test_assemble -t genome -i trimmed_reads_single ~/miga_genomes/a_capsulatum/A_capsulatum_reads.fasta
time miga daemon start -t -P . --shutdown-when-done
exit
EOF
A report on the assembled genome can be obtained with:
less ~/test_assemble/data/07.annotation/01.function/01.essential/A_capsulatum_reads.ess/log