@jbrowse/plugin-wiggle
Version:
JBrowse 2 wiggle adapters, tracks, etc.
57 lines (56 loc) • 2.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = sharedWiggleConfigFactory;
const configuration_1 = require("@jbrowse/core/configuration");
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
const mobx_state_tree_1 = require("mobx-state-tree");
function sharedWiggleConfigFactory() {
return (0, configuration_1.ConfigurationSchema)('SharedWiggleDisplay', {
autoscale: {
type: 'stringEnum',
defaultValue: 'local',
model: mobx_state_tree_1.types.enumeration('Autoscale type', [
'global',
'local',
'globalsd',
'localsd',
'zscore',
]),
description: 'global/local using their min/max values or w/ standard deviations (globalsd/localsd)',
},
minimalTicks: {
type: 'boolean',
defaultValue: false,
description: 'use the minimal amount of ticks',
},
minScore: {
type: 'number',
defaultValue: Number.MIN_VALUE,
description: 'minimum value for the y-scale',
},
maxScore: {
type: 'number',
description: 'maximum value for the y-scale',
defaultValue: Number.MAX_VALUE,
},
numStdDev: {
type: 'number',
description: 'number of standard deviations to use for autoscale types globalsd or localsd',
defaultValue: 3,
},
scaleType: {
type: 'stringEnum',
model: mobx_state_tree_1.types.enumeration('Scale type', ['linear', 'log']),
description: 'The type of scale to use',
defaultValue: 'linear',
},
inverted: {
type: 'boolean',
description: 'draw upside down',
defaultValue: false,
},
}, {
baseConfiguration: plugin_linear_genome_view_1.baseLinearDisplayConfigSchema,
explicitlyTyped: true,
});
}