Code Monkey home page Code Monkey logo

bigwig-nim's People

Contributors

brentp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bigwig-nim's Issues

bwtool

bwtool might be available on conda (if it's the same tool) - if you're interested.

https://anaconda.org/pwwang/bwtool

Thanks for your new contribution, we need tools to work on bigwig since it's an important quantitative and very fast track for genome browsers. Especially for RNA-seq, methylation (including from Oxford Nanopore - where your bed-> bigwig will be most useful) and ChIP-seq.

bigwig cli

  • bigwig view:
    • analog to samtools/bcftools view
    • defaults to bed(graph) output
    • -O b|w|z|g for bed/wig/beg.gz/bigwig
    • -o = /dev/stdout
    • -r/--region

proposed API

for comments / feedback.
see:

var bw: BigWig
bw.open(path, fmRead)

# avoid allocating when possible
var values: seq[float32]
bw.values(values, "chr1", 0, 2222)

for iv in bw.intervals("chr2", 999, 88888): # iterator.
    ## tuple[start: int, stop: int, value: float32]

# single value
var m = bw.stats("chr2", 999, 9999, stat=Stat.mean) 

# broken into 10 bins. Stat is an enum with mean, coverage, sum, std, etc.
var ameans = newSeq[float32](10)
# if start and stop are not given, defaults to entire chrom
bw.stats("chr2", start=999, stop=9999, ameans, stat=Stat.mean) 

once this simple reading interface is complete, I'll open another issue for writing and header manipulation, likely following this once reading is complete

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.