0.2.0 • Published 1 month ago

ballc v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

BAllC

BAllC is a javascript API for reading and querying the BAllC files. The original C++ BAllC project is available here.

Installation

Requires Node

$ npm install ballc

Examples

import { BAllC } from "ballc";

//@para: filePath (object): {path: /path/to/ballc, url: https://path/to/ballc, ...}, path or url is required. 
//@para: chrRange (str): chr{chrName}:{start}-{end}

async function testBAllC(filePath, chrRange) {
    const testBallc = new BAllC(filePath);

    const mc_records = await testBallc.query(chrRange);
    const header = await testBallc.getHeader();
    
    return mc_records;
    // return header;
}

// local test
// const results = await queryBAllC(
//     { path: "/path/to/ballc" },
//     "chr1:0-1000000"
// );

//remote test
const results = await queryBAllC(
    { url: "https://wangftp.wustl.edu/~dli/ballc/ballc/HBA_200622_H1930001_A46_1_P2-1-F3-K1.ballc" },
    "chr1:0-1000000"
);
0.2.0

1 month ago

0.1.8

2 months ago

0.1.7

2 months ago

0.1.9

2 months ago

0.1.6

2 months ago

0.1.5

2 months ago

0.1.3

2 months ago

0.1.2

2 months ago

0.1.1

2 months ago

0.1.0

2 months ago

0.0.1

2 months ago