annotate ICGC_STAR_ALIGNMENT_PIPELINE/ICGC_pipeline.sh @ 0:e2b290eeb07b draft default tip

Uploaded
author daumsoft
date Sun, 09 Sep 2018 21:33:01 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
1 #!/bin/bash
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
2
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
3 if [ "$#" -ne 1 ]; then
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
4 echo "[usage:] ICGC_pipeline.sh fastq_in_tar.gz"
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
5 exit 1;
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
6 fi
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
7
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
8 #FASTQ_1=$1
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
9 #FASTQ_2=$2
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
10 #SAMPLE_ID=$3
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
11 #TAR_FILE=$SAMPLE_ID".tar"
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
12 TAR_FILE=$1
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
13
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
14 export PATH=/storage/data/program/GDC_TGCA-Harmonized/RNA-Seq/bin/ICGC-STAR_ALIGNMENT_PIPELINE:$PATH
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
15
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
16 #tar cvfh $TAR_FILE $FASTQ_2 $FASTQ_1
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
17
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
18 STAD_ALIGN=~/package/DAUMSOFT/RNA-seq/ICGC_STAR_ALIGNMENT_PIPELINE/star_align.py
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
19 STAR_INDEX_PATH=~/refs/hg38/gdc/Index_Files/GDC.h38.d1.vd1_STAR2_Index_Files/star_genome_d1_vd1_gtfv22
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
20 WORK_DIR=./wrk
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
21 OUTPUT_BAM=./out
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
22 REFERENCE=~/refs/hg38/gdc/GRCh38.d1.vd1_Reference_Sequence/GRCh38.d1.vd1.fa
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
23 RUN_THREAD_NUM=8
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
24 rm -rf $WORK_DIR
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
25 rm -rf $OUTPUT_BAM
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
26 mkdir $WORK_DIR
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
27 mkdir $OUTPUT_BAM
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
28
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
29 python $STAD_ALIGN \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
30 --genomeDir $STAR_INDEX_PATH \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
31 --tarFileIn $TAR_FILE \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
32 --workDir $WORK_DIR \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
33 --out $OUTPUT_BAM \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
34 --genomeFastaFiles $REFERENCE \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
35 --runThreadN $RUN_THREAD_NUM \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
36 --outFilterMultimapScoreRange 1 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
37 --outFilterMultimapNmax 20 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
38 --outFilterMismatchNmax 10 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
39 --alignIntronMax 500000 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
40 --alignMatesGapMax 1000000 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
41 --sjdbScore 2 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
42 --limitBAMsortRAM 0 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
43 --alignSJDBoverhangMin 1 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
44 --genomeLoad NoSharedMemory \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
45 --outFilterMatchNminOverLread 0.33 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
46 --outFilterScoreMinOverLread 0.33 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
47 --twopass1readsN -1 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
48 --sjdbOverhang 100 \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
49 --outSAMstrandField intronMotif \
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
50 --outSAMunmapped Within
e2b290eeb07b Uploaded
daumsoft
parents:
diff changeset
51