Question: Mpileup Problem
0
gravatar for stolarek.ir
5.6 years ago by
stolarek.ir580
Poland
stolarek.ir580 wrote:

Hi.

I have a problem with my variant calling using samtools. I'm interested in vcf file with indels in my bam file.

I run the following command:

 samtools mpileup -Ruf genome.fa merged.bam | bcftools view -gc - > merged.vcf

This gives:

[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000

The output is only chrM and run ends with:

[bcf_sync] incorrect number of fields (6 != 5) at 0:11894

When I try hacking this and deleting chrM:

samtools mpileup -Ruf genome.fa merged.bam | grep -v "chrM"| bcftools view -gc - > merged.vcf

out info:

[afs] 0:0.000

The output contains only metadata (lines starting with #)

Does anyone know the solution for this?

I really want to avoid pileup parsing, since this is really a pain.

EDIT: Problem solved. Used mpileup -Buf

vcf samtools mpileup • 2.4k views
ADD COMMENTlink modified 5.1 years ago by Biostar ♦♦ 20 • written 5.6 years ago by stolarek.ir580
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1816 users visited in the last hour