https://github.com/arjunrajlaboratory/RajLabSeqTools
Revision 8f355a9ee069f4f290cca29d0c7c2e6a33e4f2ec authored by Sydney Shaffer on 15 October 2015, 12:18:38 UTC, committed by Sydney Shaffer on 15 October 2015, 12:18:38 UTC
1 parent 5e9b826
Tip revision: 8f355a9ee069f4f290cca29d0c7c2e6a33e4f2ec authored by Sydney Shaffer on 15 October 2015, 12:18:38 UTC
made scripts to run MACS2
made scripts to run MACS2
Tip revision: 8f355a9
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
Computing file changes ...