Skip to content

Commit

Permalink
added the runBWA script
Browse files Browse the repository at this point in the history
  • Loading branch information
aseetharam committed Aug 31, 2017
1 parent 4100ab1 commit ab7a3d6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions runBWA.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
module load bwa
module load samtools
GENOMEDIR="/work/GIF/arnstrm/GENOMEDB"
#GNAME="Btau_4.6.1_chromosomes.fa"
GNAME="$1"
REF="$GENOMEDIR/$GNAME"
THREADS="16"
READ1="$2"
READ2="$3"
SAM=$(basename ${READ1%.*} | cut -f 1-2 -d "_")
bwa mem -M -x ont2d -t ${THREADS} ${REF} ${READ1} ${READ2} > ${SAM}.sam
samtools view --threads 16 -b -o ${SAM}.bam ${SAM}.sam
samtools sort -m 8G -o ${SAM}_sorted.bam -T ${SAM}_temp --threads 16 ${SAM}.bam

0 comments on commit ab7a3d6

Please sign in to comment.