#!/bin/bash
while IFS= read -r line; do
    assem=${line}_df38
    # test if directory exists
    if [ -d ./$assem ]; then
        echo "Importing $line";
        (cd ./$assem; /bin/time python3 /home/agray/projects/Dfam-umbrella/Server/importNewAssembly.py -a $line -r 3.8 &> "/usr/local/Dfam-warehouse/releases/annotations_exports/_logs/${assem}_new_assem.log";)
    else 
        echo "$assem dir not found";
    fi

    
done < "$1"