Git Product home page Git Product logo

Comments (4)

MirkoBr avatar MirkoBr commented on August 22, 2024

Hi,
thanks for pointing out the error. I'll be looking into it and let you know what we found as soon as possible.

from bindingsitefinder.

MirkoBr avatar MirkoBr commented on August 22, 2024

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.

from bindingsitefinder.

jewon-yang avatar jewon-yang commented on August 22, 2024

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.
Screenshot 2024-04-09 at 15 50 32

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!

from bindingsitefinder.

MelinaKlostermann avatar MelinaKlostermann commented on August 22, 2024

Perfect thanks for reporting this. We should include a specific error message for duplication of the gene_id column!

from bindingsitefinder.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.