JSPM

  • Created
  • Published
  • Downloads 307
  • Score
    100M100P100Q104781F

Component for reading of Caris XML Report

Package Exports

  • @carisls/xmlreport-reader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@carisls/xmlreport-reader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

XML Report Reader

NPM Version NPM Downloads Install Size CircleCI

The purpose of this component is reading of standard XML documents with genomics data created by Caris Life Sciences.

Usage

const xmlReader = require('@carisls/xmlreport-reader');

const { promises: fs } = require('fs');

(async() => {
  // Get XML file contents
  const fileContents = await fs.readFile(__dirname + '/myfile.xml', 'utf8');

  // Parse XML into Report
  const report = xmlReader(fileContents);

  // Prettify report JSON
  const reportString = JSON.stringify(report, null, 2);

  // Write to console
  console.log(reportString);

})()
  .catch((err) => {
    console.error(err);
  });

Supported elements

Only few elements are currently supported for extraction:

  • Cancer-Relevant Biomarkers
  • Genomic Signatures
  • Immunohistochemistry (IHC)
  • Human Leukocyte Antigen (HLA)
  • Available Clinical Trials
  • References (supporting treatments)