I have two WGBS unaligned bam files (fastq files stored as unaligned bam). I am wondering can I merge those files? Does
samtools merge works for unaligned bams?
What is wrong with samtools cat?
merge combines data while respecting sort order, but as you do not have any you can simply concatenate them with samtools cat.