Question: strange output when trying to get consensus from a sorted bam file
0
gravatar for lait
2.8 years ago by
lait130
lait130 wrote:

I used the following command:

samtools mpileup -uf ref.fa aln.bam | bcftools call -c | vcfutils.pl vcf2fq > cns.fq

to create the consensus of a sorted bam file.

strange letters appear ar the end of the output file cns.fq:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~z~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~x~uuuxx~~~~~~a~~~~~~~}~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~{xxxxuuuuror~~~~~~~~~~~~~~~~~~~~~~x~~~~~~~~~~~~~rK?

This spans to a huge number of lines. is this normal ? What does this mean ?

Note: this questions was asked by me in a comment in another post: C: get a consensus out of a Sorted bam file

samtools bam ngs consensus • 819 views
ADD COMMENTlink modified 2.8 years ago • written 2.8 years ago by lait130

What version of samtools and bcftools do you have?

ADD REPLYlink written 2.8 years ago by Devon Ryan90k

both have version 1.3.1

ADD REPLYlink written 2.8 years ago by lait130

if I try htsbox , I get a file that contains just the letter X , like the following:

gi|556550243|ref|NC_022648.1|

nnnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX etc

can anyone figure out the problem please ?

ADD REPLYlink modified 2.8 years ago • written 2.8 years ago by lait130
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: 1248 users visited in the last hour