wuepgg3-track 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CanvasPool-BD4ZA6VU.mjs +46 -0
- package/dist/SharedSystems-BNa57PRW.mjs +2521 -0
- package/dist/WebGLRenderer-DWCYIsx2.mjs +2624 -0
- package/dist/WebGPURenderer-BxRqKjyD.mjs +1613 -0
- package/dist/browserAll-CQks4WgI.mjs +2134 -0
- package/dist/colorToUniform-BcHZBaJ_.mjs +218 -0
- package/dist/components/GenomeView/GenomeRoot.d.ts +5 -0
- package/dist/components/GenomeView/ToolComponents/HighlightMenu.d.ts +20 -0
- package/dist/components/GenomeView/ToolComponents/MetadataHeader.d.ts +9 -0
- package/dist/components/GenomeView/ToolComponents/MetadataSelectionMenu.d.ts +10 -0
- package/dist/components/GenomeView/ToolComponents/Tools.d.ts +32 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/ArrowList.d.ts +9 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/BigwigSource.d.ts +7 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/CategoryLegend.d.ts +7 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/ColorPicker.d.ts +12 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/FrameListMenu.d.ts +6 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/HoverInfo.d.ts +20 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/Legend.d.ts +6 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/ModelListMenu.d.ts +7 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/OpacityThickness.d.ts +4 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/ResolutionList.d.ts +8 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/ShapeList.d.ts +10 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/StaticLegend.d.ts +6 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/ThreedmolContainer.d.ts +261 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/binning.d.ts +36 -0
- package/dist/components/GenomeView/TrackComponents/3dmol/helpers-3dmol.d.ts +68 -0
- package/dist/components/GenomeView/TrackComponents/BamComponents/BamAnnotation.d.ts +45 -0
- package/dist/components/GenomeView/TrackComponents/CategoricalComponents/CategoricalAnnotation.d.ts +48 -0
- package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/cacheFetchedData.d.ts +23 -0
- package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/getDataAfterConfigChange.d.ts +11 -0
- package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/getTrackPixelXOffset.d.ts +3 -0
- package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/trackGlobalState.d.ts +6 -0
- package/dist/components/GenomeView/TrackComponents/DynseqComponents/DynseqTrackComponents.d.ts +80 -0
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/AlignmentCoordinate.d.ts +19 -0
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/GenomeAlignComponents.d.ts +45 -0
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/HorizontalFragment.d.ts +20 -0
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/MultiAlignmentViewCalculator.d.ts +112 -0
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/Sequence.d.ts +39 -0
- package/dist/components/GenomeView/TrackComponents/GroupedTrackManager.d.ts +54 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/ArcDisplay.d.ts +37 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/CubicCurveDisplay.d.ts +22 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/Heatmap.d.ts +40 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/InteractionTrackComponent.d.ts +74 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/PixiArc.d.ts +60 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/PixiHeatmap.d.ts +78 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/SquareDisplay.d.ts +32 -0
- package/dist/components/GenomeView/TrackComponents/MethylcComponents/MethylCTrackComputation.d.ts +71 -0
- package/dist/components/GenomeView/TrackComponents/QBedComponents/QBedTrackComponents.d.ts +74 -0
- package/dist/components/GenomeView/TrackComponents/RulerComponents/Ruler.d.ts +17 -0
- package/dist/components/GenomeView/TrackComponents/RulerComponents/RulerComponent.d.ts +19 -0
- package/dist/components/GenomeView/TrackComponents/SnpComponents/SnpAnnotation.d.ts +17 -0
- package/dist/components/GenomeView/TrackComponents/SnpComponents/SnpDetail.d.ts +7 -0
- package/dist/components/GenomeView/TrackComponents/TrackFactory.d.ts +4 -0
- package/dist/components/GenomeView/TrackComponents/VcfComponents/Vcf.d.ts +22 -0
- package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfAnnotation.d.ts +41 -0
- package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfDetail.d.ts +14 -0
- package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfTrack.d.ts +69 -0
- package/dist/components/GenomeView/TrackComponents/bedComponents/BedAnnotation.d.ts +33 -0
- package/dist/components/GenomeView/TrackComponents/bedComponents/Bedcolor.d.ts +13 -0
- package/dist/components/GenomeView/TrackComponents/bedComponents/BedcolorTrack.d.ts +6 -0
- package/dist/components/GenomeView/TrackComponents/bedComponents/DynamicBedTrackComponents.d.ts +28 -0
- package/dist/components/GenomeView/TrackComponents/bedComponents/FiberAnnotation.d.ts +33 -0
- package/dist/components/GenomeView/TrackComponents/bedComponents/FiberTrackComponent.d.ts +90 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/CopyToClipboard.d.ts +11 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/HoverToolTips/GenomicCoordinates.d.ts +23 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/HoverToolTips/HoverToolTip.d.ts +89 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/MetadataIndicator.d.ts +11 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/OutsideClickDetector.d.ts +8 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/Resize.d.ts +6 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/TrackLegend.d.ts +39 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/TrackMessage.d.ts +33 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/AnnotationArrows.d.ts +28 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/AnnotationTrack.d.ts +25 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/FeatureDetail.d.ts +20 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/FullDisplayMode.d.ts +45 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/JasparDetail.d.ts +12 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/PixiAnnotation.d.ts +67 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/art/DesignRenderer.d.ts +30 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/art/RulerDesigner.d.ts +102 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/check-obj-dupe.d.ts +8 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/chr-order/SortableItem.d.ts +11 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/chr-order/SortableTrack.d.ts +17 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/DynamicNumericalTrack.d.ts +37 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/DynamicplotTrackComponent.d.ts +80 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/GenomicCoordinates.d.ts +23 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/MatplotTrackComponent.d.ts +65 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalAggregator.d.ts +5 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalTrack.d.ts +39 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/PixiScene.d.ts +66 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/stats/BoxplotTrackComponents.d.ts +106 -0
- package/dist/components/GenomeView/TrackComponents/defaultOptionsMap.d.ts +3 -0
- package/dist/components/GenomeView/TrackComponents/displayModeComponentMap.d.ts +9 -0
- package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/BackgroundedText.d.ts +50 -0
- package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/GeneAnnotation.d.ts +33 -0
- package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/GeneAnnotationScaffold.d.ts +26 -0
- package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/GeneDetail.d.ts +19 -0
- package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/TranslatableG.d.ts +15 -0
- package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroHtmlVisualizer.d.ts +41 -0
- package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroSvgVisualizer.d.ts +35 -0
- package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroTrackComponents.d.ts +33 -0
- package/dist/components/GenomeView/TrackManager.d.ts +31 -0
- package/dist/components/GenomeView/genomeNavigator/Chromosomes.d.ts +94 -0
- package/dist/components/GenomeView/genomeNavigator/DragAcrossDiv.d.ts +71 -0
- package/dist/components/GenomeView/genomeNavigator/GeneSearchBox.d.ts +15 -0
- package/dist/components/GenomeView/genomeNavigator/GeneSearchBox3D.d.ts +22 -0
- package/dist/components/GenomeView/genomeNavigator/GeneSearchBoxBase.d.ts +18 -0
- package/dist/components/GenomeView/genomeNavigator/GenomeNavigator.d.ts +87 -0
- package/dist/components/GenomeView/genomeNavigator/IsoformSelection.d.ts +11 -0
- package/dist/components/GenomeView/genomeNavigator/MainPane.d.ts +68 -0
- package/dist/components/GenomeView/genomeNavigator/Ruler.d.ts +23 -0
- package/dist/components/GenomeView/genomeNavigator/SelectableGenomeArea.d.ts +34 -0
- package/dist/components/GenomeView/genomeNavigator/SelectedRegionBox.d.ts +48 -0
- package/dist/components/GenomeView/genomeNavigator/SnpSearchBox.d.ts +14 -0
- package/dist/components/GenomeView/genomeNavigator/TrackRegionController.d.ts +19 -0
- package/dist/genome-hub/GenomeHubManager.d.ts +15 -0
- package/dist/genome-hub/GenomeSerializer.d.ts +13 -0
- package/dist/genome-hub/LocalGenomeRepository.d.ts +15 -0
- package/dist/genome-hub/genome-schema.d.ts +198 -0
- package/dist/genome-hub/index.d.ts +3 -0
- package/dist/getLocalData/BedTextSource.d.ts +22 -0
- package/dist/getLocalData/LocalBigSourceGmod.d.ts +28 -0
- package/dist/getLocalData/LongrangeAndreaTextSource.d.ts +11 -0
- package/dist/getLocalData/localFetchData.d.ts +6 -0
- package/dist/getLocalData/localTabixSource.d.ts +50 -0
- package/dist/getLocalData/localTextSource.d.ts +13 -0
- package/dist/getRemoteData/BamSource.d.ts +10 -0
- package/dist/getRemoteData/BigSourceWorker.d.ts +47 -0
- package/dist/getRemoteData/BigSourceWorkerGmod.d.ts +25 -0
- package/dist/getRemoteData/GenomeInteraction.d.ts +20 -0
- package/dist/getRemoteData/HicDataModes.d.ts +19 -0
- package/dist/getRemoteData/JasparSource.d.ts +8 -0
- package/dist/getRemoteData/RepeatSource.d.ts +8 -0
- package/dist/getRemoteData/TwoBitSource.d.ts +31 -0
- package/dist/getRemoteData/VcfSource.d.ts +10 -0
- package/dist/getRemoteData/fetchDataWorker.d.ts +61 -0
- package/dist/getRemoteData/fetchGenomeAlignWorker.d.ts +64 -0
- package/dist/getRemoteData/fetchTrackData.d.ts +4 -0
- package/dist/getRemoteData/g3dFileV2.d.ts +15 -0
- package/dist/getRemoteData/hicSource.d.ts +83 -0
- package/dist/getRemoteData/io/browserLocalFile.d.ts +6 -0
- package/dist/getRemoteData/io/remoteFile.d.ts +7 -0
- package/dist/getRemoteData/tabixSource.d.ts +46 -0
- package/dist/getRemoteData/vendor/bbi-js/main/bigwig.d.ts +1 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/bin.d.ts +1 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/das.d.ts +6 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/jszlib.d.ts +1 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/sha1.d.ts +1 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/spans.d.ts +13 -0
- package/dist/index-Cs2whU2f.mjs +417589 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +68 -0
- package/dist/index.umd.js +1644 -0
- package/dist/init-Afno6ASC.mjs +2871 -0
- package/dist/models/AlignmentRecord.d.ts +20 -0
- package/dist/models/AlignmentSegment.d.ts +51 -0
- package/dist/models/AlignmentStringUtils.d.ts +73 -0
- package/dist/models/AppSaveLoad.d.ts +76 -0
- package/dist/models/BamAlignment.d.ts +81 -0
- package/dist/models/BamRecord.d.ts +96 -0
- package/dist/models/BedRecord.d.ts +13 -0
- package/dist/models/BinIndexer.d.ts +28 -0
- package/dist/models/Chromosome.d.ts +24 -0
- package/dist/models/ChromosomeInterval.d.ts +107 -0
- package/dist/models/DataHubParser.d.ts +4 -0
- package/dist/models/DisplayedRegionModel.d.ts +114 -0
- package/dist/models/DownsamplingChoices.d.ts +4 -0
- package/dist/models/Feature.d.ts +156 -0
- package/dist/models/FeatureAggregator.d.ts +67 -0
- package/dist/models/FeatureArranger.d.ts +48 -0
- package/dist/models/FeatureSegment.d.ts +63 -0
- package/dist/models/FlankingStrategy.d.ts +72 -0
- package/dist/models/Gene.d.ts +56 -0
- package/dist/models/Genome.d.ts +48 -0
- package/dist/models/GraphNode.d.ts +46 -0
- package/dist/models/ImageRecord.d.ts +12 -0
- package/dist/models/Json5Fetcher.d.ts +10 -0
- package/dist/models/LinearDrawingModel.d.ts +75 -0
- package/dist/models/LogChoices.d.ts +4 -0
- package/dist/models/MethylCRecord.d.ts +41 -0
- package/dist/models/NavContextBuilder.d.ts +17 -0
- package/dist/models/NavigationContext.d.ts +168 -0
- package/dist/models/OpenInterval.d.ts +57 -0
- package/dist/models/QBed.d.ts +15 -0
- package/dist/models/RegionExpander.d.ts +51 -0
- package/dist/models/RegionSet.d.ts +85 -0
- package/dist/models/RepeatMaskerFeature.d.ts +61 -0
- package/dist/models/ScaleChoices.d.ts +4 -0
- package/dist/models/SequenceData.d.ts +6 -0
- package/dist/models/Snp.d.ts +34 -0
- package/dist/models/SortItemsOptions.d.ts +6 -0
- package/dist/models/TrackModel.d.ts +142 -0
- package/dist/models/binning.d.ts +29 -0
- package/dist/models/genomes/Creinhardtii506/Creinhardtii506.d.ts +18 -0
- package/dist/models/genomes/CytobandTypes.d.ts +17 -0
- package/dist/models/genomes/GRCg7b/GRCg7b.d.ts +17 -0
- package/dist/models/genomes/GRCg7w/GRCg7w.d.ts +17 -0
- package/dist/models/genomes/GenomeConfig.d.ts +16 -0
- package/dist/models/genomes/allGenomes.d.ts +201 -0
- package/dist/models/genomes/aplCal3/aplCal3.d.ts +18 -0
- package/dist/models/genomes/araTha1/araTha1.d.ts +18 -0
- package/dist/models/genomes/bosTau8/bosTau8.d.ts +18 -0
- package/dist/models/genomes/brapa/brara_chiifu_v3.0.d.ts +17 -0
- package/dist/models/genomes/calJac3/calJac3.d.ts +17 -0
- package/dist/models/genomes/calJac4/calJac4.d.ts +18 -0
- package/dist/models/genomes/canFam2/canFam2.d.ts +16 -0
- package/dist/models/genomes/canFam3/canFam3.d.ts +18 -0
- package/dist/models/genomes/canFam6/canFam6.d.ts +18 -0
- package/dist/models/genomes/ce11/ce11.d.ts +18 -0
- package/dist/models/genomes/danRer10/danRer10.d.ts +17 -0
- package/dist/models/genomes/danRer10/scaffolds.d.ts +3 -0
- package/dist/models/genomes/danRer11/danRer11.d.ts +35 -0
- package/dist/models/genomes/danRer7/danRer7.d.ts +18 -0
- package/dist/models/genomes/dm6/dm6.d.ts +35 -0
- package/dist/models/genomes/galGal5/galGal5.d.ts +35 -0
- package/dist/models/genomes/galGal6/galGal6.d.ts +18 -0
- package/dist/models/genomes/gorGor3/gorGor3.d.ts +17 -0
- package/dist/models/genomes/gorGor4/gorGor4.d.ts +18 -0
- package/dist/models/genomes/hg19/hg19.d.ts +65 -0
- package/dist/models/genomes/hg38/hg38.d.ts +103 -0
- package/dist/models/genomes/lepOcu1/lepOcu1.d.ts +17 -0
- package/dist/models/genomes/mm10/mm10.d.ts +94 -0
- package/dist/models/genomes/mm39/mm39.d.ts +27 -0
- package/dist/models/genomes/mm9/mm9.d.ts +18 -0
- package/dist/models/genomes/monDom5/monDom5.d.ts +18 -0
- package/dist/models/genomes/nomLeu3/nomLeu3.d.ts +17 -0
- package/dist/models/genomes/oryCun2/oryCun2.d.ts +18 -0
- package/dist/models/genomes/oviAri4/oviAri4.d.ts +18 -0
- package/dist/models/genomes/panTro4/panTro4.d.ts +17 -0
- package/dist/models/genomes/panTro5/panTro5.d.ts +18 -0
- package/dist/models/genomes/panTro6/panTro6.d.ts +18 -0
- package/dist/models/genomes/papAnu2/papAnu2.d.ts +17 -0
- package/dist/models/genomes/pfal3d7/pfal3d7.d.ts +39 -0
- package/dist/models/genomes/phaw5/phaw5.d.ts +17 -0
- package/dist/models/genomes/rheMac10/rheMac10.d.ts +18 -0
- package/dist/models/genomes/rheMac2/rheMac2.d.ts +17 -0
- package/dist/models/genomes/rheMac3/rheMac3.d.ts +17 -0
- package/dist/models/genomes/rheMac8/rheMac8.d.ts +18 -0
- package/dist/models/genomes/rn4/rn4.d.ts +18 -0
- package/dist/models/genomes/rn6/rn6.d.ts +18 -0
- package/dist/models/genomes/rn7/rn7.d.ts +18 -0
- package/dist/models/genomes/sacCer3/sacCer3.d.ts +30 -0
- package/dist/models/genomes/susScr11/susScr11.d.ts +18 -0
- package/dist/models/genomes/susScr3/susScr3.d.ts +18 -0
- package/dist/models/genomes/t2t-chm13-v1.1/chm13.d.ts +17 -0
- package/dist/models/genomes/t2t-chm13-v2.0/chm13v2.d.ts +18 -0
- package/dist/models/genomes/trypanosome/TbruceiLister427.d.ts +32 -0
- package/dist/models/genomes/trypanosome/TbruceiTREU927.d.ts +32 -0
- package/dist/models/genomes/virus/ebola.d.ts +47 -0
- package/dist/models/genomes/virus/hpv16.d.ts +28 -0
- package/dist/models/genomes/virus/mers.d.ts +54 -0
- package/dist/models/genomes/virus/nCoV2019.d.ts +382 -0
- package/dist/models/genomes/virus/sars.d.ts +53 -0
- package/dist/models/genomes/xenTro10/xenTro10.d.ts +18 -0
- package/dist/models/getXSpan/FeaturePlacer.d.ts +86 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/layoutUtils.d.ts +39 -0
- package/dist/models/trackModels/trackProps.d.ts +40 -0
- package/dist/models/util.d.ts +102 -0
- package/dist/style.css +1 -0
- package/dist/track-container/index.d.ts +9 -0
- package/dist/trackConfigs/config-menu-components.tsx/AlwaysDrawLabelConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/ArrayAggregateConfig.d.ts +6 -0
- package/dist/trackConfigs/config-menu-components.tsx/BothAnchorsInViewConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/CategoryColorConfig.d.ts +15 -0
- package/dist/trackConfigs/config-menu-components.tsx/ClampHeightConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/Collapsible.d.ts +7 -0
- package/dist/trackConfigs/config-menu-components.tsx/ColorConfig.d.ts +102 -0
- package/dist/trackConfigs/config-menu-components.tsx/ColorPicker.d.ts +9 -0
- package/dist/trackConfigs/config-menu-components.tsx/CombineStrandConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/DisplayModeConfig.d.ts +21 -0
- package/dist/trackConfigs/config-menu-components.tsx/EnsemblStyleConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/FetchViewWindowConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/HeightConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/HicDataConfig.d.ts +14 -0
- package/dist/trackConfigs/config-menu-components.tsx/HiddenPixelsConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/HideMinimalItemsConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/HorizontalLineValueConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/ItalicizeTextConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/LabelConfig.d.ts +7 -0
- package/dist/trackConfigs/config-menu-components.tsx/LineWidthConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/LogScaleConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/MarkerSizeConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/MaxMethylAndDepthFilterConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/MaxRowsConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/MaxValueFilterConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/MethylColorConfig.d.ts +16 -0
- package/dist/trackConfigs/config-menu-components.tsx/MinValueFilterConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/NumberConfig.d.ts +43 -0
- package/dist/trackConfigs/config-menu-components.tsx/OmeroImageHeightConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/OpacitySilderConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/PixelsPaddingConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/PlayingConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/RowHeightConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/ScalePercentileConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/ScoreConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/SelectConfig.d.ts +11 -0
- package/dist/trackConfigs/config-menu-components.tsx/ShowHorizontalLineConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/SingleInputConfig.d.ts +14 -0
- package/dist/trackConfigs/config-menu-components.tsx/SliderConfig.d.ts +51 -0
- package/dist/trackConfigs/config-menu-components.tsx/SmoothConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/SortItemsConfig.d.ts +2 -0
- package/dist/trackConfigs/config-menu-components.tsx/SpeedConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/TrackConfigMenu.d.ts +2 -0
- package/dist/trackConfigs/config-menu-components.tsx/TrackContextMenu.d.ts +6 -0
- package/dist/trackConfigs/config-menu-components.tsx/UseDynamicColorsConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/WindowSizeConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-components.tsx/YscaleConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-models.tsx/AggregateConfig.d.ts +6 -0
- package/dist/trackConfigs/config-menu-models.tsx/AnnotationTrackConfig.d.ts +16 -0
- package/dist/trackConfigs/config-menu-models.tsx/BamTrackConfig.d.ts +6 -0
- package/dist/trackConfigs/config-menu-models.tsx/BedGraphTrackConfig.d.ts +3 -0
- package/dist/trackConfigs/config-menu-models.tsx/BedTrackConfig.d.ts +10 -0
- package/dist/trackConfigs/config-menu-models.tsx/BedcolorTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/BigBedTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/BigInteractTrackConfig.d.ts +12 -0
- package/dist/trackConfigs/config-menu-models.tsx/BigWigTrackConfig.d.ts +7 -0
- package/dist/trackConfigs/config-menu-models.tsx/BoxplotTrackConfig.d.ts +8 -0
- package/dist/trackConfigs/config-menu-models.tsx/CategoricalTrackConfig.d.ts +12 -0
- package/dist/trackConfigs/config-menu-models.tsx/DisplayModes.d.ts +49 -0
- package/dist/trackConfigs/config-menu-models.tsx/DynamicBedGraphTrackConfig.d.ts +5 -0
- package/dist/trackConfigs/config-menu-models.tsx/DynamicBedTrackConfig.d.ts +5 -0
- package/dist/trackConfigs/config-menu-models.tsx/DynamicHicTrackConfig.d.ts +5 -0
- package/dist/trackConfigs/config-menu-models.tsx/DynamicLongrangeTrackConfig.d.ts +5 -0
- package/dist/trackConfigs/config-menu-models.tsx/DynamicplotTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/DynseqTrackConfig.d.ts +7 -0
- package/dist/trackConfigs/config-menu-models.tsx/FiberTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/GeneAnnotationTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/GenomeAlignTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/HicTrackConfig.d.ts +7 -0
- package/dist/trackConfigs/config-menu-models.tsx/JasparTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/LongRangeTrackConfig.d.ts +6 -0
- package/dist/trackConfigs/config-menu-models.tsx/MatplotTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/MethylCTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/NumericalTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/OmeroTrackConfig.d.ts +5 -0
- package/dist/trackConfigs/config-menu-models.tsx/OmeroidrTrackConfig.d.ts +5 -0
- package/dist/trackConfigs/config-menu-models.tsx/QBedTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/RefBedTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/RepeatMaskerTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/RulerTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/SnpTrackConfig.d.ts +4 -0
- package/dist/trackConfigs/config-menu-models.tsx/TrackConfig.d.ts +11 -0
- package/dist/trackConfigs/config-menu-models.tsx/VcfTrackConfig.d.ts +5 -0
- package/dist/trackConfigs/config-menu-models.tsx/aggregateOptions.d.ts +12 -0
- package/dist/trackConfigs/config-menu-models.tsx/getTrackConfig.d.ts +76 -0
- package/dist/types/genome-hub.d.ts +24 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/track-container.d.ts +99 -0
- package/dist/webworkerAll-CTtTToDi.mjs +2 -0
- package/package.json +104 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Feature from "./Feature";
|
|
2
|
+
import BedRecord from "./BedRecord";
|
|
3
|
+
/**
|
|
4
|
+
* A data container for a idr images.
|
|
5
|
+
*
|
|
6
|
+
* @author Daofeng Li
|
|
7
|
+
*/
|
|
8
|
+
declare class ImageRecord extends Feature {
|
|
9
|
+
images: any[];
|
|
10
|
+
constructor(bedRecord: BedRecord);
|
|
11
|
+
}
|
|
12
|
+
export default ImageRecord;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import DisplayedRegionModel from "./DisplayedRegionModel";
|
|
2
|
+
import OpenInterval from "./OpenInterval";
|
|
3
|
+
import { FeatureSegment } from "./FeatureSegment";
|
|
4
|
+
/**
|
|
5
|
+
* Utility class for converting between pixels and base numbers.
|
|
6
|
+
*
|
|
7
|
+
* @author Silas Hsu
|
|
8
|
+
*/
|
|
9
|
+
declare class LinearDrawingModel {
|
|
10
|
+
_viewRegion: DisplayedRegionModel;
|
|
11
|
+
_drawWidth: number;
|
|
12
|
+
_pixelsPerBase: number;
|
|
13
|
+
_basesPerPixel: number;
|
|
14
|
+
/**
|
|
15
|
+
* Makes a new instance.
|
|
16
|
+
*
|
|
17
|
+
* @param {DisplayedRegionModel} viewRegion - the displayed region
|
|
18
|
+
* @param {number} drawWidth - the width of the canvas/svg/etc on which to draw
|
|
19
|
+
*/
|
|
20
|
+
constructor(viewRegion: DisplayedRegionModel, drawWidth: number);
|
|
21
|
+
/**
|
|
22
|
+
* @return {number} the drawing width with which this model was created
|
|
23
|
+
*/
|
|
24
|
+
getDrawWidth(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the horizontal width in pixels required to represent a number of bases.
|
|
27
|
+
*
|
|
28
|
+
* @param {number} bases - width in number of bases
|
|
29
|
+
* @return {number} width in pixels
|
|
30
|
+
*/
|
|
31
|
+
basesToXWidth(bases: number): number;
|
|
32
|
+
/**
|
|
33
|
+
* Gets how many bases represented by a horizontal span of the SVG.
|
|
34
|
+
*
|
|
35
|
+
* @param {number} pixels - width of a horizontal span
|
|
36
|
+
* @return {number} width in number of bases
|
|
37
|
+
*/
|
|
38
|
+
xWidthToBases(pixels: number): number;
|
|
39
|
+
/**
|
|
40
|
+
* Given an nav context coordinate, gets the X coordinate that represents that base.
|
|
41
|
+
*
|
|
42
|
+
* @param {number} base - nav context coordinate
|
|
43
|
+
* @return {number} X coordinate that represents the input base
|
|
44
|
+
*/
|
|
45
|
+
baseToX(base: number): number;
|
|
46
|
+
/**
|
|
47
|
+
* Given an X coordinate representing a base, gets the nav context coordinate.
|
|
48
|
+
*
|
|
49
|
+
* @param {number} pixel - X coordinate that represents a base
|
|
50
|
+
* @return {number} nav context coordinate
|
|
51
|
+
*/
|
|
52
|
+
xToBase(pixel: number): number;
|
|
53
|
+
/**
|
|
54
|
+
* Converts an interval of bases to an interval of X coordinates.
|
|
55
|
+
*
|
|
56
|
+
* @param {OpenInterval} baseInterval - interval of bases to convert
|
|
57
|
+
* @return {OpenInterval} x draw interval
|
|
58
|
+
*/
|
|
59
|
+
baseSpanToXSpan(baseInterval: OpenInterval): OpenInterval;
|
|
60
|
+
/**
|
|
61
|
+
* Converts an interval of bases to an interval of X coordinates, but just the center.
|
|
62
|
+
*
|
|
63
|
+
* @param {OpenInterval} baseInterval - interval of bases to convert
|
|
64
|
+
* @return {OpenInterval} x draw interval
|
|
65
|
+
*/
|
|
66
|
+
baseSpanToXCenter(baseInterval: OpenInterval): OpenInterval;
|
|
67
|
+
/**
|
|
68
|
+
* Gets the segment coordinates that a pixel coordinate represents.
|
|
69
|
+
*
|
|
70
|
+
* @param {number} pixel - pixel coordinate that represents a base
|
|
71
|
+
* @return {FeatureSegment} segment coordinate that the pixel represents
|
|
72
|
+
*/
|
|
73
|
+
xToSegmentCoordinate(pixel: number): FeatureSegment;
|
|
74
|
+
}
|
|
75
|
+
export default LinearDrawingModel;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Feature from "./Feature";
|
|
2
|
+
import BedRecord from "./BedRecord";
|
|
3
|
+
interface AggregationByRecordsResult {
|
|
4
|
+
depth: number;
|
|
5
|
+
contextValues: Array<{
|
|
6
|
+
context: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
interface AggregationByStrandResult {
|
|
11
|
+
combined: AggregationByRecordsResult;
|
|
12
|
+
forward: AggregationByRecordsResult;
|
|
13
|
+
reverse: AggregationByRecordsResult;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A data container for a MethylC record.
|
|
17
|
+
*
|
|
18
|
+
* @author Daofeng Li
|
|
19
|
+
*/
|
|
20
|
+
declare class MethylCRecord extends Feature {
|
|
21
|
+
/**
|
|
22
|
+
* Combines all MethylCRecords that (presumably) are in one pixel. See schema below the function for return schema.
|
|
23
|
+
* If passed an empty array, returns null.
|
|
24
|
+
*
|
|
25
|
+
* @param {MethylCRecord[]} records
|
|
26
|
+
* @return {AggregationResult}
|
|
27
|
+
*/
|
|
28
|
+
static aggregateRecords(records: MethylCRecord[]): AggregationByRecordsResult | null;
|
|
29
|
+
/**
|
|
30
|
+
* Combines all MethylCRecords that (presumably) are in one pixel. See schema below the function for return schema.
|
|
31
|
+
*
|
|
32
|
+
* @param {MethylCRecord[]} records
|
|
33
|
+
* @return {Object}
|
|
34
|
+
*/
|
|
35
|
+
static aggregateByStrand(records: MethylCRecord[]): AggregationByStrandResult;
|
|
36
|
+
context: any;
|
|
37
|
+
value: number;
|
|
38
|
+
depth: number;
|
|
39
|
+
constructor(bedRecord: BedRecord);
|
|
40
|
+
}
|
|
41
|
+
export default MethylCRecord;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import NavigationContext from "./NavigationContext";
|
|
2
|
+
export interface Gap {
|
|
3
|
+
contextBase: number;
|
|
4
|
+
length: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class NavContextBuilder {
|
|
7
|
+
private _baseNavContext;
|
|
8
|
+
private _gaps;
|
|
9
|
+
private _cumulativeGapBases;
|
|
10
|
+
constructor(baseNavContext: NavigationContext);
|
|
11
|
+
/**
|
|
12
|
+
* @param gaps
|
|
13
|
+
*/
|
|
14
|
+
setGaps(gaps: Array<any>): void;
|
|
15
|
+
build(): NavigationContext;
|
|
16
|
+
convertOldCoordinates(base: number): number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import OpenInterval from "./OpenInterval";
|
|
2
|
+
import { FeatureSegment } from "./FeatureSegment";
|
|
3
|
+
import ChromosomeInterval from "./ChromosomeInterval";
|
|
4
|
+
import { Feature } from "./Feature";
|
|
5
|
+
/**
|
|
6
|
+
* A implicit coordinate system for the entire genome or a gene set view. It represents everywhere that a user could
|
|
7
|
+
* potentially navigate and view.
|
|
8
|
+
*
|
|
9
|
+
* A context constructs this coordinate system through an ordered list of features. Features in NavigationContexts must
|
|
10
|
+
* have non-empty, unique names. In addition to this implicit coordinate system, NavContext methods also support
|
|
11
|
+
* feature coordinates, which are a feature and base number relative to the start of the feature.
|
|
12
|
+
*
|
|
13
|
+
* @author Silas Hsu
|
|
14
|
+
*/
|
|
15
|
+
declare class NavigationContext {
|
|
16
|
+
_name: string;
|
|
17
|
+
_features: Feature[];
|
|
18
|
+
_sortedFeatureStarts: number[];
|
|
19
|
+
_minCoordinateForFeature: Map<Feature, number>;
|
|
20
|
+
_featuresForChr: {
|
|
21
|
+
[chr: string]: Feature[];
|
|
22
|
+
};
|
|
23
|
+
_totalBases: number;
|
|
24
|
+
/**
|
|
25
|
+
* Makes a special "feature" representing a gap in the genome. To use, insert such objects into the feature list
|
|
26
|
+
* during NavigationContext construction.
|
|
27
|
+
*
|
|
28
|
+
* @param {number} length - length of the gap in bases
|
|
29
|
+
* @param {string} [name] - custom name of the gap feature
|
|
30
|
+
* @return {Feature} a special "feature" representing a gap in the genome.
|
|
31
|
+
*/
|
|
32
|
+
static makeGap(length: number, name?: string): Feature;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Feature} feature - feature to inspect
|
|
35
|
+
* @return {boolean} whether the feature represents a gap in the genome
|
|
36
|
+
*/
|
|
37
|
+
static isGapFeature(feature: Feature): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Makes a new instance. Features must have non-empty, unique names. The `isGenome` parameter does not change any
|
|
40
|
+
* of the instance's functionality, but if it is true, it optimizes mapping functions.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} name - name of this context
|
|
43
|
+
* @param {Feature[]} features - list of features
|
|
44
|
+
* @param {boolean} isGenome - whether the context covers the entire genome
|
|
45
|
+
* @throws {Error} if the feature list has a problem
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, features: Array<any>);
|
|
48
|
+
/**
|
|
49
|
+
* If the input segment is in a reverse strand feature, returns a new segment that is the same size, but moved to
|
|
50
|
+
* the other end of the feature. In effect, it rotates a feature segment 180 degrees about the feature's center.
|
|
51
|
+
*
|
|
52
|
+
* Otherwise, returns the input unmodified.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* let feature: Feature; // Pretend it has a length of 10
|
|
56
|
+
* const segment = new FeatureSegment(feature, 2, 4);
|
|
57
|
+
* this._flipIfReverseStrand(segment); // Returns new segment [6, 8)
|
|
58
|
+
*
|
|
59
|
+
* @param {FeatureSegment} segment - the feature segment to flip if on the reverse strand
|
|
60
|
+
* @return {FeatureSegment} flipped feature segment, but only if the input was on the reverse strand
|
|
61
|
+
*/
|
|
62
|
+
_flipIfReverseStrand(segment: FeatureSegment): FeatureSegment;
|
|
63
|
+
/**
|
|
64
|
+
* @return {string} this navigation context's name, as specified in the constructor
|
|
65
|
+
*/
|
|
66
|
+
getName(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Gets the internal feature list. This list should be treated as read-only; modifying its elements causes
|
|
69
|
+
* undefined behavior.
|
|
70
|
+
*
|
|
71
|
+
* @return {Feature[]} the internal feature list for this context
|
|
72
|
+
*/
|
|
73
|
+
getFeatures(): Feature[];
|
|
74
|
+
/**
|
|
75
|
+
* @return {number} the total number of bases in this context, i.e. how many bases are navigable
|
|
76
|
+
*/
|
|
77
|
+
getTotalBases(): number;
|
|
78
|
+
/**
|
|
79
|
+
* Given a context coordinate, gets whether the base is navigable.
|
|
80
|
+
*
|
|
81
|
+
* @param {number} base - context coordinate
|
|
82
|
+
* @return {boolean} whether the base is navigable
|
|
83
|
+
*/
|
|
84
|
+
getIsValidBase(base: number): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Gets the lowest context coordinate that the input feature has. Throws an error if the feature cannot be found.
|
|
87
|
+
*
|
|
88
|
+
* Note that if the feature is on the forward strand, the result will represent the feature's start. Otherwise, it
|
|
89
|
+
* represents the feature's end.
|
|
90
|
+
*
|
|
91
|
+
* @param {Feature} feature - the feature to find
|
|
92
|
+
* @return {number} the lowest context coordinate of the feature
|
|
93
|
+
* @throws {RangeError} if the feature is not in this context
|
|
94
|
+
*/
|
|
95
|
+
getFeatureStart(feature: Feature): number;
|
|
96
|
+
/**
|
|
97
|
+
* Given a context coordinate, gets the feature in which it is located. Returns a FeatureSegment that has 1 length,
|
|
98
|
+
* representing a single base number relative to the feature's start.
|
|
99
|
+
*
|
|
100
|
+
* @param {number} base - the context coordinate to look up
|
|
101
|
+
* @return {FeatureSegment} corresponding feature coordinate
|
|
102
|
+
* @throws {RangeError} if the base is not in this context
|
|
103
|
+
*/
|
|
104
|
+
convertBaseToFeatureCoordinate(base: number): FeatureSegment;
|
|
105
|
+
/**
|
|
106
|
+
* Given a segment of a feature from this navigation context, gets the context coordinates the segment occupies.
|
|
107
|
+
*
|
|
108
|
+
* @param {FeatureSegment} segment - feature segment from this context
|
|
109
|
+
* @return {OpenInterval} context coordinates the feature segment occupies
|
|
110
|
+
*/
|
|
111
|
+
convertFeatureSegmentToContextCoordinates(segment: FeatureSegment): OpenInterval;
|
|
112
|
+
/**
|
|
113
|
+
* Converts genome coordinates to an interval of context coordinates. Since coordinates can map
|
|
114
|
+
* to multiple features, or none at all, this method returns a list of OpenInterval.
|
|
115
|
+
*
|
|
116
|
+
* @param {ChromosomeInterval} chrInterval - genome interval
|
|
117
|
+
* @return {OpenInterval[]} intervals of context coordinates
|
|
118
|
+
*/
|
|
119
|
+
convertGenomeIntervalToBases(chrInterval: ChromosomeInterval): OpenInterval[];
|
|
120
|
+
/**
|
|
121
|
+
* Converts a context coordinate to one that ignores gaps in this instance. Or, put another way, if we removed all
|
|
122
|
+
* gaps in this instance, what would be the context coordinate of `base` be?
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* navContext = [10bp feature, 10bp gap, 10bp feature]
|
|
126
|
+
* navContext.toGaplessCoordinate(5); // Returns 5
|
|
127
|
+
* navContext.toGaplessCoordinate(15); // Returns 10
|
|
128
|
+
* navContext.toGaplessCoordinate(25); // Returns 15
|
|
129
|
+
*
|
|
130
|
+
* @param {number} base - the context coordinate to convert
|
|
131
|
+
* @return {number} context coordinate if gaps didn't exist
|
|
132
|
+
*/
|
|
133
|
+
toGaplessCoordinate(base: number): number;
|
|
134
|
+
/**
|
|
135
|
+
* Parses an location in this navigation context. Should be formatted like "$chrName:$startBase-$endBase" OR
|
|
136
|
+
* "$featureName". We expect 0-indexed intervals.
|
|
137
|
+
*
|
|
138
|
+
* Returns an open interval of context coordinates. Throws RangeError on parse failure.
|
|
139
|
+
*
|
|
140
|
+
* @param {string} str - the string to parse
|
|
141
|
+
* @return {OpenInterval} the context coordinates represented by the string
|
|
142
|
+
* @throws {RangeError} when parsing an interval outside of the context or something otherwise nonsensical
|
|
143
|
+
*/
|
|
144
|
+
parse(str: string): OpenInterval;
|
|
145
|
+
/**
|
|
146
|
+
* Queries features that overlap an open interval of context coordinates. Returns a list of FeatureSegment.
|
|
147
|
+
*
|
|
148
|
+
* @param {number} queryStart - (inclusive) start of interval, as a context coordinate
|
|
149
|
+
* @param {number} queryEnd - (exclusive) end of interval, as a context coordinate
|
|
150
|
+
* @param {boolean} [includeGaps] - whether to include gaps in the results. Default: true
|
|
151
|
+
* @return {FeatureSegment[]} list of feature intervals
|
|
152
|
+
*/
|
|
153
|
+
getFeaturesInInterval(queryStart: number, queryEnd: number, includeGaps?: boolean): FeatureSegment[];
|
|
154
|
+
/**
|
|
155
|
+
* Queries genomic locations that overlap an open interval of context coordinates. The results are guaranteed to
|
|
156
|
+
* not overlap each other.
|
|
157
|
+
*
|
|
158
|
+
* @param {number} queryStart - (inclusive) start of interval, as a context coordinate
|
|
159
|
+
* @param {number} queryEnd - (exclusive) end of interval, as a context coordinate
|
|
160
|
+
* @return {ChromosomeInterval[]} list of genomic locations
|
|
161
|
+
*/
|
|
162
|
+
getLociInInterval(queryStart: number, queryEnd: number): ChromosomeInterval[];
|
|
163
|
+
/**
|
|
164
|
+
* check if a feature is in current context
|
|
165
|
+
*/
|
|
166
|
+
hasFeatureWithName(queryFeature: Feature): boolean;
|
|
167
|
+
}
|
|
168
|
+
export default NavigationContext;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Something with props `start` and `end` which represent a 0-indexed open interval
|
|
3
|
+
*/
|
|
4
|
+
export interface IOpenInterval {
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A 0-indexed open interval. Intervals are iterable, so code can take advantage of the spread operator:
|
|
10
|
+
* `myFunction(...interval)` is equivalent to `myFunction(interval.start, interval.end)`
|
|
11
|
+
*
|
|
12
|
+
* @implements {Serializable}
|
|
13
|
+
* @author Silas Hsu
|
|
14
|
+
*/
|
|
15
|
+
export default class OpenInterval implements IOpenInterval {
|
|
16
|
+
readonly start: number;
|
|
17
|
+
readonly end: number;
|
|
18
|
+
/**
|
|
19
|
+
* Makes a new instance. The input should represent a 0-indexed open interval.
|
|
20
|
+
*
|
|
21
|
+
* @param {number} start - start of the interval, inclusive
|
|
22
|
+
* @param {number} end - end of the interval, exclusive
|
|
23
|
+
* @throws {RangeError} if the end is less than the start
|
|
24
|
+
*/
|
|
25
|
+
constructor(start: number, end: number);
|
|
26
|
+
/**
|
|
27
|
+
* @returns {IOpenInterval}
|
|
28
|
+
*/
|
|
29
|
+
serialize(): IOpenInterval;
|
|
30
|
+
/**
|
|
31
|
+
* Creates an OpenInterval from an object.
|
|
32
|
+
*
|
|
33
|
+
* @param {IOpenInterval} object - object to use
|
|
34
|
+
* @return {OpenInterval} OpenInterval created from the object
|
|
35
|
+
*/
|
|
36
|
+
static deserialize(object: IOpenInterval): OpenInterval;
|
|
37
|
+
/**
|
|
38
|
+
* Enables the spread operator for OpenIntervals.
|
|
39
|
+
*/
|
|
40
|
+
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Intersects this and another OpenInterval, and returns the result in as a new OpenInterval. Returns null if there
|
|
43
|
+
* is no intersection at all.
|
|
44
|
+
*
|
|
45
|
+
* @param {OpenInterval} other - other OpenInterval to intersect
|
|
46
|
+
* @return {OpenInterval} intersection of this and the other interval
|
|
47
|
+
*/
|
|
48
|
+
getOverlap(other: OpenInterval): OpenInterval | null;
|
|
49
|
+
/**
|
|
50
|
+
* @return {number} the length of this interval
|
|
51
|
+
*/
|
|
52
|
+
getLength(): number;
|
|
53
|
+
/**
|
|
54
|
+
* @return {string} human-readable representation of this instance
|
|
55
|
+
*/
|
|
56
|
+
toString(): string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Feature from "./Feature";
|
|
2
|
+
import BedRecord from "./BedRecord";
|
|
3
|
+
/**
|
|
4
|
+
* A data container for a qBED object.
|
|
5
|
+
*
|
|
6
|
+
* @author Daofeng Li and Arnav Moudgil
|
|
7
|
+
*/
|
|
8
|
+
declare class QBed extends Feature {
|
|
9
|
+
annotation: any;
|
|
10
|
+
value: number;
|
|
11
|
+
relativeX: number | undefined;
|
|
12
|
+
relativeY: number | undefined;
|
|
13
|
+
constructor(bedRecord: BedRecord);
|
|
14
|
+
}
|
|
15
|
+
export default QBed;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import OpenInterval from "./OpenInterval";
|
|
2
|
+
import DisplayedRegionModel from "./DisplayedRegionModel";
|
|
3
|
+
/**
|
|
4
|
+
* Data describing an expanded view region.
|
|
5
|
+
*/
|
|
6
|
+
export interface ViewExpansion {
|
|
7
|
+
/**
|
|
8
|
+
* Total width, in pixels, of the expanded view
|
|
9
|
+
*/
|
|
10
|
+
visWidth: number;
|
|
11
|
+
/**
|
|
12
|
+
* Expanded region
|
|
13
|
+
*/
|
|
14
|
+
visRegion: DisplayedRegionModel;
|
|
15
|
+
/**
|
|
16
|
+
* The X range of pixels that would display the unexpanded region
|
|
17
|
+
*/
|
|
18
|
+
viewWindow: OpenInterval;
|
|
19
|
+
/**
|
|
20
|
+
* Unexpanded region; the region displayed in the viewWindow
|
|
21
|
+
*/
|
|
22
|
+
viewWindowRegion: DisplayedRegionModel;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Utility class that does calculations related to expanding view regions for the purposes of scrolling.
|
|
26
|
+
*
|
|
27
|
+
* @author Silas Hsu
|
|
28
|
+
*/
|
|
29
|
+
export declare class RegionExpander {
|
|
30
|
+
multipleOnEachSide: number;
|
|
31
|
+
static DEFAULT_EXPANSION: number;
|
|
32
|
+
/**
|
|
33
|
+
* @return a RegionExpander which does not do any expansion at all.
|
|
34
|
+
*/
|
|
35
|
+
static makeIdentityExpander(): RegionExpander;
|
|
36
|
+
zoomRatio: number;
|
|
37
|
+
/**
|
|
38
|
+
* @param {number} multipleOnEachSide - magnitude of expansion on each side, as a multiple of region width.
|
|
39
|
+
*/
|
|
40
|
+
constructor(multipleOnEachSide?: number);
|
|
41
|
+
/**
|
|
42
|
+
* Calculates an expansion of a view region from the input pixel width and region model. Returns both the expanded
|
|
43
|
+
* region and how many pixels on each side of the orignal view to allocate to display additional data. Handles
|
|
44
|
+
* cases such expanding near the edge of the genome, so that views will always remain inside the genome.
|
|
45
|
+
*
|
|
46
|
+
* @param {DisplayedRegionModel} region - the region that the unexpanded view will show
|
|
47
|
+
* @param {number} visWidth - the width, in pixels, of the view to expand
|
|
48
|
+
* @return {ViewExpansion} - data representing aspects of an expanded region
|
|
49
|
+
*/
|
|
50
|
+
calculateExpansion(region: DisplayedRegionModel, visWidth: number): ViewExpansion;
|
|
51
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import Feature, { IFeature } from "./Feature";
|
|
2
|
+
import NavigationContext from "./NavigationContext";
|
|
3
|
+
import FlankingStrategy, { IFlankingStrategy } from "./FlankingStrategy";
|
|
4
|
+
import Genome from "./Genome";
|
|
5
|
+
/**
|
|
6
|
+
* A RegionSet without methods.
|
|
7
|
+
*/
|
|
8
|
+
export interface IRegionSet {
|
|
9
|
+
name: string;
|
|
10
|
+
features: IFeature[];
|
|
11
|
+
genomeName: string;
|
|
12
|
+
flankingStrategy: IFlankingStrategy;
|
|
13
|
+
id?: any;
|
|
14
|
+
genome?: any;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A set of features that undergoes some configuration before being exported to a navigation context.
|
|
18
|
+
*
|
|
19
|
+
* @implements {Serializable}
|
|
20
|
+
* @author Silas Hsu
|
|
21
|
+
*/
|
|
22
|
+
declare class RegionSet {
|
|
23
|
+
name: string;
|
|
24
|
+
features: Feature[];
|
|
25
|
+
genome: Genome;
|
|
26
|
+
flankingStrategy: FlankingStrategy;
|
|
27
|
+
genomeName: string;
|
|
28
|
+
id: any;
|
|
29
|
+
static MIN_REGION_LENGTH: number;
|
|
30
|
+
/**
|
|
31
|
+
* Makes a new instance. The flankingStrategy parameter is used to modify all features before constructing a
|
|
32
|
+
* NavigationContext.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} [name] - name of this region set
|
|
35
|
+
* @param {Feature[]} [features] - list of features in this set
|
|
36
|
+
* @param {Genome} genome - genome to which the features belong
|
|
37
|
+
* @param {FlankingStrategy} flankingStrategy - feature modifier
|
|
38
|
+
*/
|
|
39
|
+
constructor(name: string, features: Feature[], genome: Genome, flankingStrategy: FlankingStrategy, genomeName?: string, id?: any);
|
|
40
|
+
serialize(): IRegionSet;
|
|
41
|
+
static deserialize(object: IRegionSet): RegionSet;
|
|
42
|
+
/**
|
|
43
|
+
* Shallowly clones this, sets a prop to a value, and returns the result.
|
|
44
|
+
*
|
|
45
|
+
* @param {string} propName - the prop to set
|
|
46
|
+
* @param {any} value - the value to set
|
|
47
|
+
* @return {RegionSet} cloned and modified version of this
|
|
48
|
+
*/
|
|
49
|
+
cloneAndSet(propName: string, value: any): RegionSet;
|
|
50
|
+
/**
|
|
51
|
+
* Clones this, and then adds a new feature to this set. Features must have a valid name, and be in the genome;
|
|
52
|
+
* otherwise, an error will result.
|
|
53
|
+
*
|
|
54
|
+
* @param {Feature} feature - the feature to add
|
|
55
|
+
* @return {RegionSet} cloned and modified version of this
|
|
56
|
+
* @throws {RangeError} if the input feature is invalid in some way
|
|
57
|
+
*/
|
|
58
|
+
cloneAndAddFeature(feature: Feature): RegionSet;
|
|
59
|
+
/**
|
|
60
|
+
* Clones this, and then deletes a feature from this set.
|
|
61
|
+
*
|
|
62
|
+
* @param {number} index - index of the feature to delete
|
|
63
|
+
* @return {RegionSet} cloned and modified version of this
|
|
64
|
+
*/
|
|
65
|
+
cloneAndDeleteFeature(index: number): RegionSet;
|
|
66
|
+
/**
|
|
67
|
+
* Clones this, and then put all features on + strand.
|
|
68
|
+
*
|
|
69
|
+
* @return {RegionSet} cloned and modified version of this
|
|
70
|
+
*/
|
|
71
|
+
cloneAndAllPlusStrand(): RegionSet;
|
|
72
|
+
/**
|
|
73
|
+
* Uses the associated FlankingStrategy to return a list of features originating from the features in this set.
|
|
74
|
+
*
|
|
75
|
+
* @return {Feature[]} list of flanked features
|
|
76
|
+
*/
|
|
77
|
+
makeFlankedFeatures(): (Feature | null)[];
|
|
78
|
+
/**
|
|
79
|
+
* Equivalent to calling {@link makeFlankedFeatures()} and then making a navigation context out of them.
|
|
80
|
+
*
|
|
81
|
+
* @return {NavigationContext} - navigation context from flanked features
|
|
82
|
+
*/
|
|
83
|
+
makeNavContext(): NavigationContext;
|
|
84
|
+
}
|
|
85
|
+
export default RegionSet;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import Feature from "./Feature";
|
|
2
|
+
export interface RepeatDASFeature {
|
|
3
|
+
genoLeft: string;
|
|
4
|
+
label: string;
|
|
5
|
+
max: number;
|
|
6
|
+
milliDel: string;
|
|
7
|
+
milliDiv: string;
|
|
8
|
+
milliIns: string;
|
|
9
|
+
min: number;
|
|
10
|
+
orientation: string;
|
|
11
|
+
repClass: string;
|
|
12
|
+
repEnd: string;
|
|
13
|
+
repFamily: string;
|
|
14
|
+
repLeft: string;
|
|
15
|
+
repStart: string;
|
|
16
|
+
score: number;
|
|
17
|
+
segment: string;
|
|
18
|
+
swScore: string;
|
|
19
|
+
type: string;
|
|
20
|
+
_chromId: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A data container for a RepeatMasker record.
|
|
24
|
+
*
|
|
25
|
+
* @author Daofeng Li
|
|
26
|
+
*/
|
|
27
|
+
export declare class RepeatMaskerFeature extends Feature {
|
|
28
|
+
static DEFAULT_CLASS_COLORS: {
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
3: string;
|
|
32
|
+
4: string;
|
|
33
|
+
5: string;
|
|
34
|
+
6: string;
|
|
35
|
+
7: string;
|
|
36
|
+
8: string;
|
|
37
|
+
9: string;
|
|
38
|
+
10: string;
|
|
39
|
+
11: string;
|
|
40
|
+
12: string;
|
|
41
|
+
};
|
|
42
|
+
repClass: string;
|
|
43
|
+
repFamily: string;
|
|
44
|
+
milliDiv: string;
|
|
45
|
+
_value: number | null;
|
|
46
|
+
/**
|
|
47
|
+
* Constructs a new rmskRecord, given a properly-structured DASFeature
|
|
48
|
+
*
|
|
49
|
+
* @param {RepeatDASFeature} record - DASFeature to use
|
|
50
|
+
*/
|
|
51
|
+
constructor(rmskRecord: RepeatDASFeature);
|
|
52
|
+
get repeatValue(): number;
|
|
53
|
+
/**
|
|
54
|
+
* @return {number} the repeat class ID
|
|
55
|
+
*/
|
|
56
|
+
getCategoryId(): number;
|
|
57
|
+
/**
|
|
58
|
+
* @return {string} human-readable description of the repeat class
|
|
59
|
+
*/
|
|
60
|
+
getClassDetails(): string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Feature from "./Feature";
|
|
2
|
+
/**
|
|
3
|
+
* A data container for snp.
|
|
4
|
+
*
|
|
5
|
+
* @author Daofeng Li and Silas Hsu
|
|
6
|
+
*/
|
|
7
|
+
declare class Snp extends Feature {
|
|
8
|
+
id: string;
|
|
9
|
+
alleles?: string[];
|
|
10
|
+
consequence_type?: string;
|
|
11
|
+
clinical_significance?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new Snp, given an entry from ensembl API. .
|
|
14
|
+
@example
|
|
15
|
+
{
|
|
16
|
+
alleles: ["G", "C"]
|
|
17
|
+
assembly_name: "GRCh37"
|
|
18
|
+
clinical_significance: []
|
|
19
|
+
consequence_type: "intron_variant"
|
|
20
|
+
end: 140124755
|
|
21
|
+
feature_type: "variation"
|
|
22
|
+
id: "rs1051810366"
|
|
23
|
+
seq_region_name: "7"
|
|
24
|
+
source: "dbSNP"
|
|
25
|
+
start: 140124755
|
|
26
|
+
strand: 1
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
* @param {record} record - record object to use
|
|
30
|
+
* @param {trackModel} trackModel for gene search information
|
|
31
|
+
*/
|
|
32
|
+
constructor(record: any);
|
|
33
|
+
}
|
|
34
|
+
export default Snp;
|