https://github.com/arjunrajlaboratory/RajLabSeqTools
Revision dd2f844dd42d785f26a6a12664cca2b230aeba5b authored by Sydney Shaffer on 12 November 2014, 19:43:18 UTC, committed by Sydney Shaffer on 12 November 2014, 19:43:18 UTC
1 parent 2311bee
Tip revision: dd2f844dd42d785f26a6a12664cca2b230aeba5b authored by Sydney Shaffer on 12 November 2014, 19:43:18 UTC
Adding melt script for htseq output
Adding melt script for htseq output
Tip revision: dd2f844
unzipAndConcatenateZippedFastq.sh
#!/bin/bash
ZIPFILEDIRECTORY=$1
OUTFASTADIRECTORY=$2
for dirname in $ZIPFIELDIRECTORY/* ; do
cd $dirname
INPUT=`ls *001_R1*`
SAMPLE=${INPUT%%_*}
if [ ! -d $OUTFASTADIRECTORY/raw ]; then
mkdir $OUTFASTADIRECTORY/raw
fi
if [ ! -d $OUTFASTADIRECTORY/raw/$SAMPLE ]; then
mkdir $OUTFASTADIRECTORY/raw/$SAMPLE
fi
for i in *.gz; do
gunzip -c $i > ${i%.*}
done
FASTQR1=${SAMPLE}_R1.fastq
FASTQR2=${SAMPLE}_R2.fastq
cat *R1*fastq > $OUTFASTADIRECTORY/raw/$SAMPLE/$FASTQR1
cat *R2*fastq > $OUTFASTADIRECTORY/raw/$SAMPLE/$FASTQR2
done
Computing file changes ...