#!/bin/bash

READDIR="/home/reads/" # Directory all reads are stored in
GENOME="/home/ref_chr_17.novo" # reference genome 


for file in $READDIR*.1.fastq; do prefix=${file#$READDIR}; prefix=${prefix%%.fastq}; novoalign -d $GENOME -f $READDIR$prefix.fastq -o SAM > $prefix.sam; done

