Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
embl_hpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Bio-IT Workshops
embl_hpc
Commits
ce463509
Commit
ce463509
authored
6 years ago
by
Mike Smith
Browse files
Options
Downloads
Patches
Plain Diff
updated bwa example to run longer
parent
2e7f9b26
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
exercises/batch_job.sh
+5
-1
5 additions, 1 deletion
exercises/batch_job.sh
exercises/bwa/bwa_batch.sh
+11
-7
11 additions, 7 deletions
exercises/bwa/bwa_batch.sh
with
16 additions
and
8 deletions
exercises/batch_job.sh
+
5
−
1
View file @
ce463509
#!/bin/bash
#SBATCH --mem=150
./hpc_example.py
-t
60
-l
2000
srun ./hpc_example.py
-t
40
-l
2000
srun
--mem
=
3000 ./hpc_example.py
-t
30
-l
80000000
This diff is collapsed.
Click to expand it.
exercises/bwa/bwa_batch.sh
+
11
−
7
View file @
ce463509
#!/bin/bash
#SBATCH -t 00:
15
:00
#SBATCH -t 00:
06
:00
#SBATCH --mem=150
#SBATCH --nodes=1
## load required modules
module load SAMtools BWA
## copy data to /scratch and change directory
cp
reference.fa reads.fq
$SCRATCHDIR
&&
cd
$SCRATCHDIR
cp
/g/huber/users/msmith/embl_hpc/Ecoli_genome.fa.gz /g/huber/users/msmith/embl_hpc/reads_
*
.fq.gz
$SCRATCHDIR
cd
$SCRATCHDIR
## create an index
bwa index
reference.fa
bwa index
-p
ecoli Ecoli_genome.fa.gz
## perform alignment
bwa
aln
-I
reference.fa
reads.fq
>
out
.sa
i
bwa
mem ecoli reads_1.fq.gz
reads
_2
.fq
.gz
>
aligned
.sa
m
## create
S
AM file
bwa samse reference.fa out.sai reads.fq
>
out.s
am
## create
a compressed B
AM file
samtools view
-b
aligned.sam
>
aligned.b
am
## copy results back
cp
out.s
am
$HOME
/embl_hpc/exercises/bwa/
cp
aligned.b
am
$HOME
/embl_hpc/exercises/bwa/
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