You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Fasta downloading. Will rewrite existing files. Can be commented if fasta is downloaded already. Then change $FASTA_PATH to actual location of fasta.
52
+
echo Downloading fasta files
53
+
wget $FASTA_URL.gz -O $FASTA_PATH.gz
54
+
wget $FASTA_URL.gz.fai -O $FASTA_PATH.gz.fai
55
+
56
+
# Fasta unzipping. Can be commented if fasta is downloaded already. Then change $FASTA_PATH to actual location of fasta. Will overwrite existing Fasta file.
57
+
echo Unzipping fasta files
58
+
gzip -df $FASTA.gz
59
+
gzip -df $FASTA.gz.fai
60
+
mv $FASTA.gz.fai $FASTA.fai
61
+
62
+
# BAM and BAI download
63
+
# Normal
64
+
echo Downloading normal BAM
65
+
wget $NORMAL_BAM_URL -O $NORMAL_BAM_PATH
66
+
wget $NORMAL_BAM_URL.bai -O $NORMAL_BAM_PATH.bai
67
+
# Tumor
68
+
echo Downloading tumor BAM
69
+
wget $TUMOR_BAM_URL -O $TUMOR_BAM_PATH
70
+
wget $TUMOR_BAM_URL.bai -O $TUMOR_BAM_PATH.bai
71
+
72
+
# BED download
73
+
echo Downloading BED
74
+
wget $BED_URL -O $BED_PATH
75
+
76
+
# Splitting BED file on chr20 for better performance in VarDict Perl
77
+
cat $BED| grep $CHR>$BED_SPLIT
78
+
rm $BED
79
+
80
+
echo Creating output directory
81
+
cd ..
82
+
mkdir $DIR_OUTPUT
83
+
cd$DIR_OUTPUT
84
+
85
+
# Run VarDict
86
+
echo Running VarDict java
87
+
time$VARDICTJAVA \
88
+
-G $FASTA_PATH \
89
+
$PARAMETERS \
90
+
-th $JAVA_THREADS \
91
+
-b "$TUMOR_BAM_PATH|$NORMAL_BAM_PATH" \
92
+
$BED_SPLIT_PATH| sort > java.var
93
+
94
+
#-F 0x504 flag can be deleted after Perl fix for filter unmapped reads by default
0 commit comments