https://github.com/arjunrajlaboratory/RajLabSeqTools
Revision 1f85fbd0bc7114c89c0a475d72e74ac9b14d774c authored by Sydney Shaffer on 13 October 2015, 12:48:21 UTC, committed by Sydney Shaffer on 13 October 2015, 12:48:21 UTC
1 parent 510a48c
Raw File
Tip revision: 1f85fbd0bc7114c89c0a475d72e74ac9b14d774c authored by Sydney Shaffer on 13 October 2015, 12:48:21 UTC
made scripts to run bowtie2 on ATAC data
Tip revision: 1f85fbd
unzipAndCat.sh
#!/bin/bash

EXPERIMENT=$1

for dirname in /home/opadovan/C1_Single_Cell_RNA_Seq-11219209/* ; do
cd $dirname

INPUT=`ls *001_R1*`
SAMPLE=`echo $INPUT | cut -d'_' -f 1`

if [ ! -d $EXPERIMENT/raw ]; then
mkdir $EXPERIMENT/raw
fi

if [ ! -d $EXPERIMENT/raw/$SAMPLE ]; then
mkdir $EXPERIMENT/raw/$SAMPLE
fi

for i in *.gz; do
gunzip -c $i > ${i%.*}
done

FASTQR1=`echo $SAMPLE'_R1.fastq'`
FASTQR2=`echo $SAMPLE'_R2.fastq'`

cat *R1*fastq > $EXPERIMENT/raw/$SAMPLE/$FASTQR1
cat *R2*fastq > $EXPERIMENT/raw/$SAMPLE/$FASTQR2

done

back to top