GithubHelp home page GithubHelp logo

Comments (6)

dpryan79 avatar dpryan79 commented on June 26, 2024

I don't have any specific merge functions in libBigWig, you would iterate over the intervals in two or more files and merge them as you go.

from libbigwig.

romgrk avatar romgrk commented on June 26, 2024

So overall, I'd need to get the list of chroms for both files, merge them, iterate all intervals with bwOverlappingIntervalsIterator, and merge those intervals? And how would I merge those intervals?

Sorry for bothering, I'm a noob in regards to genomics data so I'm not even sure what those intervals represent :/

from libbigwig.

cmdcolin avatar cmdcolin commented on June 26, 2024

You might look into https://github.com/Ensembl/WiggleTools

from libbigwig.

romgrk avatar romgrk commented on June 26, 2024

Thanks @cmdcolin! But I went a different way, I forked kent tools and re-used the code of bigWigMerge to create bigWigMergePlus: a tool to directly merge bigWig files into another bigWig. It contains also a few more features that were needed in the case of our project, such as outputting the standard deviation. Release is here: https://github.com/c3g/kent/releases/tag/bigWigMergePlus_2.0.0

from libbigwig.

nsheff avatar nsheff commented on June 26, 2024

FYI I think this is also basically what bigWigCat does

https://github.com/ENCODE-DCC/kentUtils/tree/master/src/utils/bigWigCat

from libbigwig.

dpryan79 avatar dpryan79 commented on June 26, 2024

I think bigWigCat is meant for when the intervals in the files don't overlap. I'd suggest sticking to wiggletools, which uses this library.

from libbigwig.

Related Issues (20)

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.