UNPKG

generic-sequence-panel

Version:

read feature and sequence data and produce highlighted fasta

48 lines (47 loc) 2.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const mobx_react_1 = require("mobx-react"); const Selector = (0, mobx_react_1.observer)(function ({ model, }) { const { intronBp, upDownBp, mode, hasCDS, hasExonOrCDS } = model; return ((0, jsx_runtime_1.jsxs)("span", { children: ["Mode:", " ", (0, jsx_runtime_1.jsx)("select", { value: mode, onChange: event => { model.setMode(event.target.value); }, children: Object.entries(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (hasCDS ? { cds: "CDS", } : {})), (hasCDS ? { protein: "Protein", } : {})), (hasExonOrCDS ? { cdna: "cDNA", } : {})), (hasExonOrCDS ? { gene: "Genomic w/ full introns", } : {})), (hasExonOrCDS ? { gene_updownstream: `Genomic w/ full introns +/- ${upDownBp}bp up+down stream`, } : {})), (hasExonOrCDS ? { gene_collapsed_intron: `Genomic w/ ${intronBp}bp intron`, } : {})), (hasExonOrCDS ? { gene_updownstream_collapsed_intron: `Genomic w/ ${intronBp}bp intron +/- ${upDownBp}bp up+down stream `, } : {})), (!hasExonOrCDS ? { genomic: "Genomic", } : {})), (!hasExonOrCDS ? { genomic_sequence_updownstream: `Genomic +/- ${upDownBp}bp up+down stream`, } : {}))).map(([key, val]) => ((0, jsx_runtime_1.jsx)("option", { value: key, children: val }, key))) })] })); }); exports.default = Selector;