Hi!
I tried to create a fastq consensus file out of my bam file generated with Mosaik (MosaikText). I used the Samtools pileup command, as followed:
$ samtools pileup -cf reference_genome.fa alignement.bam ! samtools.pl pileup2fq -D100 > consensus_sequence.fastq
I was expecting to get this :
@chrX
nnnnnnnatgtttgcctgtacacacacactgtaaannnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
agttctatgtcatgtactagtagggtactatatatnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
@chr1
nnnnnnnatgtttgcctgtacacacacactgtaaannnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
agttctatgtcatgtactagtagggtactatatatnnnnnnnnnnnnnnnnnn
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
@chr2 etc.
But I get this :
@chrX
nnngtnnnnnnctnnnnnnnannnnnnnnnnngnnnnnnncngnnnnnnnnan
nnnnnnnntgnnnnnnnnnnnnnnnnnnnnnnnnnnnnnannnnnnnnnnnnn
nannnnnnctnnnnnnnnnnnnngnnnnnnnnnnntnnnnnnnnnnnnnnnnn
@chr1
nnngtnnnnnnctnnnnnnnannnnnnnnnnngnnnnnnncngnnnnnnnnan
nnnnnnnntgnnnnnnnnnnnnnnnnnnnnnnnnnnnnnannnnnnnnnnnnn
nannnnnnctnnnnnnnnnnnnngnnnnnnnnnnntnnnnnnnnnnnnnnnnn
@chr2 etc.
I really don't know what happened! Any suggestions? Do somebody has maybe another solution to generate such a consensus file?
Thanks à lot! Lena
Generate the intermediate raw pileup file and see how it looks....based on that you can see the read coverage and then you can expect the consensus sequence.
can you show the the pileup file for the same to look in to it...