Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bio-IT Workshops
embl_hpc
Commits
50fa9839
Verified
Commit
50fa9839
authored
Apr 03, 2019
by
Toby Hodges
Browse files
add batch script and BWA example folder to novice material
parent
638853d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
novice/exercises/batch_job.sh
0 → 100644
View file @
50fa9839
#!/bin/bash
srun ./hpc_example
-t
30
-m
200
novice/exercises/bwa/bwa_batch.sh
0 → 100644
View file @
50fa9839
#!/bin/bash
#SBATCH -J bwa
#SBATCH --time=00-00:06:00
#SBATCH --mem=4000M
#SBATCH --nodes=1
#SBATCH --tmp=1G
#SBATCH --gres=tmp:1G
#SBATCH --output=bwa.out
#SBATCH --open-mode=append
## load required modules
module load SAMtools BWA
## copy data to /tmp and change directory to /tmp
cp
/g/its/home/pecar/benchmarks/msmith_bwa/Ecoli_genome.fa.gz
$TMPDIR
cp
/g/its/home/pecar/benchmarks/msmith_bwa/reads_
*
.fq.gz
$TMPDIR
cd
$TMPDIR
## create an index
bwa index
-p
ecoli Ecoli_genome.fa.gz
## perform alignment
bwa mem
-t
$SLURM_CPUS_PER_TASK
ecoli reads_1.fq.gz reads_2.fq.gz
>
aligned.sam
## create a compressed BAM file
samtools view
-b
aligned.sam
>
aligned.bam
## copy results back to where job was submitted from
cp
aligned.bam
$SLURM_SUBMIT_DIR
/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment