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,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,4 @@
1
+ export declare enum DownsamplingChoices {
2
+ ALL = "all",
3
+ SAMPLE = "sample"
4
+ }
@@ -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;