flowchart TD
subgraph "VARIANT ANNOTATION"
A("Analysis-Ready Variants<br>SNVs + Indels")--> B[[Funcotator]] --> C{{"Functionally<br>Annotated Variants"}} --> D(["Further analysis"])
style A fill:#34495e,stroke:#333,stroke-width:4px,color:#fff
style B fill:#228B22,stroke:#333,stroke-width:4px,color:#ADD8E6
style C fill:#767076,stroke:#F9F2F4,stroke-width:2px,color:#fff
end
./gatk FuncotatorDataSourceDownloader --germline --validate-integrity --extract-after-download
# Set up relevant absolute path
variant="path/to/variant_calling"
reference="path/to/reference/UCSC_hg38/chr21.fa.gz"
dataSources="path/to/reference/funcotator_dataSources.v1.7.20200521g/"
annotation="path/to/annotation"
results="path/to/results"
gatk --java-options "-Xmx4G" Funcotator \
-V "${variant}/chr21_tumor_cnn_filtered.vcf" \
-R "${reference}" \
-O "${annotation}/chr21_tumor_funcotated.vcf" \
--output-file-format VCF \
--data-sources-path ${dataSources} \
--ref-version hg38
gatk VariantsToTable \
-V "${annotation}/chr21_tumor_funcotated.vcf" -F AC -F AN -F DP -F AF -F FUNCOTATION \
-O "${results}/chr21_tumor_output.table"