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

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