wuepgg3-track 3.0.3 → 4.0.0

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 (84) hide show
  1. package/dist/{SharedSystems-Czb8QUFv.mjs → SharedSystems-CQUTbUIx.mjs} +675 -433
  2. package/dist/{WebGLRenderer-Bd4vvqtJ.mjs → WebGLRenderer-zlVosyby.mjs} +417 -382
  3. package/dist/{WebGPURenderer-CVU5sf4P.mjs → WebGPURenderer-OAybUJeH.mjs} +277 -258
  4. package/dist/{browserAll-CZ03TD2_.mjs → browserAll-Byje74wY.mjs} +2 -2
  5. package/dist/{colorToUniform-BwrjBKZW.mjs → colorToUniform-COOzkdM9.mjs} +9 -8
  6. package/dist/components/GenomeView/TrackComponents/BamComponents/BamAnnotation.d.ts +1 -1
  7. package/dist/components/GenomeView/TrackComponents/CategoricalComponents/CategoricalAnnotation.d.ts +1 -1
  8. package/dist/components/GenomeView/TrackComponents/DynseqComponents/DynseqTrackComponents.d.ts +2 -3
  9. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/GenomeAlignComponents.d.ts +3 -1
  10. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/HorizontalFragment.d.ts +1 -0
  11. package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/MultiAlignmentViewCalculator.d.ts +1 -0
  12. package/dist/components/GenomeView/TrackComponents/GroupedTrackManager.d.ts +3 -0
  13. package/dist/components/GenomeView/TrackComponents/InteractionComponents/InteractionTrackComponent.d.ts +4 -15
  14. package/dist/components/GenomeView/TrackComponents/MethylcComponents/MethylCTrackComputation.d.ts +5 -13
  15. package/dist/components/GenomeView/TrackComponents/QBedComponents/QBedTrackComponents.d.ts +9 -26
  16. package/dist/components/GenomeView/TrackComponents/RulerComponents/Ruler.d.ts +1 -1
  17. package/dist/components/GenomeView/TrackComponents/VcfComponents/Vcf.d.ts +1 -0
  18. package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfTrack.d.ts +5 -24
  19. package/dist/components/GenomeView/TrackComponents/bedComponents/FiberTrackComponent.d.ts +5 -39
  20. package/dist/components/GenomeView/TrackComponents/commonComponents/HoverToolTips/HoverToolTip.d.ts +5 -0
  21. package/dist/components/GenomeView/TrackComponents/commonComponents/OutsideClickDetector.d.ts +1 -1
  22. package/dist/components/GenomeView/TrackComponents/commonComponents/TrackLegend.d.ts +1 -1
  23. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/AnnotationArrows.d.ts +1 -1
  24. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalAggregator.d.ts +2 -1
  25. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalTrack.d.ts +3 -1
  26. package/dist/components/GenomeView/TrackComponents/commonComponents/stats/BoxplotTrackComponents.d.ts +3 -37
  27. package/dist/components/GenomeView/TrackComponents/displayModeComponentMap.d.ts +1 -1
  28. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/BackgroundedText.d.ts +1 -1
  29. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/GeneDetail.d.ts +2 -2
  30. package/dist/components/GenomeView/genomeNavigator/Ruler.d.ts +1 -1
  31. package/dist/components/GenomeView/genomeNavigator/SelectableGenomeArea.d.ts +1 -1
  32. package/dist/components/GenomeView/genomeNavigator/SelectedRegionBox.d.ts +1 -1
  33. package/dist/genome-hub/GenomeSerializer.d.ts +1 -1
  34. package/dist/genome-hub/genome-schema.d.ts +1 -2
  35. package/dist/getLocalData/LocalBigSource.d.ts +47 -0
  36. package/dist/getRemoteData/BigSourceWorker.d.ts +47 -0
  37. package/dist/getRemoteData/BigSourceWorkerGmod.d.ts +14 -5
  38. package/dist/getRemoteData/VcfSource.d.ts +9 -0
  39. package/dist/getRemoteData/hicSource.d.ts +1 -1
  40. package/dist/getRemoteData/io/remoteFile.d.ts +1 -1
  41. package/dist/getRemoteData/tabixSource.d.ts +18 -0
  42. package/dist/getRemoteData/vendor/bbi-js/main/bigwig.d.ts +1 -0
  43. package/dist/getRemoteData/vendor/bbi-js/utils/bin.d.ts +20 -0
  44. package/dist/getRemoteData/vendor/bbi-js/utils/das.d.ts +6 -0
  45. package/dist/getRemoteData/vendor/bbi-js/utils/jszlib.d.ts +1 -0
  46. package/dist/getRemoteData/vendor/bbi-js/utils/sha1.d.ts +1 -0
  47. package/dist/getRemoteData/vendor/bbi-js/utils/spans.d.ts +13 -0
  48. package/dist/{index-lRQCOP9E.mjs → index-BRD1ij9p.mjs} +64989 -66773
  49. package/dist/index.es.js +11 -11
  50. package/dist/index.umd.js +239 -228
  51. package/dist/{init-Bk9eSswv.mjs → init-DVJ9vOmS.mjs} +370 -355
  52. package/dist/models/AlignmentSegment.d.ts +1 -1
  53. package/dist/models/AlignmentStringUtils.d.ts +1 -1
  54. package/dist/models/BamAlignment.d.ts +1 -1
  55. package/dist/models/BedRecord.d.ts +1 -1
  56. package/dist/models/Chromosome.d.ts +1 -1
  57. package/dist/models/ChromosomeInterval.d.ts +1 -1
  58. package/dist/models/DisplayedRegionModel.d.ts +1 -1
  59. package/dist/models/Feature.d.ts +2 -2
  60. package/dist/models/FeatureAggregator.d.ts +4 -5
  61. package/dist/models/FeatureArranger.d.ts +7 -1
  62. package/dist/models/NavigationContext.d.ts +2 -1
  63. package/dist/models/OpenInterval.d.ts +1 -1
  64. package/dist/models/Snp.d.ts +1 -1
  65. package/dist/models/TrackModel.d.ts +3 -1
  66. package/dist/models/genomes/allGenomes.d.ts +20 -0
  67. package/dist/models/genomes/mCalJa1.2.pat.X/mCalJa1.2.pat.X.d.ts +17 -0
  68. package/dist/models/getXSpan/FeaturePlacer.d.ts +2 -9
  69. package/dist/models/trackModels/trackProps.d.ts +1 -0
  70. package/dist/style.css +1 -1
  71. package/dist/trackConfigs/config-menu-components.tsx/ColorConfig.d.ts +2 -1
  72. package/dist/trackConfigs/config-menu-components.tsx/DownsamplingConfig.d.ts +8 -0
  73. package/dist/trackConfigs/config-menu-components.tsx/NumberConfig.d.ts +1 -1
  74. package/dist/types/track-container.d.ts +1 -0
  75. package/dist/webworkerAll-I0QzCLqb.mjs +2 -0
  76. package/package.json +2 -4
  77. package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/createNewTrackState.d.ts +0 -18
  78. package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/getDataAfterConfigChange.d.ts +0 -11
  79. package/dist/components/GenomeView/TrackComponents/bedComponents/BedcolorTrack.d.ts +0 -6
  80. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/AnnotationTrack.d.ts +0 -25
  81. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/FullDisplayMode.d.ts +0 -45
  82. package/dist/components/testCustomGenome.d.ts +0 -505
  83. package/dist/getRemoteData/JasparSource.d.ts +0 -8
  84. package/dist/webworkerAll-D7VsNxkY.mjs +0 -2
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Reads and gets data from bigwig or bigbed files hosted remotely. Gets DASFeature records, which vary in schema
3
+ * depending on the file.
4
+ *
5
+ * @license MIT
6
+ */
7
+ declare class BigSourceWorker {
8
+ url: any;
9
+ bigWigPromise: Promise<unknown>;
10
+ /**
11
+ * Prepares to fetch bigwig or bigbed data from a URL.
12
+ *
13
+ * @param {string} url - the URL from which to fetch data
14
+ */
15
+ constructor(url: any);
16
+ private loadBigWig;
17
+ /**
18
+ * Gets BigWig or BigBed features inside the requested locations.
19
+ *
20
+ * @param {ChromosomeInterval[]} loci - locations for which to fetch data
21
+ * @param {number} [basesPerPixel] - used to determine fetch resolution
22
+ * @return {Promise<DASFeature[]>} a Promise for the data
23
+ * @override
24
+ */
25
+ getData(loci: any, basesPerPixel: any, options: any): Promise<any[]>;
26
+ /**
27
+ * BigWig files contain zoom levels, where data across many bases is aggregated into bins. This selects an
28
+ * appropriate zoom index from the BigWig file given the number of bases per pixel at which the data will be
29
+ * visualized. This function may also return -1, which indicates base pair resolution (no aggregation) is
30
+ * appropriate.
31
+ *
32
+ * @param {BigWig} bigWigObj - BigWig object provided by bbi-js
33
+ * @param {number} [basesPerPixel] - bases per pixel to use to calculate an appropriate zoom level
34
+ * @return {number} a zoom level index inside the BigWig file, or -1 if base pair resolution is appropriate.
35
+ */
36
+ _getMatchingZoomLevel(bigWigObj: any, basesPerPixel: number): number;
37
+ /**
38
+ * Gets BigWig features stored in a single chromosome interval.
39
+ *
40
+ * @param {ChromosomeInterval} interval - coordinates
41
+ * @param {BigWig} bigWigObj - BigWig object provided by bbi-js
42
+ * @param {number} zoomLevel - a zoom level index inside the BigWig file. If -1, gets data at base pair resolution.
43
+ * @return {Promise<DASFeature[]>} - a Promise for the data, an array of DASFeature provided by bbi-js
44
+ */
45
+ _getDataForChromosome(interval: any, bigWigObj: any, zoomLevel: number): Promise<any[]>;
46
+ }
47
+ export default BigSourceWorker;
@@ -1,20 +1,29 @@
1
- export declare function resolveUriLocation(location: any): any;
1
+ import { BigWig } from "@gmod/bbi";
2
2
  declare class BigSourceWorkerGmod {
3
3
  url: any;
4
- bw: any;
4
+ private chromNamingCache;
5
+ bw: BigWig;
6
+ useEnsemblStyle: null | boolean;
5
7
  /**
6
8
  *
7
9
  * @param {string} url - the URL from which to fetch data
8
10
  */
9
11
  constructor(url: any);
10
12
  /**
11
- * Creates a new BigWig instance (no caching between requests)
13
+ * Recreates the BigWig instance to clear any cached data
12
14
  */
15
+ private recreateBigWigInstance;
13
16
  /**
14
- * Detects if the BigWig file uses Ensembl chromosome naming convention
17
+ * Detects if the BigWig file uses Ensembl
15
18
  * @return {Promise<boolean>} True if Ensembl naming (1, 2, 3...), false if UCSC naming (chr1, chr2, chr3...)
16
19
  */
17
20
  detectChromosomeNaming(): Promise<boolean>;
21
+ /**
22
+ * Fetches features from BigWig/BigBed file for the given loci
23
+ * @param {ChromosomeInterval[]} loci - locations for which to fetch data
24
+ * @return {Promise<DASFeature[]>} a Promise for the data
25
+ */
26
+ private fetchSource;
18
27
  /**
19
28
  * Gets BigWig or BigBed features inside the requested locations.
20
29
  *
@@ -23,6 +32,6 @@ declare class BigSourceWorkerGmod {
23
32
  * @return {Promise<DASFeature[]>} a Promise for the data
24
33
  * @override
25
34
  */
26
- getData(loci: any, basesPerPixel: any, options: any): Promise<any[]>;
35
+ getData: (loci: any, basesPerPixel: any, options: any) => Promise<any[]>;
27
36
  }
28
37
  export default BigSourceWorkerGmod;
@@ -3,7 +3,16 @@ declare class VcfSource {
3
3
  header: any;
4
4
  vcf: TabixIndexedFile;
5
5
  parser: any;
6
+ url: any;
7
+ indexUrl: any;
6
8
  constructor(url: any, indexUrl?: null);
9
+ /**
10
+ * Fetches data from VCF file for the given regions
11
+ * @param {ChromosomeInterval[]} region - locations for which to fetch data
12
+ * @param {any} options - fetch options including ensemblStyle
13
+ * @return {Promise<any[]>} a Promise for the data
14
+ */
15
+ private fetchSource;
7
16
  getData(region: any, basesPerPixel: any, options: any): Promise<any[]>;
8
17
  _getDataInLocus(locus: any, options: any): Promise<any>;
9
18
  }
@@ -2,7 +2,7 @@ import { NormalizationMode } from "./HicDataModes";
2
2
  /**
3
3
  * Data source that fetches data from .hic files.
4
4
  *
5
- * @author Silas Hsu
5
+ * @author Chanrung(Chad) Seng, Silas Hsu
6
6
  */
7
7
  export declare class HicSource {
8
8
  currentBinSize: number;
@@ -2,6 +2,6 @@ declare class RemoteFile {
2
2
  config: any;
3
3
  url: any;
4
4
  constructor(args: any);
5
- read(position: any, length: any): Promise<any>;
5
+ read(position: any, length: any): Promise<ArrayBuffer>;
6
6
  }
7
7
  export default RemoteFile;
@@ -10,6 +10,8 @@ declare class TabixSource {
10
10
  indexUrl?: any;
11
11
  dataLimit: number;
12
12
  tabix: TabixIndexedFile;
13
+ private chromNamingCache;
14
+ useEnsemblStyle: null | boolean;
13
15
  /**
14
16
  * Prepares to fetch data from a bed file located at the input url. Assumes the index is located at the same url,
15
17
  * plus a file extension of ".tbi". This method will request and store the tabix index from this url immediately.
@@ -17,6 +19,22 @@ declare class TabixSource {
17
19
  * @param {string} url - the url of the bed-like file to fetch.
18
20
  */
19
21
  constructor(url: any, indexUrl?: null, dataLimit?: number);
22
+ /**
23
+ * Recreates the Tabix instance to clear any cached data
24
+ */
25
+ private recreateTabixInstance;
26
+ /**
27
+ * Detects if the Tabix file uses Ensembl
28
+ * @return {Promise<boolean>} True if Ensembl naming (1, 2, 3...), false if UCSC naming (chr1, chr2, chr3...)
29
+ */
30
+ detectChromosomeNaming(): Promise<boolean>;
31
+ /**
32
+ * Fetches data from Tabix file for the given loci
33
+ * @param {ChromosomeInterval[]} loci - locations for which to fetch data
34
+ * @param {any} options - fetch options including ensemblStyle
35
+ * @return {Promise<BedRecord[]>} a Promise for the data
36
+ */
37
+ private fetchSource;
20
38
  /**
21
39
  * Gets data for a list of chromosome intervals.
22
40
  *
@@ -0,0 +1 @@
1
+ export function makeBwg(data: any, callback: any, name: any): void;
@@ -0,0 +1,20 @@
1
+ export function BlobFetchable(b: any): void;
2
+ export class BlobFetchable {
3
+ constructor(b: any);
4
+ blob: any;
5
+ slice(start: any, length: any): BlobFetchable;
6
+ salted(): BlobFetchable;
7
+ fetch(callback: any): void;
8
+ }
9
+ export function URLFetchable(url: any, start: any, end: any, opts: any): void;
10
+ export class URLFetchable {
11
+ constructor(url: any, start: any, end: any, opts: any);
12
+ url: any;
13
+ start: any;
14
+ end: any;
15
+ opts: any;
16
+ slice(s: any, l: any): URLFetchable;
17
+ fetchAsText(callback: any): any;
18
+ salted(): URLFetchable;
19
+ fetch(callback: any, opts: any): any;
20
+ }
@@ -0,0 +1,6 @@
1
+ export function DASFeature(): void;
2
+ export function DASGroup(id: any): void;
3
+ export class DASGroup {
4
+ constructor(id: any);
5
+ id: any;
6
+ }
@@ -0,0 +1 @@
1
+ export function jszlib_inflate_buffer(buffer: any, start: any, length: any, afterUncOffset: any): ArrayBufferLike;
@@ -0,0 +1 @@
1
+ export function b64_sha1(s: any): string;
@@ -0,0 +1,13 @@
1
+ export function Range(min: any, max: any): void;
2
+ export class Range {
3
+ constructor(min: any, max: any);
4
+ _min: number;
5
+ _max: number;
6
+ min(): number;
7
+ max(): number;
8
+ contains(pos: any): boolean;
9
+ isContiguous(): boolean;
10
+ ranges(): Range[];
11
+ _pushRanges(ranges: any): void;
12
+ toString(): string;
13
+ }