I have mapped illumina reads to a reference fasta. I can visualize the map using the tview tool of samtools or CLC genomics. I already have the bam file of the mapping and it is sorted as well. I also have the mpileup file. Is there a way to get the "assembled" reads in a fasta format? For example if my reference and the mapping looks like this
ref ATGCATGC
...A
..A...
A....
...
and position 4 is recognized as a SNP. Can I get a fasta that looks like this:
>result
ATGAATGC
Also will it take gaps into account? Thanks
Why do you want to do this? What analyses would you use this for? Going from SNVs to FASTA requires some assumptions that could bias subsequent analyses.
I wanted to BLAST MLST genes to the consensus sequence. Do you think its better to map my reads to the sequence of the MLST genes?
@Juliofdiaz Did you find the solution? I have a similar problem posted here.