Hi, I tried it but it gave me an error like this:
Error in h(simpleError(msg, call)) : error in evaluating the argument 'i' in selecting a method for function '[': error in evaluating the argument 'X' in selecting a method for function 'sapply': this S4 class is not subsettable
I tried your xcov and it works, but my xcov is different, which is probably because I read it from a bam file. I just don't really understand the error and wonder if you could help me with it?