Hello,
I'm using samtools with the following command to call the consensus of my mapping:
samtools mpileup -uf Ref SEQ | bcftools view -cg - | vcfutils.pl vcf2fq > SEQ.fq
The problem is that I have sequences that have 1 and some have 2 copies of a short repeat - the reference has 2. If I use the reference with 2 copies I end up with 2 copies in the consensus since it sometimes maps the reads to the first and sometimes to the second copy of the repeat. So I exchanged one copy in the reference with N's., but end up with A's instead of the gap in the consensus.
Example:
Ref AANNNTATTATTA
Read1 AA---TATTATTA
Read2 AA---TATTATTA
it calls AAAAATATTATTA instead of AATATTATTA.
I also get the following error if I use the reference with N's instead of the second copy (that I don't get if I use the reference with 2 copies):
Unknown command "vcf2fq".
I've had the same problem with the previous pileup function!
Any idea how to change that?
Cheers,
Stefan
I'm using samtools with the following command to call the consensus of my mapping:
samtools mpileup -uf Ref SEQ | bcftools view -cg - | vcfutils.pl vcf2fq > SEQ.fq
The problem is that I have sequences that have 1 and some have 2 copies of a short repeat - the reference has 2. If I use the reference with 2 copies I end up with 2 copies in the consensus since it sometimes maps the reads to the first and sometimes to the second copy of the repeat. So I exchanged one copy in the reference with N's., but end up with A's instead of the gap in the consensus.
Example:
Ref AANNNTATTATTA
Read1 AA---TATTATTA
Read2 AA---TATTATTA
it calls AAAAATATTATTA instead of AATATTATTA.
I also get the following error if I use the reference with N's instead of the second copy (that I don't get if I use the reference with 2 copies):
Unknown command "vcf2fq".
I've had the same problem with the previous pileup function!
Any idea how to change that?
Cheers,
Stefan
Comment