jianhong / ATACseqQC

ATAC-seq Quality Control

Home Page:https://jianhong.github.io/ATACseqQC/articles/ATACseqQC.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on running splitBam

hchetia opened this issue · comments

While running the command
objs <- splitBam(bamfile, tags=tags, outPath=outPath,
txs=txs, genome=genome,
conservation=phastCons100way.UCSC.hg38)
I get the following error-
Error in asMethod(object) :
cannot coerce a non-logical 'Rle' or a logical 'Rle' with NAs to an IRanges object

Thank you for reporting this. Could you share a subset of your data for me to debug?

Hi Jian,
Pls let me know which file format would you like me to share?

It will be great if you can share the mimimal size of bamfile which can repeat the error.
Thank you.

Please see attachment

sample.bam.zip

Thank you for sharing. However, I can not index the file. It report error: is not a BAM file.

Shall I share index and bam?

Hi Jian, check out if this works.

Archive.zip

I found the bug. It is caused by not enough nucleosome free reads for training. So please try without conservation score.

Hi Jian,
DO you think the bug you found was actually because I shared only a snippet of my whole dataset?

Meanwhile, I will try without conservation score.

Hi Jian,
How many nucleosome free reads are typically required for generating a conservations score?

typically it should be more than 15% of your total reads.