I have a folder with around 300
.bam files. Each
.bam file is a lane of a sample and hence 4 lanes make a sample. I would like to merge the .bam files of the four lanes in a single one by
_*S*_ where S is followed by a number that represent the number of the sample (e.g.
Suppose I have 75 samples, i.e.
Can anyone help me please?
The line I use to merge normally is the following:
samtools merge S1_merged.bam *bam
Thank you in advance