forked from mcmero/SVclone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_example_wsnvs.sh
executable file
·25 lines (18 loc) · 1.02 KB
/
run_example_wsnvs.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
#!/bin/sh
sample=tumour_p80_DEL
input=example_data/${sample}_svs_simple.txt
bam=example_data/${sample}_sv_extract_sorted.bam
echo 'Annotating breakpoints...'
python SVclone.py annotate -i $input -b $bam -s $sample --sv_format simple -cfg svclone_test.ini
echo 'Counting breakpoint reads...'
python SVclone.py count -i ${sample}/${sample}_svin.txt -b $bam -s $sample
echo 'Filtering out low-confidence breaks, adding SNVs...'
python SVclone.py filter -s $sample -i ${sample}/${sample}_svinfo.txt -p example_data/purity_ploidy.txt --snvs example_data/tumour_p80_DEL_snvs.vcf --snv_format mutect
echo 'Clustering...'
python SVclone.py cluster -s $sample
echo 'Post-assigning variants...'
Rscript SVclone/post_assign.R ${sample}/ccube_out/${sample}_ccube_sv_results.RData ${sample}/ccube_out/snvs/${sample}_ccube_snv_results.RData ${sample}/ccube_out/post_assign $sample --joint
if [ -f ${sample}/ccube_out/post_assign/snvs/${sample}_ccube_postAssign_snv_results.RData ]
then
echo 'Successfully ran test sample to completion!'
fi