krona-viz-tool
v1.0.1
Published
Krona Visualization Tool
Downloads
10
Readme
Krona Visualization Tool
Description
krona-viz-tool
is a tool used to create Krona HTML file for Meta-Genome data visualization.
Get Started
- Install npm package
npm install krona-viz-tool
from command line. - Import package in file to get processed HTML string or write to file system.
var KronaGenerator = require('krona-viz-tool').KronaGenerator;
var KronaConvertor = require('krona-viz-tool').KronaConvertor;
// Specify the path of template and data file, otherwise use default.
var generator = new KronaGenerator(template, data);
// Get the content of generated HTML file.
var result = generator.generate();
// Write to given path, use default if not specified.
generator.writeSync(result_path);
- Run script from package to generate Krona HTML file, open
krona-viz-tool
directory insidenode_modules
folder and run script directly with commandnode index.js
using default template, data and result path, or use your own by adding parameters with commandnode index.js template_path data_path result_path
.