Alex Krohn
09/15/2025, 2:23 PM--known_snps and --dbsnp in sarek? I see here that they feed different GATK pipelines, but for non-model organisms, can I just use the same set of known SNPs in VCF format?
For background, the sarek command that I'm running is below. I want to call variants in a non-model organism with a custom reference genome. I ran sarek with --skip_tools baserecalibrator, filtered the resulting VCFs to only very high quality variants, then put that merged VCF of high quality sites into --known_snps (plus --known_snps_tbi). However, sarek gives an error that either --dbsnp or --known_indels is required for base recalibration. Because the variants may or may not be indels, I'm hesitant to just swap --known_snps for --known_indels. But maybe I should instead swap --known_snps for --dbsnsp?
nextflow run nf-core/sarek -profile docker --input samplesheet.csv --outdir sarek-out --genome custom --igenomes_ignore --fasta GCA_031162955.1_sanVit1_genomic.fna --fasta_fai GCA_031162955.1_sanVit1_genomic.fna.fai --wes --tools mpileup --save_reference --known_snps merged.filtered.vcf.gz --known_snps_tbi merged.filtered.vcf.gz.tbi --save_output_as_bam --save_mapped -c config_fileThomas Danhorn
09/15/2025, 5:33 PM--known_snps come from the 1000-genomes project, I suspect those would be common germline variants, whereas the --dbsnp could be anything, including cancer mutations.
If you are trying to create your own, I'm worried if the data you use to make these reference files is the same you are using later with those reference file, since you might get into a feedback loop of "confirmation bias". But if that is not a problem, and you want to create you own --known_* references, you can certainly split your high-fidelity (germline) variants into SNPs (length of REF and ALT are both 1) and indels (length of REF and ALT are different) to get --known_snps and --known_indels, respectively; not sure about the proper handling of MNPs -- split them into SNPs/ignore them/something else?Alex Krohn
09/15/2025, 6:54 PM--known_indels . But would it be equivalent to just pass all variants that passed filters to --dbsnp?Thomas Danhorn
09/15/2025, 8:29 PM--know_* files and --dbsnp serve different purposes, but I don't know any details. I only have worked with human and some mouse so far, and both species they have both kinds of files. So they don't seem to be intended to be used interchangeably. One would have to dig into source code (of the pipeline and the tools used by it) to see which file is used by which tool, and what exactly the tools does with it. I think these files are mostly used by GATK tools (for preparation, variant calling, and filtering), so maybe someone on the GATK forum can give a more satisfactory explanation when it is appropriate to use which file ...