Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2019 Nov 1;35(21):4451-4452.
doi: 10.1093/bioinformatics/btz384.

Cram-JS: reference-based decompression in node and the browser

Affiliations

Cram-JS: reference-based decompression in node and the browser

Robert Buels et al. Bioinformatics. .

Abstract

Motivation: The CRAM format addresses rising DNA storage costs for short-read sequencing by aligning reads to a reference genome and encoding the resulting alignment with Huffman, subexponential, Elias gamma, rANS, gzip and other codes. The CRAM codec is complex, and until now, there has been no JavaScript implementation.

Results: We have developed a JavaScript library, Cram-JS, that natively reads and decompresses the CRAM format on-the-fly. The library is used in the JBrowse and IGV-JS genome browsers and can readily be used by other JavaScript applications, in the web browser or in Node.

Availability and implementation: Cram-JS is written to the ES-6 standard and is available from the GitHub repository at https://github.com/GMOD/cram-js.

PubMed Disclaimer

Figures

Fig. 1.
Fig. 1.
Each graph depicts the runtimes for the corresponding datasets under different interval lengths. Human Low Coverage and Human Exome refer to the NA12878 Low Coverage WGS and Exome alignments, respectively. The error bars depict variability in runtime due to randomly selected intervals having variable depth of coverage

Similar articles

Cited by

  • WormBase: a modern Model Organism Information Resource.
    Harris TW, Arnaboldi V, Cain S, Chan J, Chen WJ, Cho J, Davis P, Gao S, Grove CA, Kishore R, Lee RYN, Muller HM, Nakamura C, Nuin P, Paulini M, Raciti D, Rodgers FH, Russell M, Schindelman G, Auken KV, Wang Q, Williams G, Wright AJ, Yook K, Howe KL, Schedl T, Stein L, Sternberg PW. Harris TW, et al. Nucleic Acids Res. 2020 Jan 8;48(D1):D762-D767. doi: 10.1093/nar/gkz920. Nucleic Acids Res. 2020. PMID: 31642470 Free PMC article.

References

    1. Bonfield J.K. (2014) The scramble conversion tool. Bioinformatics, 30, 2818–2819. - PMC - PubMed
    1. Bonfield J.K. et al. (2018) Crumble: reference free Lossy compression of sequence quality values. Bioinformatics., 35, 337–339. - PMC - PubMed
    1. Buels R. et al. (2016) JBrowse: a dynamic web platform for genome visualization and analysis. Genome Biol., 17, 66. - PMC - PubMed
    1. Down T.A. et al. (2011) Dalliance: interactive genome viewing on the web. Bioinformatics, 27, 889–890. - PMC - PubMed
    1. Greenfield D.L. et al. (2016) GeneCodeq: quality score compression and improved genotyping using a Bayesian framework. Bioinformatics, 32, 3124–3132. - PubMed

Publication types