Skip to main content

SvgFeatureRenderer

Note: this document is automatically generated from configuration objects in our source code. See Config guide for more info

Also note: this document represents the config API for the current released version of jbrowse. If you are not using the current version, please cross reference the markdown files in our repo of the checked out git tag

Source code

GitHub page

Docs

SvgFeatureRenderer - Slots

slot: color1

color1: {
type: 'color',
description: 'the main color of each feature',
defaultValue: 'goldenrod',
contextVariable: ['feature'],
}

slot: color2

color2: {
type: 'color',
description:
'the secondary color of each feature, used for connecting lines, etc',
defaultValue: '#f0f',
contextVariable: ['feature'],
}

slot: color3

color3: {
type: 'color',
description:
'the tertiary color of each feature, often used for contrasting fills, like on UTRs',
defaultValue: '#357089',
contextVariable: ['feature'],
}

slot: outline

outline: {
type: 'color',
description: 'the outline for features',
defaultValue: '',
contextVariable: ['feature'],
}

slot: height

height: {
type: 'number',
description: 'height in pixels of the main body of each feature',
defaultValue: 10,
contextVariable: ['feature'],
}

slot: showLabels

showLabels: {
type: 'boolean',
defaultValue: true,
}

slot: showDescriptions

showDescriptions: {
type: 'boolean',
defaultValue: true,
}

slot: labels.name

name: {
type: 'string',
description:
'the primary name of the feature to show, if space is available',
defaultValue: `jexl:get(feature,'name') || get(feature,'id')`,
contextVariable: ['feature'],
}

slot: labels.nameColor

nameColor: {
type: 'color',
description: 'the color of the name label, if shown',
defaultValue: '#f0f',
contextVariable: ['feature'],
}

slot: labels.description

description: {
type: 'string',
description: 'the text description to show, if space is available',
defaultValue: `jexl:get(feature,'note') || get(feature,'description')`,
contextVariable: ['feature'],
}

slot: labels.descriptionColor

descriptionColor: {
type: 'color',
description: 'the color of the description, if shown',
defaultValue: 'blue',
contextVariable: ['feature'],
}

slot: labels.fontSize

fontSize: {
type: 'number',
description:
'height in pixels of the text to use for names and descriptions',
defaultValue: 12,
contextVariable: ['feature'],
}

slot: displayMode

displayMode: {
type: 'stringEnum',
model: types.enumeration('displayMode', [
'normal',
'compact',
'reducedRepresentation',
'collapse',
]),
description: 'Alternative display modes',
defaultValue: 'normal',
}

slot: maxFeatureGlyphExpansion

maxFeatureGlyphExpansion: {
type: 'number',
description:
"maximum number of pixels on each side of a feature's bounding coordinates that a glyph is allowed to use",
defaultValue: 500,
}

slot: maxHeight

maxHeight: {
type: 'integer',
description: 'the maximum height to be used in a svg rendering',
defaultValue: 1200,
}

slot: subParts

subParts: {
type: 'string',
description: 'subparts for a glyph',
defaultValue: 'CDS,UTR,five_prime_UTR,three_prime_UTR',
}

slot: impliedUTRs

impliedUTRs: {
type: 'boolean',
description: 'imply UTR from the exon and CDS differences',
defaultValue: false,
}

slot: transcriptTypes

transcriptTypes: {
type: 'stringArray',
defaultValue: ['mRNA', 'transcript', 'primary_transcript'],
}

slot: containerTypes

containerTypes: {
type: 'stringArray',
defaultValue: ['proteoform_orf'],
}