/net/fowler/vol1/home/jjsteph/hts/MAC/170807_NS500488_0436_AHMKL3AFXX
bcl2fastq/2.19
###create sample sheet###
bcl2fastq --minimum-trimmed-read-length 0 --mask-short-adapter-reads 0 --no-lane-splitting
gunzip *.gz
module load fastx-toolkit/latest
for sample in
###UMIs:
gzip *.fatsq
paste <( zcat /net/fowler/vol1/home/jjsteph/hts/Temporary/170808_NS500272_0340_AHJTJYAFXX/Data/Intensities/BaseCalls/20170614_LLa_UMI_R1.fq.gz) <( zcat /net/fowler/vol1/home/jjsteph/hts/Temporary/170808_NS500272_0340_AHJTJYAFXX/Data/Intensities/BaseCalls/20170614_LLa_UMI_R2.fq.gz) |awk '{ count+=1; if (count == 2) { print $1$2 }; if (count == 4) { count=0 }}' | sort | uniq -c | awk '{ print "@"2"\n"substr($2,0,18)"\n+\n"substr($2,0,18) }' | gzip -c > 20170614_LLa_UMI.fq.gz
###for multiple samples###
for sample in