SvInspectorView
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Provided by the sv-inspector plugin. View source.
Shows a file of structural variants as a table beside a circular view that draws them as chords. The model holds a SpreadsheetView and a CircularView side by side, without extending either.
Example usage
{
type: 'SvInspectorView',
assembly: 'hg38',
uri: 'https://example.com/sv.vcf.gz',
fileType: 'VCF',
}Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
| Member | Description |
|---|---|
type"SvInspectorView" |
Always "SvInspectorView", the name a snapshot selects this model by. |
heightnumber · default 500 |
height of the whole view in pixels |
onlyDisplayRelevantRegionsInCircularViewboolean · default false |
draw only the chromosomes the visible rows touch |
spreadsheetWidthFractionnumber · default 0.66 |
share of the view's width given to the spreadsheet |
spreadsheetViewSpreadsheetView · default |
|
circularViewCircularView · default |
|
launchLaunchInput<SvInspectorViewCommands> | undefined |
transient launch keys, forwarded to the sheet on attach and cleared; author them directly on the view |
3 inherited properties from one model
From BaseViewModel: id, displayName, minimized
Volatiles
| Member | Description |
|---|---|
SpreadsheetViewReactComponentViewComponentType |
|
CircularViewReactComponentViewComponentType |
3 inherited volatiles from one model
From BaseViewModel: width, problems, bodyMounted
Getters
| Member | Description |
|---|---|
| pendingLaunch |
|
currentAssemblyAssembly | undefined |
|
assemblyNamestring | undefined |
|
showCircularViewboolean |
false while the sheet shows its import form |
showLoadingboolean |
both halves' loading state; the circle counts only while shown |
ownViews(SpreadsheetView | CircularView)[] |
an unshown circle never initializes, so it would read as loading forever |
featuresSimpleFeatureSerialized[] |
the records of the rows the sheet's filters leave |
allFeaturesSimpleFeatureSerialized[] |
every record of the sheet, which the chord track holds; filters narrow it through visibleChordIds rather than rebuilding the track |
visibleChordIdsstring[] | undefined |
undefined while no filter narrows the sheet |
canonicalFeatureRefNameSetSet<string> |
every canonical refName the visible features' chords end on, both ends included |
circularDisplayedRegionsBasicRegion[] | undefined |
the assembly's whole genome (Assembly.wholeGenomeRegions), or the regions any feature names when narrowed to those, which may include a contig the whole genome leaves out. Never narrowed to nothing, which would draw an empty circle |
effectiveSpreadsheetWidthFractionnumber |
|
subviewWidths{ spreadsheet: number; circular: number; } |
|
highlightedChordIdsstring[] | undefined |
the records of the selected record's event, which the circle keeps at full strength while it dims the rest |
variantTrackIdstring |
|
chordDisplay(DisplayModel & InspectorChordDisplay) | undefined |
the display drawing the sheet's rows as chords, once its track is open |
chordsColorBySvTypeboolean |
false while the chords color by something else, when the legend's swatches would name colors the circle does not draw |
drawnSvTypesSet<string> | undefined |
the SV classes a chord paints at this zoom, which leaves out a class whose records all end under a pixel apart; undefined until the chords have drawn |
| svTypeLegend |
the legend's rows, one per SV class in the sheet. count is the class's rows on screen, undefined for a class the type filter leaves out; swatch is undefined while the chords do not color by SV type, and hollow for a shown class the drawn circle has no chord of |
| featuresCircularTrackConfiguration |
3 inherited getters from one model
From BaseViewModel: rendersDisplays, effectiveBodyMounted, ownTracks
Methods
| Member | Description |
|---|---|
() => MenuItem[] |
the sheet's own items |
() => MenuItem[] |
the circular pane's own menu: the inspector's setting for it, then the circular view's items |
Actions
| Member | Description |
|---|---|
setHeight(newHeight: number) => number |
|
setOnlyDisplayRelevantRegionsInCircularView(val: boolean) => void |
|
resizeSpreadsheetWidth(distance: number) => void |
accumulates onto the fraction, not the rounded spreadsheetView.width, so the divider doesn't creep a pixel per drag frame |
setLaunch(launch?: LaunchInput<SvInspectorViewCommands>) => void |
|
resizeHeight(distance: number) => number |
5 inherited actions from one model
From BaseViewModel: addProblem, setDisplayName, setWidth, setBodyMounted, setMinimized
Related links
- Docs: URL query parameter API