Closed jewon-yang closed 2 months ago
Hi, thanks for pointing out the error. I'll be looking into it and let you know what we found as soon as possible.
I looked into your error and I can't reproduce the error.
I've tested the example from the help that you've posted with your R version (4.3.2) and it works just fine.
Could you please try to setup a clean version of your environment and try to run the example again. If that does not help, then make sure that you have only packages relevant for BindingSiteFinder
installed. This helps to further isolate the error.
Hi, I found why the error happened during calculateBsBackground. It was a problem on my gns (gene annotation) object.
This was the function I used for making a gene annotation object. `create_gns_object <- function(file) { annoDb = GenomicFeatures::makeTxDbFromGFF(file = file, format = "gtf") annoInfo = rtracklayer::import(file, format = "gtf") gns = genes(annoDb) idx = match(gns$gene_id, annoInfo$gene_id) elementMetadata(gns) = cbind(elementMetadata(gns), elementMetadata(annoInfo)[idx,])
gns }`
Since my annotation file was a gtf format, I used a similar code but imported with format = gtf
Then, I had two columns of gene_id
, leading to an error in the downstream functions such as calculateBsBackground.
I fixed the problem with erasing one of the gene_id column. Then, the code worked perfectly fine after I fixed my annotation object.
Thanks for your help!
Perfect thanks for reporting this. We should include a specific error message for duplication of the gene_id column!
Hi, I am trying to use
calculateBsBackground()
function but getting an error:I've also tried with the example code provided in help page, but is still giving the same error. This is the code that I've used.
I'm not sure what the problem is. The codes work perfectly fine for finding binding sites. Can you help me debugging this error?
Maybe the error could be related to the version of packages I'm using. Here is my sessionInfo, and let me know if you need any other information for fixing this error.