Hello,
I have used bwa
for alignment and platypus
for variant calling and filtered only SNPs
using bcftools
. I then merged the vcf files with only SNPs for some samples. But the merged file shows some odd positions with variants other than SNPs. Although individual vcf files does not show these calls. I used this code:
bwa mem ref.fa S_1.fastqS_2.fastq | samtools sort -o sorted.bam
samtools index sorted.bam
python Platypus.py callVariants --bamFiles=sorted.bam --refFile=ref.fa --output=1.vcf
bcftools view --types snps 1.vcf -o 2.vcf
bgzip -c 2.vcf > 2.vcf.gz
tabix -p vcf 2.vcf.gz
bcftools merge --file-list list.txt -O v -o merge.vcf
I have pasted one weird call from the merged file:
Chr POS ID REF ALT 1 2 3
ch1 1470 . CGCTCC TGCTCC,TACTCC,TGCTCA TGCTCC NA TGCTCC
Hello evelyn ,
what's the content of
list.txt
? Also your output example doesn't look like a valid vcf file. I'm missing theQUAL
,FILTER
,INFO
andFORMAT
columns.fin swimmer
Hello @finswimmer,
list.txt
contains list of vcf.gz samples to be merged. In order to show the problem only, I mistakenly broke the format. And I have more samples, I am just showing three here including the problem.