Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.03 KB

DEVELOPMENT.md

File metadata and controls

51 lines (42 loc) · 1.03 KB

If you are developing this plugin

git clone https://github.com/cmdcolin/jbrowse-plugin-gwas.git
cd jbrowse-plugin-gwas
yarn
yarn start

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

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

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

yarn add jbrowse-plugin-gwas

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 GWAS from "jbrowse-plugin-gwas";

const theme = createJBrowseTheme();

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