0.0.4 • Published 6 years ago

unmappedcigarfragments v0.0.4

Weekly downloads
5
License
ISC
Repository
-
Last release
6 years ago

unMappedCIGARFragments

Usage

/// <reference path="./lib/lib" />
import {getReads,SAMRead} from "./lib/lib";

let start = 0;
let end = 10000;
getReads(
    "someSample.sam",
    start,
    end,
    (read : SAMRead,unMappedFragments : Array<string> | undefined) => {
        //Will be called once for each read who's aligned position begins between start and end inclusive, provided as read
        //unMappedFragments will hold all unmapped fragments in read (from left to right) identified by evaluating read's CIGAR string against it's query sequence
    }
).then((total : number) => {
    //total will be number of reads from 0-10,000 and total number of times callback was called
}).catch(() => {
    //Failed. Likely I/O error
});
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago