Hi,
I have a reference genome and reads from a cancer cell line aligned to that reference in a BAM and SAM file. I need to convert the BAM file into a FASTA file where the cancer consensus sequence is aligned to the reference genome so I can identify . Other threads on BioStars addressing this question explain how to generate FASTQ and FASTA files based off the BAM file, but don't explain how to align those sequences to the reference. Thanks so much in advance!