How can I find Variants position by GATK and Samtools
0
0
Entering edit mode
5.5 years ago
Mbillah ▴ 140

I am try to find out variants by GATK and Samtools. After generated vcf file by GATK and samtools I am trying to find out the variants difference by their position. But they could not find any match according to their position. That means GATK and Samtools variants position is not match. So what does GATK position means?

GATK:

#CHROM POS
NC_030808.1 38229
NC_030808.1 94732

NC_030808.1 94802

.................

.................

Samtools:

#CHROM POS

NC_030808.1 313
NC_030808.1 335
NC_030808.1 346
NC_030808.1 877
NC_030808.1 880
...............

...............

SNP samtools GATK • 1.4k views
ADD COMMENT
1
Entering edit mode

Since both outputs are a vcf file, the position means the same: the position on the chromosome where the variant is found. It just seems that samtools calls variants way earlier (telomeric) than GATK. Perhaps you should scroll a little further in the samtools file...

ADD REPLY
0
Entering edit mode

This is the problem, their is no variants in position 38229, 94732,.... in samtools produced file.

ADD REPLY
1
Entering edit mode

Please add the commands you used.

ADD REPLY
0
Entering edit mode

Samtools

samtools mpileup -g -f ref.fna out.sorted.bam > out.bcf

bcftools view -c -v out.bcf > out.vcf

GATK

java -jar /data/Softwares/GenomeAnalysisTK.jar -T HaplotypeCaller -R data/ref.fna -I realigned.bam -ploidy 1 -stand_call_conf 30 -stand_emit_conf 10 -o raw.vcf

ADD REPLY
1
Entering edit mode

Do you have a monoploid goat?

ADD REPLY
0
Entering edit mode

No, It's haploid goat

ADD REPLY
1
Entering edit mode

Hello,

your samtools/bcftools commands looks like you are using a very old version. Upgrade to the latest first before further investigation.

fin swimmer

ADD REPLY
1
Entering edit mode

samtools mpileup (well it's should be 'bcftools mpileup' now) should be followed by bcftools call not bcftools view

see http://www.htslib.org/workflow/

ADD REPLY

Login before adding your answer.

Traffic: 2010 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6