I recently ran sarek on multiple WGS samples using...
# sarek
c
I recently ran sarek on multiple WGS samples using the tools
haplotypecaller,cnvkit,manta,snpeff,vep,merge
Is there a follow on nf-core pipeline that can do more downstream analyses? Or does sarek have any further downstream analysis options? Im not looking for anything specific just common exploratory analyses, common variants between samples etc.
t
There is no "pipeline" I'm aware of, and this is very much dependent on your specific experiment and the questions you are asking. A key problem is "What is a mutation?" The answer depends on what you want you are looking for. E.g. for mutational burden calculations, you don't care if an individual call is right or wrong, as long as the total number is close enough on average. If you are looking for mutations to target with a drug, you better be sure that mutation is actually there and not an artifact. It may also make a difference if the mutation is clinically relevant or a "harmless" passenger mutation. Maybe you care about the variant allele frequency in your sample, or the population allele frequency, or maybe not. Maybe you are scanning your samples for the "usual suspects" variants, for which treatments are available, or maybe you are looking for something totally novel. I usually use
bcftools
(some combinations of
norm
,
view
,
+split-vep
, etc.) to make tables of variants. Filtering criteria (which vary based on the application) may include the
FILTER
values, the VAF (especially in the normal sample if you have TN-pairs; unless you have a germline mutation there, it should be close to zero, give or take margins to account for sequencing errors and cross contamination), the type of mutation and its impact on the protein, and clinical data, etc. I also like to set a minimum read count to even look at a locus, and possibly a minimum number of alternate reads to believe a mutation is real. (Unfortunately that is far from clear; variant callers rarely agree with each other.) Given your tools, you appear more interested in germline variants, which seems a bit easier in that regard. The MultiQC report contains some summary graphs about the types of mutations that are present. If that is something you are interested in, you could refine those (base on filtered data, clean up, prettify, etc.). You can also covert VCFs to MAFs (ideally while or after you apply some filtering.) -- the R package
maftools
can do various plots, and you can probably find others. Again, it all depends on your questions. Maybe have a look at papers in your field, see what they do, and try to replicate the things you like best. 🤞
❤️ 1
c
Thanks for that answer @Thomas Danhorn. The analysis of this data is very much exploratory and looking for common variants, variant classes etc between samples. So I think
maftools
might be a good approach. What filtering parameters do you usually apply when converting VCF’s to MAF’s? And what output files from sarek do you usually use to do the conversion, filtering etc?
t
I usually use the VEP-annotated VCFs. Regarding filtering, I would apply criteria that increase the confidence that a variant call is pointing to a real mutation (I work with cancer samples, so I am interested in somatic variants; criteria for germline would be different). • I like to set a cutoff for total coverage of a locus (some equivalent of
DP
), and I in TN pairs I would apply that to both samples. How exactly to do that depends on the tool and mode (available fields vary). E.g., if I am using
AD
, I might use
MIN(AD[*:0] + AD[*:1])
, which may differ slightly from from
MIN(FORMAT/DP)
, because of which reads are counted or not. I like to have at least 10 reads for that, but for the normal sample you could go a bit (but not much) lower, depending on how desperate you are. • If both normal and tumor sample show something that looks like a somatic mutation, that would be strange, and I don't know what to make of that, so I tend to discard such variants. Also, if the normal sample has a germline variant and the tumor appears to just have a different VAF, whether that is real or not, it's probably not an important variant for the cancer. From this follows that I want the ALT reads in the normal sample as close to zero as possible. You could set a cutoff of
0
, but I like to allow for sequencing errors or cross contamination in the normal sample, so you could allow a very small number of reads or a small percentage of the total (whichever is smaller) to be ALT. • You could also filter on absolute and relative difference in VAF between normal and tumor, but if you use the criterion above that would not add anything. You could instead insist on a certain number (>1) of ALT reads in the tumor to make sure you are not basing your call on a stray read with a sequencing error. • For tools that set
FILTER
, I want that to be
PASS
, unless you have reasons to be more permissive and ignore some of these filters. (FreeBayes does _not_ set `FILTER` , so you have to do something yourself.) • Once I have the MAF, I can set further criteria, e.g. only use certain severe variant classes to make oncoplots. Important note: Different tools have different conventions on the order of samples in the VCF for tumor-normal pairs, e.g. alphabetical by name, or normal before tumor. It is important you get this right, otherwise your filters might do the opposite of what you want (e.g. remove tumor samples with ALT reads, instead of normal ones). With
bcftools view -s "$normalsample,$tumorsample"
you can enforce the order.
vcf2maf
has its own options to declare names for normal and tumor, but the you need the correct order at the VCF stage for filtering.