brentp / bigwig-nim Goto Github PK
View Code? Open in Web Editor NEWcommand-line querying+conversion of bigwigs and a nim wrapper for dpryan's libbigwig
License: MIT License
command-line querying+conversion of bigwigs and a nim wrapper for dpryan's libbigwig
License: MIT License
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.
mosdepth outputs 0 coverage intervals and these get added to the bigwig, but this affects the coverage
stat. need to look into this more.
and output BED format.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.