-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.txt
executable file
·66 lines (54 loc) · 2.41 KB
/
commands.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
## Commands
This section lists commands run by the PURPLE workflow
### Run AMBER
~{amberScript} \
-reference ~{normal_name} -reference_bam ~{normal_bam} \
-tumor ~{tumour_name} -tumor_bam ~{tumour_bam} \
-output_dir ~{tumour_name}.amber/ \
-loci ~{PON} \
-ref_genome_version ~{genomeVersion}
### Run COBALT
~{colbaltScript} \
-reference ~{normal_name} -reference_bam ~{normal_bam} \
-tumor ~{tumour_name} -tumor_bam ~{tumour_bam} \
-output_dir ~{tumour_name}.cobalt/ \
-gc_profile ~{gcProfile} \
-pcf_gamma ~{gamma}
### Filter structural variant VCFs using GRIPSS, this is optional but recommended
~{gripssScript} \
-vcf ~{vcf} \
-sample ~{tumour_name} -reference ~{normal_name} \
-ref_genome_version ~{genomeVersion} \
-ref_genome ~{refFasta} \
-pon_sgl_file ~{pon_sgl_file} \
-pon_sv_file ~{pon_sv_file} \
-known_hotspot_file ~{known_hotspot_file} \
-repeat_mask_file ~{repeat_mask_file} \
-output_dir gripss/ \
-hard_min_tumor_qual ~{hard_min_tumor_qual} \
~{filter_sgls}
### Filter small variant (SNV + in/del) VCFs using bcftools, this is optional but recommended
~{bcftoolsScript} view -f "PASS" -S samples.txt -r ~{regions} ~{difficultRegions} ~{vcf} |\
~{bcftoolsScript} norm --multiallelics - --fasta-ref ~{genome} |\
~{bcftoolsScript} filter -i "(FORMAT/AD[0:1])/(FORMAT/AD[0:0]+FORMAT/AD[0:1]) >= ~{tumorVAF}" > ~{tumour_name}.PASS.vcf
### Run PURPLE
~{purpleScript} \
-ref_genome_version ~{genomeVersion} \
-ref_genome ~{refFasta} \
-gc_profile ~{gcProfile} \
-ensembl_data_dir ~{ensemblDir} \
-reference ~{normal_name} -tumor ~{tumour_name} \
-amber ~{tumour_name}.amber -cobalt ~{tumour_name}.cobalt \
~{"-somatic_sv_vcf " + SV_vcf} \
~{"-somatic_vcf " + smalls_vcf} \
-output_dir ~{tumour_name}.purple \
-no_charts
### Run LINX, if structural variant calls from GRIDSS are included
~{linxScript} \
-sample ~{tumour_name} \
-ref_genome_version ~{genomeVersion} \
-ensembl_data_dir ~{ensemblDir} \
-check_fusions \
-known_fusion_file ~{fusions_file} \
-purple_dir ~{tumour_name}.purple \
-output_dir ~{tumour_name}.linx