-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4100ab1
commit ab7a3d6
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |