-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathGenome_Index.sh
More file actions
31 lines (27 loc) · 796 Bytes
/
Genome_Index.sh
File metadata and controls
31 lines (27 loc) · 796 Bytes
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
#!/bin/bash
set -o pipefail
# Define Exon Parent Gene and Transcript Tags
if [ "$ANNOTATION_FORMAT" == "GFF3" ]; then
echo "Using GFF3 annotation to generate a genome index"
TRANSCRIPT_TAG="Parent"
if [[ ! -z "$GENE_PARENT" ]]; then
GENE_TAG="${GENE_PARENT}"
else
GENE_TAG="gene_id"
fi
elif [ "$ANNOTATION_FORMAT" == "GTF" ]; then
echo "Using GTF annotation to generate a genome index"
TRANSCRIPT_TAG="transcript_id"
GENE_TAG="gene_id"
else
echo "Please specify whether annotation file is in GTF or GFF3 format"
fi
${STAR_FILE} \
--runThreadN $NTHREAD \
--runMode genomeGenerate \
--genomeDir $GEN_DIR \
--genomeFastaFiles $GEN_FASTA \
--sjdbGTFtagExonParentTranscript $TRANSCRIPT_TAG \
--sjdbGTFtagExonParentGene $GENE_TAG \
--sjdbGTFfile $GEN_ANN \
--sjdbOverhang $SPLICE_JUN