forked from leklab/scRNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSTAR.sh
49 lines (47 loc) · 1.71 KB
/
STAR.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
#!/bin/bash
#SBATCH --partition=general
#SBATCH --job-name=sc_star
#SBATCH --nodes=1
#SBATCH --mem=64000
#SBATCH --cpus=4
#SBATCH --time=24:00:00
#SBATCH --mail-type=ALL
sample_id="scTEST"
star_index="/gpfs/ycga/project/ysm/lek/shared/tools/gtex_pipeline/required_files/STAR_genome_GRCh38_noALT_noHLA_noDecoy_ERCC_v26_oh100/"
fastq1="/home/ec753/project/scRNAseq/HCA/ischaemic_sensitivity/fastqs/HCATisStabAug177078016_S1_L001_R1_001.fastq.gz"
fastq2="/home/ec753/project/scRNAseq/HCA/ischaemic_sensitivity/fastqs/HCATisStabAug177078016_S1_L001_R2_001.fastq.gz"
#STAR alignment
mkdir star_out
cd star_out
STAR --runMode alignReads \
--runThreadN 16 \
--genomeDir ${star_index} \
--twopassMode Basic \
--outFilterMultimapNmax 20 \
--alignSJoverhangMin 8 \
--alignSJDBoverhangMin 1 \
--outFilterMismatchNmax 999 \
--outFilterMismatchNoverLmax 0.1 \
--alignIntronMin 20 \
--alignIntronMax 1000000 \
--alignMatesGapMax 1000000 \
--outFilterType BySJout \
--outFilterScoreMinOverLread 0.33 \
--outFilterMatchNminOverLread 0.33 \
--limitSjdbInsertNsj 1200000 \
--readFilesIn ${fastq1} ${fastq2} \
--readFilesCommand zcat \
--outFileNamePrefix ${sample_id}. \
--outSAMstrandField intronMotif \
--outFilterIntronMotifs None \
--alignSoftClipAtReferenceEnds Yes \
--quantMode TranscriptomeSAM GeneCounts \
--outSAMtype BAM Unsorted SortedByCoordinate \
--outSAMunmapped Within \
--genomeLoad NoSharedMemory \
--chimSegmentMin 15 \
--chimJunctionOverhangMin 15 \
--chimOutType WithinBAM SoftClip \
--chimMainSegmentMultNmax 1 \
--outSAMattributes NH HI AS nM NM ch \
--outSAMattrRGline ID:rg1 SM:sm1