Greetings,
I'm trying to pull out a region of a consensus using the recommended flow:
samtools mpileup -uf ref.fa aln.bam | bcftools view -cg - |
vcfutils.pl vcf2fq > cns.fq
When I limit this to a region in samtools mpileup, vcfutils will place Ns
from the first position in the chromosome to the position with data. Is
there a way to change that in the script so only positions with data (or in
a region) have reported values?
For example:
samtools mpileup -r NC_012312.1:5,474-7,015
-uf ref.fa aln.bam | bcftools view -cg - | vcfutils.pl vcf2fq > cns.fq
There will be 5474 Ns in the fastq file cns.fq prior to the first base with
data.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Samtools-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/samtools-help