@carisls/xmlreport-reader v0.9.3
XML Report Reader
The purpose of this component is reading of standard XML documents with genomics data created by Caris Life Sciences.
It can be used from inside Node.js application API or as an executable CLI.
Installation
npm i @carisls/xmlreport-readerIf you want to use it globally (not only inside application folder) you can
install it with -g flag.
npm i -g @carisls/xmlreport-readerAPI Usage
const xmlReader = require('@carisls/xmlreport-reader');
const { promises: fs } = require('fs');
(async() => {
// Get XML file contents
const fileContents = await fs.readFile('./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);
});CLI Usage
This component can be run as a CLI, too (outside an application).
xmlreport file.xmlIf you want to print its output into some file, you can execute
xmlreport file.xml > output.jsonSupported 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)
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago