mkdir 3-align cd 3-align for i in $(ls ../1-reads/ERR219785*.fastq);do bowtie2 -p 8 -x /media/ken/Data/CrippsLab/DB_D.melanogaster/Genome -U ../1-reads/$i -S $i.Genome.sam done mv ../1-reads/*.sam . cd ..
for i in $(ls ERR219785*.fastq);do bowtie2 -p 8 -x /media/ken/Data/DB/miRNA/hairpin -U $i -S $i.hairpin.sam done mv *.sam 3-align
for i in $(ls ERR219785*.fastq);do bowtie2 -p 8 -x /media/ken/Data/DB/miRNA/mature -U $i -S $i.hairpin.sam done mv *.sam 3-align