index.ts 354 Bytes
Newer Older
Remi  PLANEL's avatar
Remi PLANEL committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import GeneComponent from "./component/sequence/gene";
import { select, Selection } from "d3-selection";
const genes = [
    { name: "gene 1", length: 1000, strand: 1 },
    { name: "gene 2", length: 500, strand: -1 }
]

const geneComponent = GeneComponent();


const myGenes = select("g#genes");

myGenes.datum(genes).call(geneComponent, 1000, 5, 10);