-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbsa02_STAR_index.sh
48 lines (35 loc) · 1.25 KB
/
bsa02_STAR_index.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
#!/bin/bash
#SBATCH --mail-user=xxx
# Mail on NONE, BEGIN, END, FAIL, REQUEUE, ALL
#SBATCH --mail-type=ALL
#SBATCH --job-name="2index"
# Runtime and memory
#SBATCH --time=08:00:00 #
#SBATCH --mem-per-cpu=32Gb #
#SBATCH --cpus-per-task=4
# Partition
#SBATCH --partition=epyc2
#SBATCH --account=xxx
#SBATCH --chdir=/xxx/necrosis
#SBATCH --output=code/bsa02_STAR_index_%A.out
#SBATCH --error=code/bsa02_STAR_index_%A.err
#################################
chdir=/xxx/necrosis
scdir=/xxx/necrosis
module load vital-it
module load UHTS/Aligner/STAR/2.6.0c
# Build a genome index for STAR aligner
## link the original genome file from a location in the cluster to the current project folder
ln -s /xxx/genomes/Peax403.fasta ${scdir}/data/genomes/Peax403.fasta
## link the annotation file
ln -s /xxx/genomes/Peax403.cds.gff ${scdir}/data/genomes/Peax403.cds.gff
echo -e "## `date`\n## Genome indexing\n"
STAR --runMode genomeGenerate \
--runThreadN 4 \
--genomeDir ${scdir}/data/genomes \
--genomeFastaFiles ${scdir}/data/genomes/Peax403.fasta \
--sjdbGTFfile ${scdir}/data/genomes/Peax403.cds.gff \
--sjdbOverhang 149 \
--sjdbGTFtagExonParentTranscript Parent \
--genomeChrBinNbits 16 --limitGenomeGenerateRAM 24000000000
echo -e "Indexing done.\n `date`"