dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
}
}
task Stats {
input {
File inputVcf
File? compareVcf
String? afBins
String? afTag
Boolean firstAlleleOnly = false
String? collapse
String? depth
String? exclude
File? exons
String? applyFilters
File? fastaRef
File? fastaRefIndex
String? include
Boolean splitByID = false
String? regions
File? regionsFile
Array[String] samples = []
File? samplesFile
String? targets
File? targetsFile
String? userTsTv
Boolean verbose = false
Int threads = 0
Int timeMinutes = 1 + 2* ceil(size(select_all([inputVcf, compareVcf]), "G")) # TODO: Estimate, 2 minutes per GB, refine later.
inputVcf: {description: "The vcf to be analysed.", category: "required"}
compareVcf: {description: "When inputVcf and compareVCF are given, the program generates separate stats for intersection and the complements. By default only sites are compared, samples must be given to include also sample columns.", category: "common"}
afBins: {description: "Allele frequency bins, a list (0.1,0.5,1) or a file (0.1\n0.5\n1).", category: "advanced"}
afTag: {description: "Allele frequency tag to use, by default estimated from AN,AC or GT.", category: "advanded"}
firstAlleleOnly: {description: "Include only 1st allele at multiallelic sites." category: "advanced"}
collapse: {description: "Treat as identical records with <snps|indels|both|all|some|none>, see man page for details.", category: "advanced"}