Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.02 KB

DEVELOPMENT.md

File metadata and controls

51 lines (42 loc) · 1.02 KB

If you are developing this plugin

git clone https://github.com/6br/jbrowse-plugin-hgb.git
cd jbrowse-plugin-hgb
yarn
yarn start

Then open JBrowse Web to (assuming it is running on port 3000):

http://localhost:3000/?config=http://localhost:9000/config38.json

If you want to use in @jbrowse/react-linear-genome-view

yarn add jbrowse-plugin-hgb

And then load statically via an import

import React from "react";
import "fontsource-roboto";
import {
  createViewState,
  createJBrowseTheme,
  JBrowseLinearGenomeView,
  ThemeProvider,
} from "@jbrowse/react-linear-genome-view";
import HGB from "jbrowse-plugin-hgb";

const theme = createJBrowseTheme();

function View() {
  const state = createViewState({
    assembly: {
      /* assembly */
    },
    tracks: [
      /* tracks */
    ],
    plugins: [HGB],
  });
  return (
    <ThemeProvider theme={theme}>
      <JBrowseLinearGenomeView viewState={state} />
    </ThemeProvider>
  );
}