-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created MLVA template as part of characterization
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
bu_isciii/templates/characterization/ANALYSIS/ANALYSIS01_CHARACTERIZATION/05-mlva/lablog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# micromamba activate buisciii-tools_2.1.0 | ||
|
||
mkdir logs | ||
mkdir assemblies | ||
mkdir MLVA_output | ||
scratch_dir=$(pwd | sed 's|/data/bi/scratch_tmp|/scratch|g') | ||
cp ../../*_ASSEMBLY/03-assembly/unicycler/*.fasta* assemblies/ | ||
gzip -d assemblies/*.fasta.gz | ||
available_primers=$(ls /data/bi/references/MLVA/*primer* | rev | cut -d "/" -f1 | rev | cut -d "_" -f1) | ||
|
||
echo "Available primers:" | ||
select primer in $available_primers; do | ||
if [ -n "$primer" ]; then | ||
echo "You selected: $primer" | ||
break | ||
else | ||
echo "Invalid selection. Please try again." | ||
fi | ||
done | ||
|
||
primer_file=$(ls /data/bi/references/MLVA/${primer}*) | ||
|
||
echo "srun --partition short_idx --chdir ${scratch_dir} --output logs/MLVA.log --job-name MLVA python /data/bi/pipelines/mlva/MLVA_finder.py -c -i assemblies -o MLVA_output -p ${primer_file} --full-locus-name --predicted-PCR-size-table --flanking-seq 20 &" > _01_mlva.sh |