Hi all :wave: I'm running joint variant calling on...
# sarek
k
Hi all đź‘‹ I'm running joint variant calling on WGS data using
GATK4_GENOTYPEGVCFS
in Sarek (v3.5.1), and I’m seeing very long runtimes for some intervals. Out of 21 total chunks, 3 have been running for more than 5 days, each with 60 GB memory and 4 CPUs. This is part of a proof of concept with ~200 samples from the 1000 Genomes Project. I'm running on an HPC cluster without internet access, using Nextflow in offline mode with pre-downloaded Singularity images. For context, • the preceding GenomicsDBImport step completed successfully for all intervals, most of them in under one day. • When testing with just 10 samples, the
GenotypeGVCFs
step completed successfully in under 2 hours. So far, only
GenotypeGVCFs
shows this extreme variability in runtime. Has anyone experienced similar issues with
GenotypeGVCFs
on large WGS cohorts? Any suggestions for optimizing runtime or scatter settings in this context? (Find my Sarek call below) Thanks in advance!
Copy code
#!/bin/bash
#SBATCH --job-name=run_sarek_sbatch
#SBATCH --cpus-per-task=4
#SBATCH --mem=20G
#SBATCH --time=160:00:00
#SBATCH --output=logs/sarek_%j.out
#SBATCH --error=logs/sarek_%j.err

export JAVA_HOME=path_to/java/17.0.6
export PATH=$JAVA_HOME/bin:$PATH
export NXF_OFFLINE='TRUE'
export NXF_DISABLE_CHECK_LATEST=true
export NXF_SINGULARITY_CACHEDIR=path_to/nf-core-sarek_3.5.1/singularity-images
export NXF_HOME=path_to/nextflow_home/.nextflow
export NXF_OPTS='-Xmx10g'
export JAVA_TOOL_OPTIONS="-Xmx7g -XX:CompressedClassSpaceSize=512m"  


BASE_DIR="path"
SAMPLESHEET="path_to/recalibrated.csv" 
OUT_DIR="${BASE_DIR}/results/sarek"

mkdir -p $OUT_DIR
mkdir -p $OUT_DIR/logs

nextflow-25.04.6-dist run \
nf-core-sarek_3.5.1/3_5_1 \
-c "${BASE_DIR}/config/nextflow.config" \
-profile singularity \
-resume \
-with-dag "${BASE_DIR}/results/sarek/sarek_run_dag.mmd" \
-disable-jobs-cancellation \
--genome "GATK.GRCh38" \
--igenomes_base "path_to/resources/" \
--vep_cache "/path_to/VEP/" \
--vep_species "homo_sapiens" \
--vep_cache_version 112 \
--input ${SAMPLESHEET} \
--outdir ${OUT_DIR} \
--tools haplotypecaller,vep \
--joint_germline \
--step variant_calling
a
Where is your GenomicsDB physically located during the
genotypeGVCFs
step? This process is very I/O intense, so if you are not staging the database node-local, you will have severe performance bottlenecks with so many samples.
k
This might explain it, the GenomicsDB is in the work directory on the HPC not on the node itself. Is there an option in sarek to stage it on the node?
a
I had the
scratch
directive with a node-local storage in mind, but as far as I know, this will also just stage in the database by symlink. You problably need to use it in combination with
stageInMode copy
.