-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBowtie2alignment.sh
More file actions
34 lines (24 loc) · 1.14 KB
/
Bowtie2alignment.sh
File metadata and controls
34 lines (24 loc) · 1.14 KB
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
#!/bin/bash
#
#SBATCH -c 20
#SBATCH --mem-per-cpu=4000
#SBATCH --job-name=BT2
#SBATCH --output=BT2alignment.out
#SBATCH --time=16:00:00
#######################################################################################
###############################################################################
#######################################################################################
mkdir aligned
mkdir -p output/bowtielogs
for sample in `cat SRR_Acc_List.txt`
do
echo ${sample} "starting alignment"
#align trimmed reads using bowtie2
# --no-unal suppress SAM records for unaligned reads
$BT2_HOME/bowtie2 -x $BT2_MM10/genome -1 trimmed/${sample}_1.paired.fastq.gz -2 trimmed/${sample}_2.paired.fastq.gz -S aligned/${sample}.sam -p 20 --no-unal --time 2> output/bowtielogs/${sample}_bowtie2log.log
echo ${sample} "finished alignment"
done
#######################################################################################
#combine
#######################################################################################
multiqc output/bowtielogs --filename output/bowtie2_multiqc_report.html --ignore-samples Undetermined* --interactive