An open API service indexing awesome lists of open source software.

https://github.com/pbenner/jigwig

Java BigWig Reader
https://github.com/pbenner/jigwig

bigwig bigwig-files bioinformatics java java-library

Last synced: 3 months ago
JSON representation

Java BigWig Reader

Awesome Lists containing this project

README

        

Library for reading BigWig files (ported from [Gonetics](https://github.com/pbenner/gonetics)).

## Basic Usage

```java
Path path = Paths.get("test.bw");
SeekableByteChannel rbc = Files.newByteChannel(path, EnumSet.of(StandardOpenOption.READ));
BigWigFile bwf = new BigWigFile(rbc);

BigWigFileIterator it = bwf.query("chr11|chr12", 112643206, 112658727, 0);

while (it.hasNext()) {
BigWigFileIteratorType r = it.next();
BigWigSummaryRecord s = r.getSummary();
System.out.printf("chrom: %s\n", s.getChromName());
System.out.printf("from : %d\n", s.getFrom());
System.out.printf("to : %d\n", s.getTo());
System.out.printf("value: %f\n", s.getMean());
System.out.println();
}
```