Can the input file name be the same as the output file in `samtools sort`?
I am confusing what is happening if the input file name is the same as the output file in
samtools sort -n file1.bam -o file1.bam
This command can run successfully, but is it correct?
Thanks a lot