-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTC-STARAlignment.sh
executable file
·63 lines (46 loc) · 3.03 KB
/
TC-STARAlignment.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
## Use STAR 2.5.2b to align RNA-Seq reads to the genome
export PATH=/work/users/dgerard/programs/STAR-2.5.2b/bin/Linux_x86_64_static:$PATH
## Align 1st biological replicate ##
cd /scratch/users/dgerard/RNA-seq-rep1/ReadsworRNA
echo "Alignment to the genome with STAR 2.5.2b"
for i in *worRNAreads*
do
echo "STAR alignment for file $i"
# Create names for the output
outSTAR=Mapped.$i
# Run the STAR command
STAR --genomeDir /scratch/users/dgerard/Ahr-Gzf1-KD/STAR.GRCm38mm10.anno79 --runThreadN 12 --readFilesIn \
$i --readFilesCommand zcat --outFileNamePrefix /scratch/users/dgerard/RNA-seq-rep1/MappedReads/$outSTAR --twopassMode Basic --outSAMunmapped Within --limitOutSJcollapsed \
1000000 --limitSjdbInsertNsj 1000000 --outFilterMultimapNmax 100 --outFilterMismatchNmax 33 --outFilterMismatchNoverLmax 0.3 --seedSearchStartLmax 12 --alignSJoverhangMin \
15 --alignEndsType Local --outFilterMatchNminOverLread 0 --outFilterScoreMinOverLread 0.3 --winAnchorMultimapNmax 50 --alignSJDBoverhangMin 3 --outFilterType \
BySJout --outSAMtype BAM SortedByCoordinate --outSAMstrandField intronMotif
done
## Align 2nd biological replicate ##
cd /scratch/users/dgerard/RNA-seq-rep2/ReadsworRNA
for i in *worRNAreads*
do
echo "STAR alignment for file $i"
# Create names for the output
outSTAR=Mapped.$i
# Run the STAR command
STAR --genomeDir /scratch/users/dgerard/Ahr-Gzf1-KD/STAR.GRCm38mm10.anno79 --runThreadN 12 --readFilesIn \
$i --readFilesCommand zcat --outFileNamePrefix /scratch/users/dgerard/RNA-seq-rep2/MappedReads/$outSTAR --twopassMode Basic --outSAMunmapped Within --limitOutSJcollapsed \
1000000 --limitSjdbInsertNsj 1000000 --outFilterMultimapNmax 100 --outFilterMismatchNmax 33 --outFilterMismatchNoverLmax 0.3 --seedSearchStartLmax 12 --alignSJoverhangMin \
15 --alignEndsType Local --outFilterMatchNminOverLread 0 --outFilterScoreMinOverLread 0.3 --winAnchorMultimapNmax 50 --alignSJDBoverhangMin 3 --outFilterType \
BySJout --outSAMtype BAM SortedByCoordinate --outSAMstrandField intronMotif
done
## Align 3rd biological replicate ##
cd /scratch/users/dgerard/RNA-seq-rep3/ReadsworRNA
for i in *worRNAreads*
do
echo "STAR alignment for file $i"
# Create names for the output
outSTAR=Mapped.$i
# Run the STAR command
STAR --genomeDir /scratch/users/dgerard/Ahr-Gzf1-KD/STAR.GRCm38mm10.anno79 --runThreadN 12 --readFilesIn \
$i --readFilesCommand zcat --outFileNamePrefix /scratch/users/dgerard/RNA-seq-rep3/MappedReads/$outSTAR --twopassMode Basic --outSAMunmapped Within --limitOutSJcollapsed \
1000000 --limitSjdbInsertNsj 1000000 --outFilterMultimapNmax 100 --outFilterMismatchNmax 33 --outFilterMismatchNoverLmax 0.3 --seedSearchStartLmax 12 --alignSJoverhangMin \
15 --alignEndsType Local --outFilterMatchNminOverLread 0 --outFilterScoreMinOverLread 0.3 --winAnchorMultimapNmax 50 --alignSJDBoverhangMin 3 --outFilterType \
BySJout --outSAMtype BAM SortedByCoordinate --outSAMstrandField intronMotif
done