1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| #!/bin/bash
raw_data='SRR*' for each in ${raw_data} do ~/biosoft/sratoolkit.2.6.3-centos_linux64/bin/fastq-dump --split-3 $each -O ./ done
fastq='*.fastq' for data in ${fastq} do ~/biosoft/FastQC/fastqc -o ./firstQC -t 2 $data done
fortrimmer1='*1.fastq' fortrimmer2='*2.fastq' for data1 in ${fortrimmer1} & for data2 in ${fortrimmer2} do java -jar ~/biosoft/Trimmomatic-0.39/trimmomatic-0.39.jar PE -threads 2 -phred33 $data1 $data2 $data1.paired.clean.fastq $data1.unpaired.clean.fastq $data2.paired.clean.fastq $data2.unpaired.clean.fastq ILLUMINACLIP:/home/yannis/biosoft/Trimmomatic-0.39/adapters/TruSeq3-SE.fa:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:2:25 MINLEN:16 done
second_clean='*.clean.fastq' for clean_data in ${second_clean} do ~/biosoft/FastQC/fastqc -o ./secondQC -t 2 $clean_data done
clean='*.clean.fastq' for clean_data in ${clean} do mapper.pl $clean_data -e -h -i -j -m -k AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC -l 16 -p ~/reference/index/mature.human -s $clean_data.fa -t $clean_data.arf -o 1 -n done
mapresult='*.fa' for result in ${mapresult} do quantifier.pl -p ~/reference/hairpin.human.fa -m ~/reference/mature.human.fa -r $result -t hsa done
|