@weng-lab/genomebrowser-ui 0.2.11 → 0.3.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 (27) hide show
  1. package/dist/TrackSelect/CustomTracks/TfPeaks.d.ts +15 -0
  2. package/dist/TrackSelect/Folders/biosamples/data/{human.json.d.ts → human_with_wgbs.json.d.ts} +882 -1
  3. package/dist/TrackSelect/Folders/biosamples/shared/types.d.ts +14 -6
  4. package/dist/TrackSelect/Folders/index.d.ts +1 -0
  5. package/dist/TrackSelect/Folders/other-tracks/data/human.json.d.ts +10 -0
  6. package/dist/TrackSelect/Folders/other-tracks/human.d.ts +1 -0
  7. package/dist/TrackSelect/Folders/other-tracks/shared/columns.d.ts +5 -0
  8. package/dist/TrackSelect/Folders/other-tracks/shared/createFolder.d.ts +9 -0
  9. package/dist/TrackSelect/Folders/other-tracks/shared/treeBuilder.d.ts +4 -0
  10. package/dist/TrackSelect/Folders/other-tracks/shared/types.d.ts +6 -0
  11. package/dist/genomebrowser-ui.es.js +540 -458
  12. package/dist/genomebrowser-ui.es.js.map +1 -1
  13. package/package.json +2 -2
  14. package/src/TrackSelect/CustomTracks/TfPeaks.tsx +247 -0
  15. package/src/TrackSelect/Folders/biosamples/data/human_with_wgbs.json +59909 -0
  16. package/src/TrackSelect/Folders/biosamples/human.ts +1 -1
  17. package/src/TrackSelect/Folders/biosamples/shared/constants.tsx +3 -0
  18. package/src/TrackSelect/Folders/biosamples/shared/createFolder.ts +13 -1
  19. package/src/TrackSelect/Folders/biosamples/shared/types.ts +16 -6
  20. package/src/TrackSelect/Folders/index.ts +4 -2
  21. package/src/TrackSelect/Folders/other-tracks/data/human.json +7 -0
  22. package/src/TrackSelect/Folders/other-tracks/human.ts +10 -0
  23. package/src/TrackSelect/Folders/other-tracks/shared/columns.tsx +25 -0
  24. package/src/TrackSelect/Folders/other-tracks/shared/createFolder.ts +45 -0
  25. package/src/TrackSelect/Folders/other-tracks/shared/treeBuilder.ts +34 -0
  26. package/src/TrackSelect/Folders/other-tracks/shared/types.ts +7 -0
  27. package/test/main.tsx +58 -5
@@ -3,14 +3,18 @@
3
3
  */
4
4
  export type CollectionType = "Core" | "Ancillary" | "Partial";
5
5
  /**
6
- * Assay information from the JSON data
6
+ * Assay information from the JSON data.
7
+ * Standard assays have a single `url`, while WGBS assays have `cpgPlus`, `cpgMinus`, `coverage`.
7
8
  */
8
9
  export type BiosampleAssayInfo = {
9
10
  id: string;
10
11
  assay: string;
11
- url: string;
12
+ url?: string;
12
13
  experimentAccession: string;
13
- fileAccession: string;
14
+ fileAccession?: string;
15
+ cpgPlus?: string;
16
+ cpgMinus?: string;
17
+ coverage?: string;
14
18
  };
15
19
  /**
16
20
  * Track information from the JSON data
@@ -25,7 +29,8 @@ export type BiosampleTrackInfo = {
25
29
  collection: CollectionType;
26
30
  };
27
31
  /**
28
- * Row format for DataGrid (flattened from TrackInfo)
32
+ * Row format for DataGrid (flattened from TrackInfo).
33
+ * Standard assays have a single `url`, while WGBS assays have `cpgPlus`, `cpgMinus`, `coverage`.
29
34
  */
30
35
  export type BiosampleRowInfo = {
31
36
  id: string;
@@ -35,9 +40,12 @@ export type BiosampleRowInfo = {
35
40
  displayName: string;
36
41
  assay: string;
37
42
  experimentAccession: string;
38
- fileAccession: string;
39
- url: string;
43
+ fileAccession?: string;
44
+ url?: string;
40
45
  collection: CollectionType;
46
+ cpgPlus?: string;
47
+ cpgMinus?: string;
48
+ coverage?: string;
41
49
  };
42
50
  /**
43
51
  * Structure of the biosample JSON data files
@@ -2,6 +2,7 @@ import { Assembly, FolderDefinition } from './types';
2
2
  export { type Assembly, type FolderDefinition, type FolderRuntimeConfig, } from './types';
3
3
  export type { BiosampleRowInfo } from './biosamples/shared/types';
4
4
  export type { GeneRowInfo } from './genes/shared/types';
5
+ export type { OtherTrackInfo } from './other-tracks/shared/types';
5
6
  /**
6
7
  * Registry of folders available for each assembly.
7
8
  *
@@ -0,0 +1,10 @@
1
+ declare const _default: [
2
+ {
3
+ "id": "tf-peaks",
4
+ "name": "TF ChIP-seq Peaks",
5
+ "description": "Shows TF Motifs in green, overlayed on ChIP-seq peaks in gray"
6
+ }
7
+ ]
8
+ ;
9
+
10
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const humanOtherTracksFolder: import('..').FolderDefinition<import('..').OtherTrackInfo>;
@@ -0,0 +1,5 @@
1
+ import { GridColDef } from '@mui/x-data-grid-premium';
2
+ import { OtherTrackInfo } from './types';
3
+ export declare const defaultColumns: GridColDef<OtherTrackInfo>[];
4
+ export declare const defaultGroupingModel: string[];
5
+ export declare const defaultLeafField = "id";
@@ -0,0 +1,9 @@
1
+ import { FolderDefinition } from '../../types';
2
+ import { OtherTrackDataFile, OtherTrackInfo } from './types';
3
+ export interface CreateOtherTracksFolderOptions {
4
+ id: string;
5
+ label: string;
6
+ description?: string;
7
+ data: OtherTrackDataFile;
8
+ }
9
+ export declare function createOtherTracksFolder(options: CreateOtherTracksFolderOptions): FolderDefinition<OtherTrackInfo>;
@@ -0,0 +1,4 @@
1
+ import { TreeViewBaseItem } from '@mui/x-tree-view';
2
+ import { ExtendedTreeItemProps } from '../../../types';
3
+ import { OtherTrackInfo } from './types';
4
+ export declare function buildTreeView(selectedIds: string[], rowById: Map<string, OtherTrackInfo>, rootLabel?: string): TreeViewBaseItem<ExtendedTreeItemProps>[];
@@ -0,0 +1,6 @@
1
+ export type OtherTrackInfo = {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ };
6
+ export type OtherTrackDataFile = OtherTrackInfo[];