It is also possible to request that reference genomes be classified against a reference database when the project is first run. To do this, create the new project and edit it to include a reference project database. Then add the reference genomes and start the daemon.
The following script assumes that you have installed TypeMat_Lite in $HOME/.miga_db (section "Installing_TypeMat_Lite") and that the reference sequences for this exercise are in $HOME/miga_genomes/misc.
#!/bin/bash --login
########## SBATCH Lines for Resource Request ##########
#SBATCH --time=04:00:00 # limit of wall clock time - how long the job will run (same as -t)
#SBATCH --nodes=1 # number of different nodes - could be an exact number or a range of nodes (same as -N)
#SBATCH --ntasks=18 # number of tasks - how many tasks (nodes) that you require (same as -n)
#SBATCH --cpus-per-task=2 # number of CPUs (or cores) per task (same as -c)
#SBATCH --mem-per-cpu=4G # memory required per allocated CPU (or core) - amount of memory (in bytes)
#SBATCH --job-name class # you can give your job a name for easier identification (same as -J)
########## Command Lines to Run ##########
mkdir ~/miga_class
cd ~/miga_class
singularity shell ~/MiGA << EOF
miga new -P . -t genomes
miga edit -P . -m ref_project=~/.miga_db/TypeMat_Lite
miga add -P . -t genome -i assembly ~/miga_genomes/misc/*.fasta -m run_mytaxa_scan=false,run_distances=true
time miga daemon start -t -P . --shutdown-when-done
exit
EOF
A summary classification can be obtained with the MiGA command: