Hi all,
I have bins representing MAGs. I am now interested in partitioning the reads in my BAM files by MAG. The way I believe this should work is to try and map every read onto the MAG, asses whether it maps or not, and then if it does add a tag to it.
What would be the best way to do this while staying in the BAM format? My goal is to use other tools that will use this partition tag later.