shaojun sun
10/13/2025, 4:02 PMnextflow run nf-core/sarek -r 3.5.1 for WES variant calling from my raw FASTQ datasets, do I need to include the parameter --wes TRUE? Thanks!Rike Hanssen
10/13/2025, 5:17 PM--wes should be enough. And yes if you want tools to use wes specific flagsshaojun sun
10/13/2025, 6:28 PMThomas Danhorn
10/13/2025, 11:22 PM--intervals to a (padded) BED file with your target exons (provided by the manufacturer of the WES kit). To avoid errors, I strip any header lines and keep only the first 3 columns.shaojun sun
10/17/2025, 4:33 PM--intervals parameter? Thank you!Rike Hanssen
10/17/2025, 4:47 PM--intervals wes.bed reads that fall outside of the regions are disregarded. If you want to make sure that reads on the edges are not removed, it's recommended to pad the bed file with some bases left and right. bedtools offers tooling for this:
# sort coordinates
sort -V -k1,1 -k2,2 $1 > ${1/.bed/.sorted.bed}
# GATK recommends padding by 100bp: https://gatk.broadinstitute.org/hc/en-us/articles/360035889551-When-should-I-restrict-my-analysis-to-specific-intervals- --> Adjust this for your readlength
bedtools slop -i ${1/.bed/.sorted.bed} -b 100 -g <genome>.fasta.fai > ${1/.bed/.sorted.padded.bed}
# Merge overlapping or neighboring regions
bedtools merge -i ${1/.bed/.sorted.padded.bed} > ${1/.bed/.sorted.padded.merged.bed}Thomas Danhorn
10/17/2025, 4:55 PM