Entering edit mode
7 months ago
me
•
0
Hi, I wonder how the samtools consensus work without explicitly pointing out the reference genome. If I intend to add a reference genome to generate the consensus sequence, is it possible based on samtools? Thanks a lot.
Reference: https://www.htslib.org/doc/samtools-consensus.html
Hi, yes, my cram files cover the whole genome, which is actually individual genome information. I wonder how to adjust the base genome. Thanks.
You aligned your data, that is your reference genome to compare against. If you want to change reference then realign.
Hi, thanks for your information. I am a bit confused now. Does this mean the cram file already contained reference genome information? I intend to generate a new fasta file based on the cram file, so that means I only need to consider the consensu sequence. Is it correct? Thanks.
If you are looking to make changes to the reference you used for alignment then look into https://gatk.broadinstitute.org/hc/en-us/articles/360037594571-FastaAlternateReferenceMaker