Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Blockkurs MicrobialBioinfo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AMR
Blockkurs MicrobialBioinfo
Commits
d712596e
Commit
d712596e
authored
1 year ago
by
Vanni Benvenga
Browse files
Options
Downloads
Patches
Plain Diff
Update file panaroo.sh
parent
4735614c
No related branches found
No related tags found
1 merge request
!58
Update file panaroo.sh
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exercises/Pangenome_analysis/panaroo.sh
+12
-8
12 additions, 8 deletions
exercises/Pangenome_analysis/panaroo.sh
with
12 additions
and
8 deletions
exercises/Pangenome_analysis/panaroo.sh
+
12
−
8
View file @
d712596e
#!/usr/bin/env bash
#SBATCH --time=02:00:00
#SBATCH --mem-per-cpu=
20
G
#SBATCH --cpus-per-task=
2
#SBATCH --mem-per-cpu=
64
G
#SBATCH --cpus-per-task=
4
#SBATCH --job-name=panaroo
#SBATCH --output=panaroo_%j.out
#SBATCH --error=panaroo_%j.err
#SBATCH --output=
slurm_
panaroo_%j.out
#SBATCH --error=
slurm_
panaroo_%j.err
# Load singularity module
module load singularityce
...
...
@@ -12,7 +14,7 @@ module load singularityce
# Declare variables
# input data folder
datadir
=
# results folder
# results folder
(03_output_mrsa)
wd
=
# Path to singularity images folder
singpath
=
/shares/amr.imm.uzh/bioinfo/singularity/
...
...
@@ -25,15 +27,17 @@ cd $wd
mkdir
-p
panaroo/annotation_files
mkdir
-p
panaroo/panaroo_output
# generate soft links to the .gff files while looping through the sample names
for
sample_id
in
"
${
array
[@]
}
"
do
echo
$sample_id
ln
-s
$wd
/
$sample_id
/prokka_annotation/
$sample_id
.gff
$wd
/panaroo/annotation_files/
done
# Runs singularity on the annotations and send the output to the output folder
echo
Starting panaroo
$(
date
+
"%T"
)
cd
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
cd
$wd
/panaroo
$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"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment