A comprehensive workflow for variant calling from raw FASTQ files using GATK (or SAMtools) methodologies, aligned to the hg38 reference genome.
- Reference genome preparation
- Read alignment with BWA-MEM
- Quality control with FastQC
- Duplicate removal with Picard
- Variant calling with:
- GATK HaplotypeCaller
- SAMtools
- Variant filtering and annotation
- bwa (v0.7.17+)
- bcftools (v1.15+)
- FastQC (v0.11.9+)
- Picard (v2.27+)
- GATK (v4.3.0.0+)
- samtools (v1.15+)
- SnpEff/SnpSift (v5.1+)
- hg38 reference genome (download from UCSC)
- Corresponding BWA index files
- Known variants databases (for BQSR if needed)
- sorted_SRR14634773.bam → Sorted BAM file
- rmdup_SRR14634773.bam → Deduplicated BAM file
- picard_output.bam → Final BAM with read groups
- GATK_variation_calling.vcf → Variants called with GATK
- bcftools_variation_output.vcf → Variants called with SAMtools/bcftools
- snpSift_output.vcf / bcftools_snpSift_output.vcf → Filtered variants
- Use GATK HaplotypeCaller for germline variant calling.
- Use GATK Mutect2 (not shown here) for somatic variant calling.
- Adjust filtering thresholds (QUAL, DP, MQ) based on your dataset.
# Clone this repository
git clone https://github.com/yourusername/DNAseq-for-variant-analysis.git
cd DNAseq-for-variant-analysis
# Download reference genome (example)
wget https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz
gunzip hg38.fa.gz
bwa index hg38.fa