@jbrowse/plugin-wiggle
Version:
JBrowse 2 wiggle adapters, tracks, etc.
46 lines (45 loc) • 1.35 kB
JavaScript
import { ConfigurationSchema } from '@jbrowse/core/configuration';
import { types } from 'mobx-state-tree';
function x() { }
const WiggleRenderer = ConfigurationSchema('WiggleRenderer', {
color: {
type: 'color',
description: 'the color of track, overrides posColor and negColor',
defaultValue: '#f0f',
contextVariable: ['feature'],
},
posColor: {
type: 'color',
description: 'the color to use when the score is positive',
defaultValue: 'blue',
contextVariable: ['feature'],
},
negColor: {
type: 'color',
description: 'the color to use when the score is negative',
defaultValue: 'red',
contextVariable: ['feature'],
},
clipColor: {
type: 'color',
description: 'the color of the clipping marker',
defaultValue: 'red',
},
bicolorPivot: {
type: 'stringEnum',
model: types.enumeration('Scale type', [
'numeric',
'mean',
'z_score',
'none',
]),
description: 'type of bicolor pivot',
defaultValue: 'numeric',
},
bicolorPivotValue: {
type: 'number',
defaultValue: 0,
description: 'value to use for bicolor pivot',
},
}, { explicitlyTyped: true });
export default WiggleRenderer;