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.
Example usage
{
type: 'SvInspectorView',
assembly: 'hg38',
uri: 'https://example.com/sv.vcf.gz',
fileType: 'VCF',
}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.
Each section ends with the members a composed model contributes, linked to the page that documents them.
Properties
| Member | Description |
|---|---|
idid: ElementId | |
typetype: types.literal('SvInspectorView') | |
heightheight: types.stripDefault(types.number, defaultHeight) | height of the whole view in pixels |
| onlyDisplayRelevantRegionsInCircularView | draw only the chromosomes the visible rows touch |
spreadsheetWidthFractionspreadsheetWidthFraction: types.stripDefault(types.number, 0.66) | share of the view's width given to the spreadsheet |
| spreadsheetView | |
| circularView | |
| launch | transient launch keys, forwarded to the sheet on attach and cleared; author them directly on the view |
2 inherited properties from one model
From BaseViewModel: displayName, minimized
Volatiles
| Member | Description |
|---|---|
SpreadsheetViewReactComponentViewComponentType | |
CircularViewReactComponentViewComponentType |
2 inherited volatiles from one model
From BaseViewModel: width, bodyMounted
Getters
| Member | Description |
|---|---|
| pendingLaunch | |
| currentAssembly | |
assemblyNamestring | undefined | |
showCircularViewboolean | false while the sheet shows its import form |
showLoadingboolean | both halves' loading state; the circle counts only while shown |
| ownViews | 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 land on, both ends included |
circularDisplayedRegionsBasicRegion[] | undefined | 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 | |
| featuresCircularTrackConfiguration |
3 inherited getters from one model
From BaseViewModel: rendersDisplays, effectiveBodyMounted, ownTracks
Methods
| Member | Description |
|---|---|
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 | |
resizeHeight(distance: number) => number |
4 inherited actions from one model
From BaseViewModel: setDisplayName, setWidth, setBodyMounted, setMinimized
Related links
- Docs: URL query parameter API