Cram-JS: reference-based decompression in node and the browser
- PMID: 31099383
- PMCID: PMC6821367
- DOI: 10.1093/bioinformatics/btz384
Cram-JS: reference-based decompression in node and the browser
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.
© The Author(s) 2019. Published by Oxford University Press. All rights reserved. For permissions, please e-mail: journals.permissions@oup.com.
Figures
Similar articles
-
igv.js: an embeddable JavaScript implementation of the Integrative Genomics Viewer (IGV).Bioinformatics. 2023 Jan 1;39(1):btac830. doi: 10.1093/bioinformatics/btac830. Bioinformatics. 2023. PMID: 36562559 Free PMC article.
-
JBrowseR: an R interface to the JBrowse 2 genome browser.Bioinformatics. 2021 Nov 5;37(21):3914-3915. doi: 10.1093/bioinformatics/btab459. Bioinformatics. 2021. PMID: 34196689 Free PMC article.
-
pileup.js: a JavaScript library for interactive and in-browser visualization of genomic data.Bioinformatics. 2016 Aug 1;32(15):2378-9. doi: 10.1093/bioinformatics/btw167. Epub 2016 Mar 29. Bioinformatics. 2016. PMID: 27153605 Free PMC article.
-
CRAMER: a lightweight, highly customizable web-based genome browser supporting multiple visualization instances.Bioinformatics. 2020 Jun 1;36(11):3556-3557. doi: 10.1093/bioinformatics/btaa146. Bioinformatics. 2020. PMID: 32108858
-
Alview: Portable Software for Viewing Sequence Reads in BAM Formatted Files.Cancer Inform. 2015 Sep 13;14:105-7. doi: 10.4137/CIN.S26470. eCollection 2015. Cancer Inform. 2015. PMID: 26417198 Free PMC article. Review.
Cited by
-
WormBase: a modern Model Organism Information Resource.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
-
- Greenfield D.L. et al. (2016) GeneCodeq: quality score compression and improved genotyping using a Bayesian framework. Bioinformatics, 32, 3124–3132. - PubMed
