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,114 @@
|
|
|
1
|
+
import OpenInterval from "./OpenInterval";
|
|
2
|
+
import NavigationContext from "./NavigationContext";
|
|
3
|
+
import { FeatureSegment } from "./FeatureSegment";
|
|
4
|
+
import ChromosomeInterval from "./ChromosomeInterval";
|
|
5
|
+
/**
|
|
6
|
+
* Model that stores the view window/region in a larger navigation context (e.g. a genome). Internally stores the
|
|
7
|
+
* region as an open interval of nav context coordinates (@see {@link NavigationContext}).
|
|
8
|
+
*
|
|
9
|
+
* @author Silas Hsu
|
|
10
|
+
*/
|
|
11
|
+
declare class DisplayedRegionModel {
|
|
12
|
+
_navContext: NavigationContext;
|
|
13
|
+
_startBase: number | undefined;
|
|
14
|
+
_endBase: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Makes a new instance with specified navigation context, and optionally, initial view region. If not specified,
|
|
17
|
+
* the view region will be the entire navigation context.
|
|
18
|
+
*
|
|
19
|
+
* @param {NavigationContext} navContext - the context in which navigation will take place
|
|
20
|
+
* @param {number} [start] - initial start of the view region
|
|
21
|
+
* @param {number} [end] - initial end of the view region
|
|
22
|
+
*/
|
|
23
|
+
constructor(navContext: NavigationContext, start?: number, end?: number);
|
|
24
|
+
/**
|
|
25
|
+
* Makes copy of this object such that no methods on the copy will modify the original.
|
|
26
|
+
*
|
|
27
|
+
* @return {DisplayedRegionModel} a copy of this object
|
|
28
|
+
*/
|
|
29
|
+
clone(): DisplayedRegionModel;
|
|
30
|
+
/**
|
|
31
|
+
* @return {NavigationContext} the navigation context with which this object was created
|
|
32
|
+
*/
|
|
33
|
+
getNavigationContext(): NavigationContext;
|
|
34
|
+
/**
|
|
35
|
+
* @return {number} the current width of the view, in base pairs
|
|
36
|
+
*/
|
|
37
|
+
getWidth(): number;
|
|
38
|
+
/**
|
|
39
|
+
* Gets a copy of the internally stored 0-indexed open interval that represents this displayed region.
|
|
40
|
+
*
|
|
41
|
+
* @return {OpenInterval} copy of the internally stored region
|
|
42
|
+
*/
|
|
43
|
+
getContextCoordinates(): OpenInterval;
|
|
44
|
+
/**
|
|
45
|
+
* Gets the features that overlap this view region in the navigation context.
|
|
46
|
+
*
|
|
47
|
+
* @param {boolean} [includeGaps] - whether to include gaps in the results. Default: true
|
|
48
|
+
* @return {FeatureSegment[]} list of feature intervals that overlap this view region
|
|
49
|
+
*/
|
|
50
|
+
getFeatureSegments(includeGaps?: boolean): FeatureSegment[];
|
|
51
|
+
/**
|
|
52
|
+
* Gets the genomic locations that overlap this view region. The results are guaranteed to not overlap each other.
|
|
53
|
+
*
|
|
54
|
+
* @return {ChromosomeInterval[]} list of genomic locations that overlap this view region.
|
|
55
|
+
*/
|
|
56
|
+
getGenomeIntervals(): ChromosomeInterval[];
|
|
57
|
+
/**
|
|
58
|
+
* Safely sets the internal display interval, ensuring that it stays within the navigation context and makes sense.
|
|
59
|
+
* `start` and `end` should express a 0-indexed open interval of base numbers, [start, end). This method will try
|
|
60
|
+
* to preserve the input length as much as possible.
|
|
61
|
+
*
|
|
62
|
+
* Errors if given a nonsensical interval, but does not error for intervals outside the navigation context.
|
|
63
|
+
*
|
|
64
|
+
* Returns this.
|
|
65
|
+
*
|
|
66
|
+
* @param {number} start - the (inclusive) start of the region interval as a base pair number
|
|
67
|
+
* @param {number} end - the (exclusive) end of the region interval as a base pair number
|
|
68
|
+
* @return {this}
|
|
69
|
+
* @throws {RangeError} if end is less than start, or the inputs are undefined/infinite
|
|
70
|
+
*/
|
|
71
|
+
setRegion(start: number, end: number): this;
|
|
72
|
+
/**
|
|
73
|
+
* Pans the current region by a constant number of bases, also ensuring view boundaries stay within the genome.
|
|
74
|
+
* Negative numbers pull regions on the left into view (=pan right); positive numbers pull regions on the right into
|
|
75
|
+
* view (=pan left).
|
|
76
|
+
*
|
|
77
|
+
* Returns `this`.
|
|
78
|
+
*
|
|
79
|
+
* @param {number} numBases - number of base pairs to pan
|
|
80
|
+
* @return {this}
|
|
81
|
+
*/
|
|
82
|
+
pan(numBases: number): this;
|
|
83
|
+
/**
|
|
84
|
+
* pan same width to left, pan left not same as drag left, coords get smaller
|
|
85
|
+
* @return {this}
|
|
86
|
+
*/
|
|
87
|
+
panLeft(): this;
|
|
88
|
+
/**
|
|
89
|
+
* pan same width to right
|
|
90
|
+
* @return {this}
|
|
91
|
+
*/
|
|
92
|
+
panRight(): this;
|
|
93
|
+
/**
|
|
94
|
+
* Multiplies the size of the current region by a factor, also ensuring view boundaries stay within the genome.
|
|
95
|
+
* Factors less than 1 zoom in (region gets shorter); factors greater than 1 zoom out (region gets longer).
|
|
96
|
+
* Additionally, one can specify the focal point of the zoom as the number of region widths from the left edge. By
|
|
97
|
+
* default this is 0.5, which is the center of the region.
|
|
98
|
+
*
|
|
99
|
+
* Note that due to rounding, zoom() is approximate; a zoom(2) followed by a zoom(0.5) may still change the region
|
|
100
|
+
* boundaries by a base or two.
|
|
101
|
+
*
|
|
102
|
+
* Returns `this`.
|
|
103
|
+
*
|
|
104
|
+
* @param {number} factor - number by which to multiply this region's width
|
|
105
|
+
* @param {number} [focalPoint] - (optional) measured as number of region widths from the left edge. Default: 0.5
|
|
106
|
+
* @return {this}
|
|
107
|
+
*/
|
|
108
|
+
zoom(factor: number, focalPoint?: number): this;
|
|
109
|
+
/**
|
|
110
|
+
* @return {string} the currently displayed region in human-readable form
|
|
111
|
+
*/
|
|
112
|
+
currentRegionAsString(): string;
|
|
113
|
+
}
|
|
114
|
+
export default DisplayedRegionModel;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import ChromosomeInterval, { IChromosomeInterval } from "./ChromosomeInterval";
|
|
2
|
+
import NavigationContext from "./NavigationContext";
|
|
3
|
+
export type Strand = "+" | "-" | string;
|
|
4
|
+
/**
|
|
5
|
+
* The properties of Feature without the methods.
|
|
6
|
+
*/
|
|
7
|
+
export interface IFeature {
|
|
8
|
+
name: string;
|
|
9
|
+
locus: IChromosomeInterval;
|
|
10
|
+
strand: Strand;
|
|
11
|
+
id?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FORWARD_STRAND_CHAR = "+";
|
|
14
|
+
export declare const REVERSE_STRAND_CHAR = "-";
|
|
15
|
+
/**
|
|
16
|
+
* A feature, or annotation, in the genome.
|
|
17
|
+
*
|
|
18
|
+
* @implements {Serializable}
|
|
19
|
+
* @author Silas Hsu
|
|
20
|
+
*/
|
|
21
|
+
export declare class Feature {
|
|
22
|
+
locus: ChromosomeInterval;
|
|
23
|
+
strand: Strand;
|
|
24
|
+
name: string;
|
|
25
|
+
score?: any;
|
|
26
|
+
id?: string;
|
|
27
|
+
sequence: any;
|
|
28
|
+
variant?: any;
|
|
29
|
+
value?: any;
|
|
30
|
+
/**
|
|
31
|
+
* Makes a new instance with specified name and locus. Empty names are valid. If given `undefined` or `null`, it
|
|
32
|
+
* defaults to the locus as a string.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} [name] - name of the feature
|
|
35
|
+
* @param {ChromosomeInterval} locus - genomic location of the feature
|
|
36
|
+
* @param {Strand} strand - strand info
|
|
37
|
+
*/
|
|
38
|
+
constructor(name: string | undefined, locus: ChromosomeInterval, strand?: Strand, value?: any);
|
|
39
|
+
serialize(): IFeature;
|
|
40
|
+
static deserialize(object: IFeature): Feature;
|
|
41
|
+
/**
|
|
42
|
+
* @return {string} the name of this feature
|
|
43
|
+
*/
|
|
44
|
+
getName(): string;
|
|
45
|
+
/**
|
|
46
|
+
* @return {ChromosomeInterval} the genomic location of this feature
|
|
47
|
+
*/
|
|
48
|
+
getLocus(): ChromosomeInterval;
|
|
49
|
+
/**
|
|
50
|
+
* @return {number} the length of this feature's locus
|
|
51
|
+
*/
|
|
52
|
+
getLength(): number;
|
|
53
|
+
/**
|
|
54
|
+
* @return {string} raw strand info of this instance
|
|
55
|
+
*/
|
|
56
|
+
getStrand(): Strand;
|
|
57
|
+
/**
|
|
58
|
+
* @return {boolean} whether this feature is on the forward strand
|
|
59
|
+
*/
|
|
60
|
+
getIsForwardStrand(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @return {boolean} whether this feature is on the reverse strand
|
|
63
|
+
*/
|
|
64
|
+
getIsReverseStrand(): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @return {boolean} whether this feature has strand info
|
|
67
|
+
*/
|
|
68
|
+
getHasStrand(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Shortcut for navContext.convertGenomeIntervalToBases(). Computes nav context coordinates occupied by this
|
|
71
|
+
* instance's locus.
|
|
72
|
+
*
|
|
73
|
+
* @param {NavigationContext} navContext - the navigation context for which to compute coordinates
|
|
74
|
+
* @return {OpenInterval[]} coordinates in the navigation context
|
|
75
|
+
*/
|
|
76
|
+
computeNavContextCoordinates(navContext: NavigationContext): import("./OpenInterval").default[];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Everything a Feature is, plus a `value` prop.
|
|
80
|
+
*
|
|
81
|
+
* @author Silas Hsu
|
|
82
|
+
*/
|
|
83
|
+
export declare class NumericalFeature extends Feature {
|
|
84
|
+
value: number | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Sets value and returns this.
|
|
87
|
+
*
|
|
88
|
+
* @param {number} value - value to attach to this instance.
|
|
89
|
+
* @return {this}
|
|
90
|
+
*/
|
|
91
|
+
withValue(value: number): this;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Everything a Feature is, plus a `color` prop.
|
|
95
|
+
*
|
|
96
|
+
* @author Daofeng Li
|
|
97
|
+
*/
|
|
98
|
+
export declare class ColoredFeature extends Feature {
|
|
99
|
+
color: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Sets value and returns this.
|
|
102
|
+
*
|
|
103
|
+
* @param {number} value - value to attach to this instance.
|
|
104
|
+
* @return {this}
|
|
105
|
+
*/
|
|
106
|
+
withColor(color: string): this;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* a JasparFeature.
|
|
110
|
+
*
|
|
111
|
+
* @author Daofeng Li
|
|
112
|
+
*/
|
|
113
|
+
export declare class JasparFeature extends Feature {
|
|
114
|
+
score: number | undefined;
|
|
115
|
+
matrixId: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Sets jaspar tf name and score and returns this.
|
|
118
|
+
*
|
|
119
|
+
* @param {number} score - jaspar score.
|
|
120
|
+
* @param {string} matrixId - jaspar matrixId.
|
|
121
|
+
* @return {this}
|
|
122
|
+
*/
|
|
123
|
+
withJaspar(score: number, matrixId: string): this;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Everything a Feature is, plus a `values` prop.
|
|
127
|
+
*
|
|
128
|
+
* @author Daofeng Li
|
|
129
|
+
*/
|
|
130
|
+
export declare class NumericalArrayFeature extends Feature {
|
|
131
|
+
values: number[] | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Sets values and returns this.
|
|
134
|
+
*
|
|
135
|
+
* @param {number[]} values - value to attach to this instance.
|
|
136
|
+
* @return {this}
|
|
137
|
+
*/
|
|
138
|
+
withValues(values: readonly number[]): this;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* the feature for a fiber or molecular, with the on and off relative position from start.
|
|
142
|
+
*
|
|
143
|
+
* @author Daofeng Li
|
|
144
|
+
*/
|
|
145
|
+
export declare class Fiber extends Feature {
|
|
146
|
+
ons: number[] | undefined;
|
|
147
|
+
offs: number[] | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Sets values and returns this.
|
|
150
|
+
*
|
|
151
|
+
* @param {number[]} values - value to attach to this instance.
|
|
152
|
+
* @return {this}
|
|
153
|
+
*/
|
|
154
|
+
withFiber(score: number | string, onString: string, offString: string): this;
|
|
155
|
+
}
|
|
156
|
+
export default Feature;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Feature } from "./Feature";
|
|
2
|
+
import DisplayedRegionModel from "./DisplayedRegionModel";
|
|
3
|
+
/**
|
|
4
|
+
* Available aggregators. Note: SUM, MEAN, MIN, and MAX requires each record to have a `value` prop.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AggregatorTypes: {
|
|
7
|
+
MEAN: string;
|
|
8
|
+
SUM: string;
|
|
9
|
+
COUNT: string;
|
|
10
|
+
MIN: string;
|
|
11
|
+
MAX: string;
|
|
12
|
+
IMAGECOUNT: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const ArrayAggregatorTypes: {
|
|
15
|
+
MEAN: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* calculate mean value of each array elements and save to a new array
|
|
19
|
+
* [
|
|
20
|
+
* [1,2,3],
|
|
21
|
+
* [4,5,6]
|
|
22
|
+
* ]
|
|
23
|
+
* to
|
|
24
|
+
* [2.5, 3.5, 4.5]
|
|
25
|
+
* missing number is any position is filled with 0 in original array
|
|
26
|
+
*
|
|
27
|
+
* @param records array of value objest, data stored in values property
|
|
28
|
+
* @param dataKeyName default to `values`
|
|
29
|
+
*/
|
|
30
|
+
export declare function calMeanOfArrays(records: any[], dataKeyName: string): number[];
|
|
31
|
+
export declare const DefaultAggregators: {
|
|
32
|
+
types: {
|
|
33
|
+
MEAN: string;
|
|
34
|
+
SUM: string;
|
|
35
|
+
COUNT: string;
|
|
36
|
+
MIN: string;
|
|
37
|
+
MAX: string;
|
|
38
|
+
IMAGECOUNT: string;
|
|
39
|
+
};
|
|
40
|
+
fromId(id: string): any;
|
|
41
|
+
};
|
|
42
|
+
export declare const DefaultArrayAggregators: {
|
|
43
|
+
types: {
|
|
44
|
+
MEAN: string;
|
|
45
|
+
};
|
|
46
|
+
fromId(id: string): any;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Aggregator of features. Includes methods to construct x-to-data maps.
|
|
50
|
+
*
|
|
51
|
+
* @author Silas Hsu
|
|
52
|
+
*/
|
|
53
|
+
export declare class FeatureAggregator {
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a mapping from x coordinate to all Features overlapping that location. The mapping will be limited
|
|
56
|
+
* to the range [0, width).
|
|
57
|
+
*
|
|
58
|
+
* @param {Feature[]} features - features to use
|
|
59
|
+
* @param {DisplayedRegionModel} viewRegion - used to compute drawing coordinates
|
|
60
|
+
* @param {number} width - width of the visualization
|
|
61
|
+
* @return {Feature[][]} mapping from x coordinate to all Features overlapping that location
|
|
62
|
+
*/
|
|
63
|
+
makeXMap(features: Feature[], viewRegion: DisplayedRegionModel, width: number, useCenter?: boolean): any;
|
|
64
|
+
makeXWindowMap(features: Feature[], viewRegion: DisplayedRegionModel, width: number, useCenter: boolean | undefined, windowSize: number): {
|
|
65
|
+
[x: number]: Feature[];
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import DisplayedRegionModel from "./DisplayedRegionModel";
|
|
2
|
+
import { Feature } from "./Feature";
|
|
3
|
+
import { PlacedFeature } from "./getXSpan/FeaturePlacer";
|
|
4
|
+
import OpenInterval from "./OpenInterval";
|
|
5
|
+
import { SortItemsOptions } from "./SortItemsOptions";
|
|
6
|
+
export interface PlacedFeatureGroup {
|
|
7
|
+
feature: Feature;
|
|
8
|
+
row: number;
|
|
9
|
+
xSpan: OpenInterval;
|
|
10
|
+
placedFeatures: PlacedFeature[];
|
|
11
|
+
}
|
|
12
|
+
export type PaddingFunc = (feature: Feature, xSpan: OpenInterval) => number;
|
|
13
|
+
/**
|
|
14
|
+
* Return value from FeatureArranger::arrange()
|
|
15
|
+
*/
|
|
16
|
+
interface FeatureArrangementResult {
|
|
17
|
+
placements: PlacedFeatureGroup[];
|
|
18
|
+
numRowsAssigned: number;
|
|
19
|
+
numHidden: number;
|
|
20
|
+
}
|
|
21
|
+
export declare class FeatureArranger {
|
|
22
|
+
/**
|
|
23
|
+
* Assigns rows to each placed feature, mutating the objects. Returns the number of rows assigned.
|
|
24
|
+
*
|
|
25
|
+
* @param {PlacedFeature[]} groups - placed features to modify
|
|
26
|
+
* @param {number | PaddingFunc} padding - getter of padding. See the arrange() method for more info.
|
|
27
|
+
* @return {number} the number of rows assigned
|
|
28
|
+
*/
|
|
29
|
+
_assignRows(groups: PlacedFeatureGroup[] | any, padding: number | PaddingFunc, sortItems: SortItemsOptions): number;
|
|
30
|
+
_combineAdjacent(placements: PlacedFeature[]): PlacedFeatureGroup[];
|
|
31
|
+
/**
|
|
32
|
+
* Calculates draw locations for an array of features, as well rows indices to minimize overlaps. This method skips
|
|
33
|
+
* features too small to draw; the number skipped shall be in the return result.
|
|
34
|
+
*
|
|
35
|
+
* The optional `padding` parameter configures horizontal padding for intervals:
|
|
36
|
+
* * If `padding` is a number, all intervals will have that constant padding.
|
|
37
|
+
* * If `padding` is a function, it should take a feature and return the desired horizontal padding.
|
|
38
|
+
*
|
|
39
|
+
* @param {Feature[]} features - features to draw
|
|
40
|
+
* @param {DisplayedRegionModel} viewRegion - used to compute drawing coordinates
|
|
41
|
+
* @param {number} width - width of the visualization
|
|
42
|
+
* @param {number | PaddingFunc} [padding] - horizontal padding for intervals. Default 0.
|
|
43
|
+
* @param {number} [hiddenPixels] - hide an item when its length less than this value. Default 0.5
|
|
44
|
+
* @return {FeatureArrangementResult} suggested draw location info
|
|
45
|
+
*/
|
|
46
|
+
arrange(features: Feature[], viewRegion: DisplayedRegionModel, width: number, padding?: number | PaddingFunc, hiddenPixels?: number, sortItems?: SortItemsOptions): FeatureArrangementResult;
|
|
47
|
+
}
|
|
48
|
+
export default FeatureArranger;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import OpenInterval from "./OpenInterval";
|
|
2
|
+
import ChromosomeInterval from "./ChromosomeInterval";
|
|
3
|
+
/**
|
|
4
|
+
* A 0-indexed open interval within a Feature. Or, put another way, attaches an interval to a Feature.
|
|
5
|
+
*
|
|
6
|
+
* @author Silas Hsu
|
|
7
|
+
* @see Feature
|
|
8
|
+
*/
|
|
9
|
+
export declare class FeatureSegment {
|
|
10
|
+
readonly feature: any;
|
|
11
|
+
readonly relativeStart: number;
|
|
12
|
+
readonly relativeEnd: number;
|
|
13
|
+
/**
|
|
14
|
+
* Makes a new instance, attaching a interval to a Feature. If start and end are not provided, the interval
|
|
15
|
+
* defaults to the entire length of the feature. The start and end parameters should express a *0-indexed open
|
|
16
|
+
* interval*.
|
|
17
|
+
*
|
|
18
|
+
* @param {Feature} feature - the interval's feature
|
|
19
|
+
* @param {number} [start] - start base of the interval, relative to the feature's start
|
|
20
|
+
* @param {number} [end] - end base of the interval, relative to the feature's start
|
|
21
|
+
* @throws {RangeError} if end is before start or the interval lies outside the feature
|
|
22
|
+
*/
|
|
23
|
+
constructor(feature: any, start?: number, end?: number | undefined);
|
|
24
|
+
get start(): number;
|
|
25
|
+
get end(): number;
|
|
26
|
+
/**
|
|
27
|
+
* @return {OpenInterval} new OpenInterval containing this segment's relative start and end.
|
|
28
|
+
*/
|
|
29
|
+
toOpenInterval(): OpenInterval;
|
|
30
|
+
/**
|
|
31
|
+
* @return {string} the attached feature's name
|
|
32
|
+
*/
|
|
33
|
+
getName(): string;
|
|
34
|
+
/**
|
|
35
|
+
* @return {number} this interval's length
|
|
36
|
+
*/
|
|
37
|
+
getLength(): number;
|
|
38
|
+
/**
|
|
39
|
+
* @return {ChromosomeInterval} the genomic location that this segment covers
|
|
40
|
+
*/
|
|
41
|
+
getLocus(): ChromosomeInterval;
|
|
42
|
+
/**
|
|
43
|
+
* Intersects this and another FeatureSegment, and returns the result as a new FeatureSegment. Returns `null` if
|
|
44
|
+
* the *segments' features are different* or if there is no overlap.
|
|
45
|
+
*
|
|
46
|
+
* @param {FeatureSegment} other - other FeatureSegment to intersect
|
|
47
|
+
* @return {FeatureSegment} intersection of this segment and the other one, or null if none exists
|
|
48
|
+
*/
|
|
49
|
+
getOverlap(other: FeatureSegment): FeatureSegment | null;
|
|
50
|
+
/**
|
|
51
|
+
* Intersects this and a genome location, and returns the result as a new FeatureSegment using the same Feature
|
|
52
|
+
* that is attached to this. Returns null if the genome location does not intersect with this location at all.
|
|
53
|
+
*
|
|
54
|
+
* @param {ChromosomeInterval} chrInterval - input genome location
|
|
55
|
+
* @return {FeatureSegment} intersection of this and the input genomic location
|
|
56
|
+
*/
|
|
57
|
+
getGenomeOverlap(chrInterval: ChromosomeInterval): FeatureSegment | null;
|
|
58
|
+
/**
|
|
59
|
+
* @return {string} human-readable representation of this interval
|
|
60
|
+
*/
|
|
61
|
+
toString(): string;
|
|
62
|
+
toStringWithOther(other: FeatureSegment): string;
|
|
63
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import Feature from "./Feature";
|
|
2
|
+
import ChromosomeInterval from "./ChromosomeInterval";
|
|
3
|
+
import Genome from "./Genome";
|
|
4
|
+
type FlankingStrategyType = 0 | 1 | 2;
|
|
5
|
+
/**
|
|
6
|
+
* A FlankingStrategy without the methods.
|
|
7
|
+
*/
|
|
8
|
+
export interface IFlankingStrategy {
|
|
9
|
+
type: FlankingStrategyType;
|
|
10
|
+
upstream: number;
|
|
11
|
+
downstream: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* An algorithm that modifies feature coordinates.
|
|
15
|
+
*
|
|
16
|
+
* @implements {Serializable}
|
|
17
|
+
* @author Silas Hsu
|
|
18
|
+
*/
|
|
19
|
+
declare class FlankingStrategy {
|
|
20
|
+
type: FlankingStrategyType;
|
|
21
|
+
upstream: number;
|
|
22
|
+
downstream: number;
|
|
23
|
+
static SURROUND_ALL: FlankingStrategyType;
|
|
24
|
+
static SURROUND_START: FlankingStrategyType;
|
|
25
|
+
static SURROUND_END: FlankingStrategyType;
|
|
26
|
+
/**
|
|
27
|
+
* Makes a new instance. Does not do any sanity checks; nonsense parameters will cause `makeFlankedFeature` to
|
|
28
|
+
* return null.
|
|
29
|
+
*
|
|
30
|
+
* @param {FlankingStrategyType} [type] - type of strategy; see static variables for a selection
|
|
31
|
+
* @param {number} [upstream] - number of bases upstream to expand input features
|
|
32
|
+
* @param {number} [downstream] - number of bases downstream to expand input features
|
|
33
|
+
*/
|
|
34
|
+
constructor(type?: FlankingStrategyType, upstream?: number, downstream?: number);
|
|
35
|
+
/**
|
|
36
|
+
* @return {this}
|
|
37
|
+
*/
|
|
38
|
+
serialize(): this;
|
|
39
|
+
/**
|
|
40
|
+
* @param {IFlankingStrategy} object
|
|
41
|
+
* @return {IFlankingStrategy}
|
|
42
|
+
*/
|
|
43
|
+
static deserialize(object: IFlankingStrategy): FlankingStrategy;
|
|
44
|
+
/**
|
|
45
|
+
* Shallowly clones this, sets a prop to a value, and returns the result.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} prop - the prop to set
|
|
48
|
+
* @param {any} value - the value to set
|
|
49
|
+
* @return {FlankingStrategy} cloned and modified version of this
|
|
50
|
+
*/
|
|
51
|
+
cloneAndSetProp(prop: string, value: any): FlankingStrategy;
|
|
52
|
+
/**
|
|
53
|
+
* Makes a new Feature with a locus that flanks some part of the input Feature, depending on strategy type. The
|
|
54
|
+
* genome parameter ensures that the modified locus stays within the genome. If the input Feature is not in the
|
|
55
|
+
* genome at all, returns null.
|
|
56
|
+
*
|
|
57
|
+
* @param {Feature} feature - feature whose coordinates to use
|
|
58
|
+
* @param {Genome} genome - the genome in which this feature is located
|
|
59
|
+
* @return {Feature} new Feature whose locus is based off the input Feature
|
|
60
|
+
*/
|
|
61
|
+
makeFlankedFeature(feature: Feature, genome: Genome): Feature | null;
|
|
62
|
+
/**
|
|
63
|
+
* From the input genomic location, makes a new location flanking some part of it depending on this strategy type.
|
|
64
|
+
* Does no checks to ensure the output is within the genome.
|
|
65
|
+
*
|
|
66
|
+
* @param {ChromosomeInterval} locus - location to flank
|
|
67
|
+
* @param {boolean} isForwardStrand - strand of the input; affects what is upstream and downstream
|
|
68
|
+
* @return {ChromosomeInterval} flanked location
|
|
69
|
+
*/
|
|
70
|
+
_makeFlankedCoordinates(locus: ChromosomeInterval, isForwardStrand: boolean): ChromosomeInterval;
|
|
71
|
+
}
|
|
72
|
+
export default FlankingStrategy;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import Feature from "./Feature";
|
|
2
|
+
import OpenInterval from "./OpenInterval";
|
|
3
|
+
import { FeatureSegment } from "./FeatureSegment";
|
|
4
|
+
export interface IdbRecord {
|
|
5
|
+
score?: any;
|
|
6
|
+
id: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
chrom: string;
|
|
9
|
+
strand: string;
|
|
10
|
+
txStart: number;
|
|
11
|
+
txEnd: number;
|
|
12
|
+
cdsStart: number;
|
|
13
|
+
cdsEnd: number;
|
|
14
|
+
exonStarts: string;
|
|
15
|
+
exonEnds: string;
|
|
16
|
+
transcriptionClass?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
collection?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A data container for gene annotations.
|
|
22
|
+
*
|
|
23
|
+
* @author Daofeng Li and Silas Hsu
|
|
24
|
+
*/
|
|
25
|
+
declare class Gene extends Feature {
|
|
26
|
+
dbRecord: any;
|
|
27
|
+
id: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
transcriptionClass?: string;
|
|
30
|
+
collection?: string;
|
|
31
|
+
_translated: OpenInterval[] | null;
|
|
32
|
+
_utrs: OpenInterval[] | null;
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new Gene, given an entry from MongoDB. The other parameters calculate nav context coordinates.
|
|
35
|
+
@example
|
|
36
|
+
{
|
|
37
|
+
}
|
|
38
|
+
* @param {dbRecord} record - dbRecord object to use
|
|
39
|
+
* @param {trackModel} trackModel for gene search information
|
|
40
|
+
*/
|
|
41
|
+
constructor(dbRecord: IdbRecord);
|
|
42
|
+
get translated(): OpenInterval[] | null;
|
|
43
|
+
get utrs(): OpenInterval[] | null;
|
|
44
|
+
/**
|
|
45
|
+
* Parses `this.dbRecord` and sets `this._translated` and `this._utrs`.
|
|
46
|
+
*/
|
|
47
|
+
_parseDetails(): void;
|
|
48
|
+
/**
|
|
49
|
+
* @return {object} exons as lists of FeatureSegment
|
|
50
|
+
*/
|
|
51
|
+
getExonsAsFeatureSegments(): {
|
|
52
|
+
translated: FeatureSegment[];
|
|
53
|
+
utrs: FeatureSegment[];
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export default Gene;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import NavigationContext from "./NavigationContext";
|
|
2
|
+
import ChromosomeInterval from "./ChromosomeInterval";
|
|
3
|
+
import Chromosome from "./Chromosome";
|
|
4
|
+
/**
|
|
5
|
+
* A named set of chromosomes.
|
|
6
|
+
*
|
|
7
|
+
* @author Silas Hsu
|
|
8
|
+
*/
|
|
9
|
+
export declare class Genome {
|
|
10
|
+
private _name;
|
|
11
|
+
private _chromosomes;
|
|
12
|
+
private _nameToChromosome;
|
|
13
|
+
/**
|
|
14
|
+
* Makes a new instance, with name and list of chromosomes. For best results, chromosomes should have unique names.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} name - name of the genome
|
|
17
|
+
* @param {Chromosome[]} chromosomes - list of chromosomes in the genome
|
|
18
|
+
*/
|
|
19
|
+
constructor(name: string, chromosomes: Chromosome[]);
|
|
20
|
+
/**
|
|
21
|
+
* @return {string} this genome's name
|
|
22
|
+
*/
|
|
23
|
+
getName(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Gets a chromosome with the specified name. Returns null if there is no such chromosome.
|
|
26
|
+
*
|
|
27
|
+
* @param {string} name - chromosome name to look up
|
|
28
|
+
* @return {Chromosome} chromosome with the query name, or null if not found
|
|
29
|
+
*/
|
|
30
|
+
getChromosome(name: string): Chromosome;
|
|
31
|
+
/**
|
|
32
|
+
* Intersects a genomic location with this genome. If there is no overlap, then returns null. Possible reasons for
|
|
33
|
+
* null include unknown chromosome name or an interval past the end of a chromosome. Can be used to check/ensure a
|
|
34
|
+
* location actually lies within the genome.
|
|
35
|
+
*
|
|
36
|
+
* @param {ChromosomeInterval} chrInterval - genomic location to intersect with the genome
|
|
37
|
+
* @return {ChromosomeInterval} intersection result, or null if there is no overlap at all
|
|
38
|
+
*/
|
|
39
|
+
intersectInterval(chrInterval: ChromosomeInterval): ChromosomeInterval | null;
|
|
40
|
+
/**
|
|
41
|
+
* Makes a NavigationContext representing this genome. It will have the same name as the genome, and the
|
|
42
|
+
* features/segments will consist of whole chromosomes.
|
|
43
|
+
*
|
|
44
|
+
* @return {NavigationContext} NavigationContext representing this genome
|
|
45
|
+
*/
|
|
46
|
+
makeNavContext(): NavigationContext;
|
|
47
|
+
}
|
|
48
|
+
export default Genome;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Feature, Strand } from "./Feature";
|
|
2
|
+
import ChromosomeInterval, { IChromosomeInterval } from "./ChromosomeInterval";
|
|
3
|
+
/**
|
|
4
|
+
* The properties of GraphNode without the methods.
|
|
5
|
+
*/
|
|
6
|
+
export interface IGraphNode {
|
|
7
|
+
name: string;
|
|
8
|
+
locus: IChromosomeInterval;
|
|
9
|
+
strand: Strand;
|
|
10
|
+
rank: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A GraphNode, in the graph genome.
|
|
14
|
+
* a feature with rank, maybe other methods and props in future so in a separate file
|
|
15
|
+
* @author Daofeng Li
|
|
16
|
+
*/
|
|
17
|
+
export declare class GraphNode extends Feature {
|
|
18
|
+
locus: ChromosomeInterval;
|
|
19
|
+
rank: number;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param {string} [name] - name of the node
|
|
23
|
+
* @param {ChromosomeInterval} locus - genomic location of the node
|
|
24
|
+
*/
|
|
25
|
+
constructor(name: string, locus: ChromosomeInterval, rank?: number);
|
|
26
|
+
serialize(): IGraphNode;
|
|
27
|
+
static deserialize(object: IGraphNode): GraphNode;
|
|
28
|
+
getRank(): number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* the raw data from brgfa file record
|
|
32
|
+
* @param raw
|
|
33
|
+
* {len: 8677
|
|
34
|
+
name: "s73410"
|
|
35
|
+
rank: 0
|
|
36
|
+
sname: "chr7"
|
|
37
|
+
soff: 26715364}
|
|
38
|
+
*/
|
|
39
|
+
export interface IRawNode {
|
|
40
|
+
len: number;
|
|
41
|
+
name: string;
|
|
42
|
+
rank: number;
|
|
43
|
+
sname: string;
|
|
44
|
+
soff: number;
|
|
45
|
+
}
|
|
46
|
+
export declare function nodeFromRawNode(raw: IRawNode): GraphNode;
|