Hi,
Imagine that I have 20 bam files, which I want to change their header then merge them and then sort them! So I just wondering if these two scenarios make different output :
- reheader (each of them) -> merge all -> sort the output
- merge all -> reheader the output -> sort
All bam files have the same read group, and I want to add sample name to each RG field
@RG ID:1120
Thanks
What if my bam files are not sorted, what actually does samtools merge do then? because I've just run samtools merge with unsorted bam files.
many thanks!