Socket
Socket
Sign inDemoInstall

higlass-register

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

higlass-register

HiGlass helper tool for registering pluggable tracks


Version published
Weekly downloads
425
increased by3.16%
Maintainers
1
Weekly downloads
 
Created
Source

HiGlass Register

Pluggable Track Register Tool for HiGlass

HiGlass Build Status

If you develop pluggable tracks for HiGlass please use this simple tool to register your tracks.

Note, higlass-register is nothing more than an agreed way of exposing plugins to HiGlass. You could circumvent higlass-register but then you'll have to take of staying up to date with the plugin registration process yourself.

Installation

npm install --save-dev higlass-register

Usage: plugin tracks

To register your track as a plugin

import register from 'higlass-register';

import MyFancyNewHiGlassTrack from './MyFancyNewHiGlassTrack';

register(
  {
    track: MyFancyNewHiGlassTrack,
    config: MyFancyNewHiGlassTrack.config,
  },
  {
    // Set to `true` if you want to override previously registered track that
    // define the same track type.
    force: false 
  }
);

Take a look at HiGlass GeoJSON Track for how to write a pluggable track.

Usage: plugin data fetchers

To register your data fetcher as a plugin

import register from 'higlass-register';

import MyFancyNewHiGlassDataFetcher from './MyFancyNewHiGlassDataFetcher';

register(
  {
    dataFetcher: MyFancyNewHiGlassDataFetcher,
    config: MyFancyNewHiGlassDataFetcher.config,
  },
  {
    // The default pluginType is 'track', so specify 'dataFetcher' here.
    pluginType: 'dataFetcher',
    // Set to `true` if you want to override previously registered data fetcher that
    // define the same data fetcher type.
    force: false 
  }
);

Keywords

FAQs

Package last updated on 10 Aug 2020

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