Skip to content
Snippets Groups Projects
Commit d712596e authored by Vanni Benvenga's avatar Vanni Benvenga
Browse files

Update file panaroo.sh

parent 4735614c
No related branches found
No related tags found
1 merge request!58Update file panaroo.sh
#!/usr/bin/env bash #!/usr/bin/env bash
#SBATCH --time=02:00:00 #SBATCH --time=02:00:00
#SBATCH --mem-per-cpu=20G #SBATCH --mem-per-cpu=64G
#SBATCH --cpus-per-task=2 #SBATCH --cpus-per-task=4
#SBATCH --job-name=panaroo #SBATCH --job-name=panaroo
#SBATCH --output=panaroo_%j.out #SBATCH --output=slurm_panaroo_%j.out
#SBATCH --error=panaroo_%j.err #SBATCH --error=slurm_panaroo_%j.err
# Load singularity module # Load singularity module
module load singularityce module load singularityce
...@@ -12,7 +14,7 @@ module load singularityce ...@@ -12,7 +14,7 @@ module load singularityce
# Declare variables # Declare variables
# input data folder # input data folder
datadir= datadir=
# results folder # results folder (03_output_mrsa)
wd= wd=
# Path to singularity images folder # Path to singularity images folder
singpath=/shares/amr.imm.uzh/bioinfo/singularity/ singpath=/shares/amr.imm.uzh/bioinfo/singularity/
...@@ -25,15 +27,17 @@ cd $wd ...@@ -25,15 +27,17 @@ cd $wd
mkdir -p panaroo/annotation_files mkdir -p panaroo/annotation_files
mkdir -p panaroo/panaroo_output mkdir -p panaroo/panaroo_output
# generate soft links to the .gff files while looping through the sample names # generate soft links to the .gff files while looping through the sample names
for sample_id in "${array[@]}" for sample_id in "${array[@]}"
do do
echo $sample_id
ln -s $wd/$sample_id/prokka_annotation/$sample_id.gff $wd/panaroo/annotation_files/ ln -s $wd/$sample_id/prokka_annotation/$sample_id.gff $wd/panaroo/annotation_files/
done done
# Runs singularity on the annotations and send the output to the output folder # Runs singularity on the annotations and send the output to the output folder
echo Starting panaroo $(date +"%T") echo Starting panaroo $(date +"%T")
cd panaroo cd $wd/panaroo
$singpath/panaroo_1.3.0--pyhdfd78af_0.sif panaroo -i $wd/panaroo/annotation_files/*.gff -o ./panaroo_output/ --clean-mode strict --remove-invalid-genes --core_threshold $singpath/panaroo_1.3.0--pyhdfd78af_0.sif \
panaroo -i ./annotation_files/*.gff -o ./panaroo_output/ \
--clean-mode strict --remove-invalid-genes --core_threshold 0.95 -t $SLURM_CPUS_PER_TASK
echo Done $(date +"%T") echo Done $(date +"%T")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment