Skip to content

How to use convert_heatmaps.js converting Heatmap Data

nanli-emory edited this page Nov 12, 2019 · 12 revisions

convert_heatmaps.js is a Node.js tool, which is designed to convert Quip2.0's heatmap to Quip3.0's heatmap.

How to use it?

prerequisite: Node.js -- How to install Node.js
step 1: Download convert_heatmaps.js.
step 2: Create a new folder with two subfolders(input and output).
step 3: Put Quip2.0's heatmap JSON files into ./input folder.
step 4: Open command-line/terminal. go to the new folder that you created. run node convert_heatmaps.js.

File Structure:

.
├ input # Quip2.0's heatmap JSON files
├ output # convert result - quip3.0's heatmap JSON files
└ covert_heatmap.js # converter program

CAUTION

For converting the numerous heatmap JSON files, increasing the memory limit use command --max-old-space-size= 4096 (increase to 4GB). It can avoid the memory limit issue - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.