Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loompy

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loompy

This package provides a way to create [loompy](https://loompy.org/) files in Node.

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-76%
Maintainers
1
Weekly downloads
 
Created
Source

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)

argumenttypecomment
filenamestringPath of the file to create
matrixTypedArray[]Matrix of data, as an array of TypedArrays
rowAttrsObject<string:Array>Row attributes
colAttrsObject<string:Array>Column attributes

Example:

const loompy = require('loompy')


const filename = 'example.loom'

const matrix =
  Array(10).fill(0).map((_, i) =>
    new Float64Array(10).map((_, j) => j < 5 ? 1 : 2))

const row_attrs = { someTextAttributes: Array.from({ length: 10 }, (_, i) => `Element ${i * i * i}`) }
const col_attrs = { someDoubleAttributes: new Float64Array(10).map((_, i) => i) }

loompy.create(filename, matrix, row_attrs, col_attrs)

FAQs

Package last updated on 11 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc