loompy
This package provides a way to create loompy files in Node.
Installation
This package depends on hdf5.node, you need to specify your libhdf5 location when installing for this dependency to compile correctly. Read their readme for more details.
Example:
npm install loompy --hdf5_home_linux=/usr/lib/x86_64-linux-gnu/hdf5/serial
API
loompy.create(filename, matrix, rowAttrs, colAttrs)
argument | type | comment |
---|---|---|
filename | string |
Path of the file to create |
matrix | TypedArray[] |
Matrix of data, as an array of TypedArrays |
rowAttrs | Object<string:Array> |
Row attributes |
colAttrs | Object<string:Array> |
Column attributes |
Example:
const loompy = const filename = 'example.loom' const matrix = Array10 const row_attrs = someTextAttributes: Array const col_attrs = someDoubleAttributes: 10 loompy