Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 33 lines (27 sloc) 1.55 KB
#! /usr/local/bin/bash
### USER SPECIFIED VARIABLES ###
BASE="query/alien_index_bell" #base name for outputfile
SEARCHPROGRAM='diamond' # can be 'phmmer' or 'diamond'
TAXDIR="/depot/jwisecav/data/dbs/custom-refseq-2021-01-27/"
LINFILE="/depot/jwisecav/data/dbs/custom-refseq-2021-01-27/lineages.dmp"
RECIPIENT_LINEAGE='XYLARIOMYCETIDAE,222545' # ncbi taxonomy id of clade which encompases the query sequences
ANCESTRAL_LINEAGE='ASCOMYCOTA,4890' # ncbi taxonomy id of clade that vertically inherited query sequences should group within
NUM_TOP_HITS=200 # number of top hits to summarize (default = 100)
SKIPLIST="scripts/skiplist.txt" # optional comma-delimited list of taxonomy ids to skip (e.g. genomes you suspect of having contamination)
### Directory information ###
SCRIPTS="$PWD/scripts"
SLURMDIR="$PWD/slurm-out"
PARSEDIR="$PWD/diamond-out"
if [[ "$SEARCHPROGRAM" == 'phmmer' ]]; then
PARSEDIR="$PWD/phmmer-out"
fi
# SLURM variables
USER=$EMAIL # user email; either enter manually of add email to path, eg: export EMAIL='youremail@purdue.edu'
QUEUE='jwisecav' # user queue
TIME='10:00:00' # max walltime
echo "Creating working directories"
if [ ! -d "$SLURMDIR" ]; then mkdir $SLURMDIR; fi
export BASE RECIPIENT_LINEAGE ANCESTRAL_LINEAGE NUM_TOP_HITS SKIPLIST SCRIPTS PARSEDIR TAXDIR LINFILE
## 1 - Submit alien index job
echo "Submitting alien index job"
sbatch --account=$QUEUE --job-name=alienindex --mail-user=$USER --nodes=1 --cpus-per-task=1 --mem=30G --time=$TIME --output=$SLURMDIR/%x-%j.out $SCRIPTS/run_alienindex.sub