-
Notifications
You must be signed in to change notification settings - Fork 0
/
2_STAR.pbs
44 lines (33 loc) · 1.21 KB
/
2_STAR.pbs
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
#PBS -N STAR.2.6.0c_map
#PBS -M johndou@umich.edu
#PBS -m abe
#PBS -j oe
#PBS -V
#PBS -q fluxod
#PBS -A bakulski_fluxod
#PBS -l qos=flux
#PBS -l nodes=1:ppn=6:largemem,mem=64gb,walltime=72:00:00
cat $PBS_NODEFILE
module load samtools
for path in /nfs/turbo/bakulski1/Datasets/Padmanabhan/ruddle.brcf.med.umich.edu/Run_2742/padmanabha/Sample_124*; do
SAMPLEID="$(basename "${path}")"
rm -r /nfs/turbo/bakulski1/People/johndou/vsheep/Run_2742/STAR/$SAMPLEID/
mkdir /nfs/turbo/bakulski1/People/johndou/vsheep/Run_2742/STAR/$SAMPLEID/
for file in $path/*.fastq.gz; do
FASTQF="$(basename "${file}")"
PREFIX=${FASTQF//.fastq.gzAligned.out.sam/}
/nfs/turbo/bakulski1/Software/STAR/bin/Linux_x86_64_static/STAR \
--genomeDir /nfs/turbo/bakulski1/People/johndou/Sheep_Genome/refSTAR/ \
--readFilesIn \
/nfs/turbo/bakulski1/Datasets/Padmanabhan/ruddle.brcf.med.umich.edu/Run_2742/padmanabha/$SAMPLEID/$FASTQF \
--readFilesCommand gunzip -c \
--runThreadN 6 \
--clip5pNbases 0 3 \
--outFilterMultimapNmax 10 \
--outSAMmode Full \
--sjdbScore 2 \
--outFileNamePrefix \
/nfs/turbo/bakulski1/People/johndou/vsheep/Run_2742/STAR/$SAMPLEID/$PREFIX \
--outReadsUnmapped Fastx
done
done