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.
Files changed (350) hide show
  1. package/dist/CanvasPool-BD4ZA6VU.mjs +46 -0
  2. package/dist/SharedSystems-BNa57PRW.mjs +2521 -0
  3. package/dist/WebGLRenderer-DWCYIsx2.mjs +2624 -0
  4. package/dist/WebGPURenderer-BxRqKjyD.mjs +1613 -0
  5. package/dist/browserAll-CQks4WgI.mjs +2134 -0
  6. package/dist/colorToUniform-BcHZBaJ_.mjs +218 -0
  7. package/dist/components/GenomeView/GenomeRoot.d.ts +5 -0
  8. package/dist/components/GenomeView/ToolComponents/HighlightMenu.d.ts +20 -0
  9. package/dist/components/GenomeView/ToolComponents/MetadataHeader.d.ts +9 -0
  10. package/dist/components/GenomeView/ToolComponents/MetadataSelectionMenu.d.ts +10 -0
  11. package/dist/components/GenomeView/ToolComponents/Tools.d.ts +32 -0
  12. package/dist/components/GenomeView/TrackComponents/3dmol/ArrowList.d.ts +9 -0
  13. package/dist/components/GenomeView/TrackComponents/3dmol/BigwigSource.d.ts +7 -0
  14. package/dist/components/GenomeView/TrackComponents/3dmol/CategoryLegend.d.ts +7 -0
  15. package/dist/components/GenomeView/TrackComponents/3dmol/ColorPicker.d.ts +12 -0
  16. package/dist/components/GenomeView/TrackComponents/3dmol/FrameListMenu.d.ts +6 -0
  17. package/dist/components/GenomeView/TrackComponents/3dmol/HoverInfo.d.ts +20 -0
  18. package/dist/components/GenomeView/TrackComponents/3dmol/Legend.d.ts +6 -0
  19. package/dist/components/GenomeView/TrackComponents/3dmol/ModelListMenu.d.ts +7 -0
  20. package/dist/components/GenomeView/TrackComponents/3dmol/OpacityThickness.d.ts +4 -0
  21. package/dist/components/GenomeView/TrackComponents/3dmol/ResolutionList.d.ts +8 -0
  22. package/dist/components/GenomeView/TrackComponents/3dmol/ShapeList.d.ts +10 -0
  23. package/dist/components/GenomeView/TrackComponents/3dmol/StaticLegend.d.ts +6 -0
  24. package/dist/components/GenomeView/TrackComponents/3dmol/ThreedmolContainer.d.ts +261 -0
  25. package/dist/components/GenomeView/TrackComponents/3dmol/binning.d.ts +36 -0
  26. package/dist/components/GenomeView/TrackComponents/3dmol/helpers-3dmol.d.ts +68 -0
  27. package/dist/components/GenomeView/TrackComponents/BamComponents/BamAnnotation.d.ts +45 -0
  28. package/dist/components/GenomeView/TrackComponents/CategoricalComponents/CategoricalAnnotation.d.ts +48 -0
  29. package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/cacheFetchedData.d.ts +23 -0
  30. package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/getDataAfterConfigChange.d.ts +11 -0
  31. package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/getTrackPixelXOffset.d.ts +3 -0
  32. package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/trackGlobalState.d.ts +6 -0
  33. package/dist/components/GenomeView/TrackComponents/DynseqComponents/DynseqTrackComponents.d.ts +80 -0
  34. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/AlignmentCoordinate.d.ts +19 -0
  35. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/GenomeAlignComponents.d.ts +45 -0
  36. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/HorizontalFragment.d.ts +20 -0
  37. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/MultiAlignmentViewCalculator.d.ts +112 -0
  38. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/Sequence.d.ts +39 -0
  39. package/dist/components/GenomeView/TrackComponents/GroupedTrackManager.d.ts +54 -0
  40. package/dist/components/GenomeView/TrackComponents/InteractionComponents/ArcDisplay.d.ts +37 -0
  41. package/dist/components/GenomeView/TrackComponents/InteractionComponents/CubicCurveDisplay.d.ts +22 -0
  42. package/dist/components/GenomeView/TrackComponents/InteractionComponents/Heatmap.d.ts +40 -0
  43. package/dist/components/GenomeView/TrackComponents/InteractionComponents/InteractionTrackComponent.d.ts +74 -0
  44. package/dist/components/GenomeView/TrackComponents/InteractionComponents/PixiArc.d.ts +60 -0
  45. package/dist/components/GenomeView/TrackComponents/InteractionComponents/PixiHeatmap.d.ts +78 -0
  46. package/dist/components/GenomeView/TrackComponents/InteractionComponents/SquareDisplay.d.ts +32 -0
  47. package/dist/components/GenomeView/TrackComponents/MethylcComponents/MethylCTrackComputation.d.ts +71 -0
  48. package/dist/components/GenomeView/TrackComponents/QBedComponents/QBedTrackComponents.d.ts +74 -0
  49. package/dist/components/GenomeView/TrackComponents/RulerComponents/Ruler.d.ts +17 -0
  50. package/dist/components/GenomeView/TrackComponents/RulerComponents/RulerComponent.d.ts +19 -0
  51. package/dist/components/GenomeView/TrackComponents/SnpComponents/SnpAnnotation.d.ts +17 -0
  52. package/dist/components/GenomeView/TrackComponents/SnpComponents/SnpDetail.d.ts +7 -0
  53. package/dist/components/GenomeView/TrackComponents/TrackFactory.d.ts +4 -0
  54. package/dist/components/GenomeView/TrackComponents/VcfComponents/Vcf.d.ts +22 -0
  55. package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfAnnotation.d.ts +41 -0
  56. package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfDetail.d.ts +14 -0
  57. package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfTrack.d.ts +69 -0
  58. package/dist/components/GenomeView/TrackComponents/bedComponents/BedAnnotation.d.ts +33 -0
  59. package/dist/components/GenomeView/TrackComponents/bedComponents/Bedcolor.d.ts +13 -0
  60. package/dist/components/GenomeView/TrackComponents/bedComponents/BedcolorTrack.d.ts +6 -0
  61. package/dist/components/GenomeView/TrackComponents/bedComponents/DynamicBedTrackComponents.d.ts +28 -0
  62. package/dist/components/GenomeView/TrackComponents/bedComponents/FiberAnnotation.d.ts +33 -0
  63. package/dist/components/GenomeView/TrackComponents/bedComponents/FiberTrackComponent.d.ts +90 -0
  64. package/dist/components/GenomeView/TrackComponents/commonComponents/CopyToClipboard.d.ts +11 -0
  65. package/dist/components/GenomeView/TrackComponents/commonComponents/HoverToolTips/GenomicCoordinates.d.ts +23 -0
  66. package/dist/components/GenomeView/TrackComponents/commonComponents/HoverToolTips/HoverToolTip.d.ts +89 -0
  67. package/dist/components/GenomeView/TrackComponents/commonComponents/MetadataIndicator.d.ts +11 -0
  68. package/dist/components/GenomeView/TrackComponents/commonComponents/OutsideClickDetector.d.ts +8 -0
  69. package/dist/components/GenomeView/TrackComponents/commonComponents/Resize.d.ts +6 -0
  70. package/dist/components/GenomeView/TrackComponents/commonComponents/TrackLegend.d.ts +39 -0
  71. package/dist/components/GenomeView/TrackComponents/commonComponents/TrackMessage.d.ts +33 -0
  72. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/AnnotationArrows.d.ts +28 -0
  73. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/AnnotationTrack.d.ts +25 -0
  74. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/FeatureDetail.d.ts +20 -0
  75. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/FullDisplayMode.d.ts +45 -0
  76. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/JasparDetail.d.ts +12 -0
  77. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/PixiAnnotation.d.ts +67 -0
  78. package/dist/components/GenomeView/TrackComponents/commonComponents/art/DesignRenderer.d.ts +30 -0
  79. package/dist/components/GenomeView/TrackComponents/commonComponents/art/RulerDesigner.d.ts +102 -0
  80. package/dist/components/GenomeView/TrackComponents/commonComponents/check-obj-dupe.d.ts +8 -0
  81. package/dist/components/GenomeView/TrackComponents/commonComponents/chr-order/SortableItem.d.ts +11 -0
  82. package/dist/components/GenomeView/TrackComponents/commonComponents/chr-order/SortableTrack.d.ts +17 -0
  83. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/DynamicNumericalTrack.d.ts +37 -0
  84. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/DynamicplotTrackComponent.d.ts +80 -0
  85. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/GenomicCoordinates.d.ts +23 -0
  86. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/MatplotTrackComponent.d.ts +65 -0
  87. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalAggregator.d.ts +5 -0
  88. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalTrack.d.ts +39 -0
  89. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/PixiScene.d.ts +66 -0
  90. package/dist/components/GenomeView/TrackComponents/commonComponents/stats/BoxplotTrackComponents.d.ts +106 -0
  91. package/dist/components/GenomeView/TrackComponents/defaultOptionsMap.d.ts +3 -0
  92. package/dist/components/GenomeView/TrackComponents/displayModeComponentMap.d.ts +9 -0
  93. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/BackgroundedText.d.ts +50 -0
  94. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/GeneAnnotation.d.ts +33 -0
  95. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/GeneAnnotationScaffold.d.ts +26 -0
  96. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/GeneDetail.d.ts +19 -0
  97. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/TranslatableG.d.ts +15 -0
  98. package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroHtmlVisualizer.d.ts +41 -0
  99. package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroSvgVisualizer.d.ts +35 -0
  100. package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroTrackComponents.d.ts +33 -0
  101. package/dist/components/GenomeView/TrackManager.d.ts +31 -0
  102. package/dist/components/GenomeView/genomeNavigator/Chromosomes.d.ts +94 -0
  103. package/dist/components/GenomeView/genomeNavigator/DragAcrossDiv.d.ts +71 -0
  104. package/dist/components/GenomeView/genomeNavigator/GeneSearchBox.d.ts +15 -0
  105. package/dist/components/GenomeView/genomeNavigator/GeneSearchBox3D.d.ts +22 -0
  106. package/dist/components/GenomeView/genomeNavigator/GeneSearchBoxBase.d.ts +18 -0
  107. package/dist/components/GenomeView/genomeNavigator/GenomeNavigator.d.ts +87 -0
  108. package/dist/components/GenomeView/genomeNavigator/IsoformSelection.d.ts +11 -0
  109. package/dist/components/GenomeView/genomeNavigator/MainPane.d.ts +68 -0
  110. package/dist/components/GenomeView/genomeNavigator/Ruler.d.ts +23 -0
  111. package/dist/components/GenomeView/genomeNavigator/SelectableGenomeArea.d.ts +34 -0
  112. package/dist/components/GenomeView/genomeNavigator/SelectedRegionBox.d.ts +48 -0
  113. package/dist/components/GenomeView/genomeNavigator/SnpSearchBox.d.ts +14 -0
  114. package/dist/components/GenomeView/genomeNavigator/TrackRegionController.d.ts +19 -0
  115. package/dist/genome-hub/GenomeHubManager.d.ts +15 -0
  116. package/dist/genome-hub/GenomeSerializer.d.ts +13 -0
  117. package/dist/genome-hub/LocalGenomeRepository.d.ts +15 -0
  118. package/dist/genome-hub/genome-schema.d.ts +198 -0
  119. package/dist/genome-hub/index.d.ts +3 -0
  120. package/dist/getLocalData/BedTextSource.d.ts +22 -0
  121. package/dist/getLocalData/LocalBigSourceGmod.d.ts +28 -0
  122. package/dist/getLocalData/LongrangeAndreaTextSource.d.ts +11 -0
  123. package/dist/getLocalData/localFetchData.d.ts +6 -0
  124. package/dist/getLocalData/localTabixSource.d.ts +50 -0
  125. package/dist/getLocalData/localTextSource.d.ts +13 -0
  126. package/dist/getRemoteData/BamSource.d.ts +10 -0
  127. package/dist/getRemoteData/BigSourceWorker.d.ts +47 -0
  128. package/dist/getRemoteData/BigSourceWorkerGmod.d.ts +25 -0
  129. package/dist/getRemoteData/GenomeInteraction.d.ts +20 -0
  130. package/dist/getRemoteData/HicDataModes.d.ts +19 -0
  131. package/dist/getRemoteData/JasparSource.d.ts +8 -0
  132. package/dist/getRemoteData/RepeatSource.d.ts +8 -0
  133. package/dist/getRemoteData/TwoBitSource.d.ts +31 -0
  134. package/dist/getRemoteData/VcfSource.d.ts +10 -0
  135. package/dist/getRemoteData/fetchDataWorker.d.ts +61 -0
  136. package/dist/getRemoteData/fetchGenomeAlignWorker.d.ts +64 -0
  137. package/dist/getRemoteData/fetchTrackData.d.ts +4 -0
  138. package/dist/getRemoteData/g3dFileV2.d.ts +15 -0
  139. package/dist/getRemoteData/hicSource.d.ts +83 -0
  140. package/dist/getRemoteData/io/browserLocalFile.d.ts +6 -0
  141. package/dist/getRemoteData/io/remoteFile.d.ts +7 -0
  142. package/dist/getRemoteData/tabixSource.d.ts +46 -0
  143. package/dist/getRemoteData/vendor/bbi-js/main/bigwig.d.ts +1 -0
  144. package/dist/getRemoteData/vendor/bbi-js/utils/bin.d.ts +1 -0
  145. package/dist/getRemoteData/vendor/bbi-js/utils/das.d.ts +6 -0
  146. package/dist/getRemoteData/vendor/bbi-js/utils/jszlib.d.ts +1 -0
  147. package/dist/getRemoteData/vendor/bbi-js/utils/sha1.d.ts +1 -0
  148. package/dist/getRemoteData/vendor/bbi-js/utils/spans.d.ts +13 -0
  149. package/dist/index-Cs2whU2f.mjs +417589 -0
  150. package/dist/index.d.ts +5 -0
  151. package/dist/index.es.js +68 -0
  152. package/dist/index.umd.js +1644 -0
  153. package/dist/init-Afno6ASC.mjs +2871 -0
  154. package/dist/models/AlignmentRecord.d.ts +20 -0
  155. package/dist/models/AlignmentSegment.d.ts +51 -0
  156. package/dist/models/AlignmentStringUtils.d.ts +73 -0
  157. package/dist/models/AppSaveLoad.d.ts +76 -0
  158. package/dist/models/BamAlignment.d.ts +81 -0
  159. package/dist/models/BamRecord.d.ts +96 -0
  160. package/dist/models/BedRecord.d.ts +13 -0
  161. package/dist/models/BinIndexer.d.ts +28 -0
  162. package/dist/models/Chromosome.d.ts +24 -0
  163. package/dist/models/ChromosomeInterval.d.ts +107 -0
  164. package/dist/models/DataHubParser.d.ts +4 -0
  165. package/dist/models/DisplayedRegionModel.d.ts +114 -0
  166. package/dist/models/DownsamplingChoices.d.ts +4 -0
  167. package/dist/models/Feature.d.ts +156 -0
  168. package/dist/models/FeatureAggregator.d.ts +67 -0
  169. package/dist/models/FeatureArranger.d.ts +48 -0
  170. package/dist/models/FeatureSegment.d.ts +63 -0
  171. package/dist/models/FlankingStrategy.d.ts +72 -0
  172. package/dist/models/Gene.d.ts +56 -0
  173. package/dist/models/Genome.d.ts +48 -0
  174. package/dist/models/GraphNode.d.ts +46 -0
  175. package/dist/models/ImageRecord.d.ts +12 -0
  176. package/dist/models/Json5Fetcher.d.ts +10 -0
  177. package/dist/models/LinearDrawingModel.d.ts +75 -0
  178. package/dist/models/LogChoices.d.ts +4 -0
  179. package/dist/models/MethylCRecord.d.ts +41 -0
  180. package/dist/models/NavContextBuilder.d.ts +17 -0
  181. package/dist/models/NavigationContext.d.ts +168 -0
  182. package/dist/models/OpenInterval.d.ts +57 -0
  183. package/dist/models/QBed.d.ts +15 -0
  184. package/dist/models/RegionExpander.d.ts +51 -0
  185. package/dist/models/RegionSet.d.ts +85 -0
  186. package/dist/models/RepeatMaskerFeature.d.ts +61 -0
  187. package/dist/models/ScaleChoices.d.ts +4 -0
  188. package/dist/models/SequenceData.d.ts +6 -0
  189. package/dist/models/Snp.d.ts +34 -0
  190. package/dist/models/SortItemsOptions.d.ts +6 -0
  191. package/dist/models/TrackModel.d.ts +142 -0
  192. package/dist/models/binning.d.ts +29 -0
  193. package/dist/models/genomes/Creinhardtii506/Creinhardtii506.d.ts +18 -0
  194. package/dist/models/genomes/CytobandTypes.d.ts +17 -0
  195. package/dist/models/genomes/GRCg7b/GRCg7b.d.ts +17 -0
  196. package/dist/models/genomes/GRCg7w/GRCg7w.d.ts +17 -0
  197. package/dist/models/genomes/GenomeConfig.d.ts +16 -0
  198. package/dist/models/genomes/allGenomes.d.ts +201 -0
  199. package/dist/models/genomes/aplCal3/aplCal3.d.ts +18 -0
  200. package/dist/models/genomes/araTha1/araTha1.d.ts +18 -0
  201. package/dist/models/genomes/bosTau8/bosTau8.d.ts +18 -0
  202. package/dist/models/genomes/brapa/brara_chiifu_v3.0.d.ts +17 -0
  203. package/dist/models/genomes/calJac3/calJac3.d.ts +17 -0
  204. package/dist/models/genomes/calJac4/calJac4.d.ts +18 -0
  205. package/dist/models/genomes/canFam2/canFam2.d.ts +16 -0
  206. package/dist/models/genomes/canFam3/canFam3.d.ts +18 -0
  207. package/dist/models/genomes/canFam6/canFam6.d.ts +18 -0
  208. package/dist/models/genomes/ce11/ce11.d.ts +18 -0
  209. package/dist/models/genomes/danRer10/danRer10.d.ts +17 -0
  210. package/dist/models/genomes/danRer10/scaffolds.d.ts +3 -0
  211. package/dist/models/genomes/danRer11/danRer11.d.ts +35 -0
  212. package/dist/models/genomes/danRer7/danRer7.d.ts +18 -0
  213. package/dist/models/genomes/dm6/dm6.d.ts +35 -0
  214. package/dist/models/genomes/galGal5/galGal5.d.ts +35 -0
  215. package/dist/models/genomes/galGal6/galGal6.d.ts +18 -0
  216. package/dist/models/genomes/gorGor3/gorGor3.d.ts +17 -0
  217. package/dist/models/genomes/gorGor4/gorGor4.d.ts +18 -0
  218. package/dist/models/genomes/hg19/hg19.d.ts +65 -0
  219. package/dist/models/genomes/hg38/hg38.d.ts +103 -0
  220. package/dist/models/genomes/lepOcu1/lepOcu1.d.ts +17 -0
  221. package/dist/models/genomes/mm10/mm10.d.ts +94 -0
  222. package/dist/models/genomes/mm39/mm39.d.ts +27 -0
  223. package/dist/models/genomes/mm9/mm9.d.ts +18 -0
  224. package/dist/models/genomes/monDom5/monDom5.d.ts +18 -0
  225. package/dist/models/genomes/nomLeu3/nomLeu3.d.ts +17 -0
  226. package/dist/models/genomes/oryCun2/oryCun2.d.ts +18 -0
  227. package/dist/models/genomes/oviAri4/oviAri4.d.ts +18 -0
  228. package/dist/models/genomes/panTro4/panTro4.d.ts +17 -0
  229. package/dist/models/genomes/panTro5/panTro5.d.ts +18 -0
  230. package/dist/models/genomes/panTro6/panTro6.d.ts +18 -0
  231. package/dist/models/genomes/papAnu2/papAnu2.d.ts +17 -0
  232. package/dist/models/genomes/pfal3d7/pfal3d7.d.ts +39 -0
  233. package/dist/models/genomes/phaw5/phaw5.d.ts +17 -0
  234. package/dist/models/genomes/rheMac10/rheMac10.d.ts +18 -0
  235. package/dist/models/genomes/rheMac2/rheMac2.d.ts +17 -0
  236. package/dist/models/genomes/rheMac3/rheMac3.d.ts +17 -0
  237. package/dist/models/genomes/rheMac8/rheMac8.d.ts +18 -0
  238. package/dist/models/genomes/rn4/rn4.d.ts +18 -0
  239. package/dist/models/genomes/rn6/rn6.d.ts +18 -0
  240. package/dist/models/genomes/rn7/rn7.d.ts +18 -0
  241. package/dist/models/genomes/sacCer3/sacCer3.d.ts +30 -0
  242. package/dist/models/genomes/susScr11/susScr11.d.ts +18 -0
  243. package/dist/models/genomes/susScr3/susScr3.d.ts +18 -0
  244. package/dist/models/genomes/t2t-chm13-v1.1/chm13.d.ts +17 -0
  245. package/dist/models/genomes/t2t-chm13-v2.0/chm13v2.d.ts +18 -0
  246. package/dist/models/genomes/trypanosome/TbruceiLister427.d.ts +32 -0
  247. package/dist/models/genomes/trypanosome/TbruceiTREU927.d.ts +32 -0
  248. package/dist/models/genomes/virus/ebola.d.ts +47 -0
  249. package/dist/models/genomes/virus/hpv16.d.ts +28 -0
  250. package/dist/models/genomes/virus/mers.d.ts +54 -0
  251. package/dist/models/genomes/virus/nCoV2019.d.ts +382 -0
  252. package/dist/models/genomes/virus/sars.d.ts +53 -0
  253. package/dist/models/genomes/xenTro10/xenTro10.d.ts +18 -0
  254. package/dist/models/getXSpan/FeaturePlacer.d.ts +86 -0
  255. package/dist/models/index.d.ts +28 -0
  256. package/dist/models/layoutUtils.d.ts +39 -0
  257. package/dist/models/trackModels/trackProps.d.ts +40 -0
  258. package/dist/models/util.d.ts +102 -0
  259. package/dist/style.css +1 -0
  260. package/dist/track-container/index.d.ts +9 -0
  261. package/dist/trackConfigs/config-menu-components.tsx/AlwaysDrawLabelConfig.d.ts +8 -0
  262. package/dist/trackConfigs/config-menu-components.tsx/ArrayAggregateConfig.d.ts +6 -0
  263. package/dist/trackConfigs/config-menu-components.tsx/BothAnchorsInViewConfig.d.ts +8 -0
  264. package/dist/trackConfigs/config-menu-components.tsx/CategoryColorConfig.d.ts +15 -0
  265. package/dist/trackConfigs/config-menu-components.tsx/ClampHeightConfig.d.ts +8 -0
  266. package/dist/trackConfigs/config-menu-components.tsx/Collapsible.d.ts +7 -0
  267. package/dist/trackConfigs/config-menu-components.tsx/ColorConfig.d.ts +102 -0
  268. package/dist/trackConfigs/config-menu-components.tsx/ColorPicker.d.ts +9 -0
  269. package/dist/trackConfigs/config-menu-components.tsx/CombineStrandConfig.d.ts +8 -0
  270. package/dist/trackConfigs/config-menu-components.tsx/DisplayModeConfig.d.ts +21 -0
  271. package/dist/trackConfigs/config-menu-components.tsx/EnsemblStyleConfig.d.ts +8 -0
  272. package/dist/trackConfigs/config-menu-components.tsx/FetchViewWindowConfig.d.ts +8 -0
  273. package/dist/trackConfigs/config-menu-components.tsx/HeightConfig.d.ts +8 -0
  274. package/dist/trackConfigs/config-menu-components.tsx/HicDataConfig.d.ts +14 -0
  275. package/dist/trackConfigs/config-menu-components.tsx/HiddenPixelsConfig.d.ts +8 -0
  276. package/dist/trackConfigs/config-menu-components.tsx/HideMinimalItemsConfig.d.ts +8 -0
  277. package/dist/trackConfigs/config-menu-components.tsx/HorizontalLineValueConfig.d.ts +8 -0
  278. package/dist/trackConfigs/config-menu-components.tsx/ItalicizeTextConfig.d.ts +8 -0
  279. package/dist/trackConfigs/config-menu-components.tsx/LabelConfig.d.ts +7 -0
  280. package/dist/trackConfigs/config-menu-components.tsx/LineWidthConfig.d.ts +8 -0
  281. package/dist/trackConfigs/config-menu-components.tsx/LogScaleConfig.d.ts +8 -0
  282. package/dist/trackConfigs/config-menu-components.tsx/MarkerSizeConfig.d.ts +8 -0
  283. package/dist/trackConfigs/config-menu-components.tsx/MaxMethylAndDepthFilterConfig.d.ts +8 -0
  284. package/dist/trackConfigs/config-menu-components.tsx/MaxRowsConfig.d.ts +8 -0
  285. package/dist/trackConfigs/config-menu-components.tsx/MaxValueFilterConfig.d.ts +8 -0
  286. package/dist/trackConfigs/config-menu-components.tsx/MethylColorConfig.d.ts +16 -0
  287. package/dist/trackConfigs/config-menu-components.tsx/MinValueFilterConfig.d.ts +8 -0
  288. package/dist/trackConfigs/config-menu-components.tsx/NumberConfig.d.ts +43 -0
  289. package/dist/trackConfigs/config-menu-components.tsx/OmeroImageHeightConfig.d.ts +8 -0
  290. package/dist/trackConfigs/config-menu-components.tsx/OpacitySilderConfig.d.ts +8 -0
  291. package/dist/trackConfigs/config-menu-components.tsx/PixelsPaddingConfig.d.ts +8 -0
  292. package/dist/trackConfigs/config-menu-components.tsx/PlayingConfig.d.ts +8 -0
  293. package/dist/trackConfigs/config-menu-components.tsx/RowHeightConfig.d.ts +8 -0
  294. package/dist/trackConfigs/config-menu-components.tsx/ScalePercentileConfig.d.ts +8 -0
  295. package/dist/trackConfigs/config-menu-components.tsx/ScoreConfig.d.ts +8 -0
  296. package/dist/trackConfigs/config-menu-components.tsx/SelectConfig.d.ts +11 -0
  297. package/dist/trackConfigs/config-menu-components.tsx/ShowHorizontalLineConfig.d.ts +8 -0
  298. package/dist/trackConfigs/config-menu-components.tsx/SingleInputConfig.d.ts +14 -0
  299. package/dist/trackConfigs/config-menu-components.tsx/SliderConfig.d.ts +51 -0
  300. package/dist/trackConfigs/config-menu-components.tsx/SmoothConfig.d.ts +8 -0
  301. package/dist/trackConfigs/config-menu-components.tsx/SortItemsConfig.d.ts +2 -0
  302. package/dist/trackConfigs/config-menu-components.tsx/SpeedConfig.d.ts +8 -0
  303. package/dist/trackConfigs/config-menu-components.tsx/TrackConfigMenu.d.ts +2 -0
  304. package/dist/trackConfigs/config-menu-components.tsx/TrackContextMenu.d.ts +6 -0
  305. package/dist/trackConfigs/config-menu-components.tsx/UseDynamicColorsConfig.d.ts +8 -0
  306. package/dist/trackConfigs/config-menu-components.tsx/WindowSizeConfig.d.ts +8 -0
  307. package/dist/trackConfigs/config-menu-components.tsx/YscaleConfig.d.ts +8 -0
  308. package/dist/trackConfigs/config-menu-models.tsx/AggregateConfig.d.ts +6 -0
  309. package/dist/trackConfigs/config-menu-models.tsx/AnnotationTrackConfig.d.ts +16 -0
  310. package/dist/trackConfigs/config-menu-models.tsx/BamTrackConfig.d.ts +6 -0
  311. package/dist/trackConfigs/config-menu-models.tsx/BedGraphTrackConfig.d.ts +3 -0
  312. package/dist/trackConfigs/config-menu-models.tsx/BedTrackConfig.d.ts +10 -0
  313. package/dist/trackConfigs/config-menu-models.tsx/BedcolorTrackConfig.d.ts +4 -0
  314. package/dist/trackConfigs/config-menu-models.tsx/BigBedTrackConfig.d.ts +4 -0
  315. package/dist/trackConfigs/config-menu-models.tsx/BigInteractTrackConfig.d.ts +12 -0
  316. package/dist/trackConfigs/config-menu-models.tsx/BigWigTrackConfig.d.ts +7 -0
  317. package/dist/trackConfigs/config-menu-models.tsx/BoxplotTrackConfig.d.ts +8 -0
  318. package/dist/trackConfigs/config-menu-models.tsx/CategoricalTrackConfig.d.ts +12 -0
  319. package/dist/trackConfigs/config-menu-models.tsx/DisplayModes.d.ts +49 -0
  320. package/dist/trackConfigs/config-menu-models.tsx/DynamicBedGraphTrackConfig.d.ts +5 -0
  321. package/dist/trackConfigs/config-menu-models.tsx/DynamicBedTrackConfig.d.ts +5 -0
  322. package/dist/trackConfigs/config-menu-models.tsx/DynamicHicTrackConfig.d.ts +5 -0
  323. package/dist/trackConfigs/config-menu-models.tsx/DynamicLongrangeTrackConfig.d.ts +5 -0
  324. package/dist/trackConfigs/config-menu-models.tsx/DynamicplotTrackConfig.d.ts +4 -0
  325. package/dist/trackConfigs/config-menu-models.tsx/DynseqTrackConfig.d.ts +7 -0
  326. package/dist/trackConfigs/config-menu-models.tsx/FiberTrackConfig.d.ts +4 -0
  327. package/dist/trackConfigs/config-menu-models.tsx/GeneAnnotationTrackConfig.d.ts +4 -0
  328. package/dist/trackConfigs/config-menu-models.tsx/GenomeAlignTrackConfig.d.ts +4 -0
  329. package/dist/trackConfigs/config-menu-models.tsx/HicTrackConfig.d.ts +7 -0
  330. package/dist/trackConfigs/config-menu-models.tsx/JasparTrackConfig.d.ts +4 -0
  331. package/dist/trackConfigs/config-menu-models.tsx/LongRangeTrackConfig.d.ts +6 -0
  332. package/dist/trackConfigs/config-menu-models.tsx/MatplotTrackConfig.d.ts +4 -0
  333. package/dist/trackConfigs/config-menu-models.tsx/MethylCTrackConfig.d.ts +4 -0
  334. package/dist/trackConfigs/config-menu-models.tsx/NumericalTrackConfig.d.ts +4 -0
  335. package/dist/trackConfigs/config-menu-models.tsx/OmeroTrackConfig.d.ts +5 -0
  336. package/dist/trackConfigs/config-menu-models.tsx/OmeroidrTrackConfig.d.ts +5 -0
  337. package/dist/trackConfigs/config-menu-models.tsx/QBedTrackConfig.d.ts +4 -0
  338. package/dist/trackConfigs/config-menu-models.tsx/RefBedTrackConfig.d.ts +4 -0
  339. package/dist/trackConfigs/config-menu-models.tsx/RepeatMaskerTrackConfig.d.ts +4 -0
  340. package/dist/trackConfigs/config-menu-models.tsx/RulerTrackConfig.d.ts +4 -0
  341. package/dist/trackConfigs/config-menu-models.tsx/SnpTrackConfig.d.ts +4 -0
  342. package/dist/trackConfigs/config-menu-models.tsx/TrackConfig.d.ts +11 -0
  343. package/dist/trackConfigs/config-menu-models.tsx/VcfTrackConfig.d.ts +5 -0
  344. package/dist/trackConfigs/config-menu-models.tsx/aggregateOptions.d.ts +12 -0
  345. package/dist/trackConfigs/config-menu-models.tsx/getTrackConfig.d.ts +76 -0
  346. package/dist/types/genome-hub.d.ts +24 -0
  347. package/dist/types/index.d.ts +2 -0
  348. package/dist/types/track-container.d.ts +99 -0
  349. package/dist/webworkerAll-CTtTToDi.mjs +2 -0
  350. 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,10 @@
1
+ declare class Json5Fetcher {
2
+ /**
3
+ * Gets JSON5 from a URL.
4
+ *
5
+ * @param {string} url - the URL from which to fetch
6
+ * @return {Promise<Object>} promise for parsed JSON
7
+ */
8
+ get(url: string): Promise<any>;
9
+ }
10
+ export default Json5Fetcher;
@@ -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,4 @@
1
+ export declare enum LogChoices {
2
+ AUTO = "none",
3
+ BASE10 = "log10"
4
+ }
@@ -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,4 @@
1
+ export declare enum ScaleChoices {
2
+ AUTO = "auto",
3
+ FIXED = "fixed"
4
+ }
@@ -0,0 +1,6 @@
1
+ import { Feature } from "./Feature";
2
+ import ChromosomeInterval from "./ChromosomeInterval";
3
+ export declare class SequenceData extends Feature {
4
+ sequence: string;
5
+ constructor(locus: ChromosomeInterval, sequence: string);
6
+ }
@@ -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;
@@ -0,0 +1,6 @@
1
+ export declare enum SortItemsOptions {
2
+ NONE = "NONE",
3
+ ASC = "ASC",
4
+ DESC = "DESC",
5
+ NOSORT = "NOSORT"
6
+ }