I am having difficulty in preparing the input files for this function. Given that I am starting with CRAM files, I convert to BAM and then to BED using samtools and bedtools. I then sort the bed files. I am having difficulty merging these bed files as the code and examples seem to suggest as I need to do. I was wondering if anyone has a solution to this (I have tried using cat to join them all and then using mergeBed, but I was told there was an out of order record with the start coordinate being outside of the region I specified [28999852 when specified the start coordinate as 29000000])
I am having difficulty in preparing the input files for this function. Given that I am starting with CRAM files, I convert to BAM and then to BED using samtools and bedtools. I then sort the bed files. I am having difficulty merging these bed files as the code and examples seem to suggest as I need to do. I was wondering if anyone has a solution to this (I have tried using cat to join them all and then using mergeBed, but I was told there was an out of order record with the start coordinate being outside of the region I specified [28999852 when specified the start coordinate as 29000000])