@weng-lab/genomebrowser-ui 0.4.0-beta.2 → 0.4.1

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 (33) hide show
  1. package/dist/TrackSelect/Folders/biosamples/data/{human_with_wgbs.json.d.ts → humans_fixed.json.d.ts} +511 -511
  2. package/dist/TrackSelect/Folders/biosamples/shared/types.d.ts +1 -1
  3. package/dist/TrackSelect/Folders/index.d.ts +2 -0
  4. package/dist/TrackSelect/Folders/psychscreen/data/human.json.d.ts +815 -0
  5. package/dist/TrackSelect/Folders/psychscreen/human.d.ts +1 -0
  6. package/dist/TrackSelect/Folders/psychscreen/shared/PsychscreenGroupingCell.d.ts +2 -0
  7. package/dist/TrackSelect/Folders/psychscreen/shared/columns.d.ts +7 -0
  8. package/dist/TrackSelect/Folders/psychscreen/shared/createFolder.d.ts +9 -0
  9. package/dist/TrackSelect/Folders/psychscreen/shared/toTrack.d.ts +5 -0
  10. package/dist/TrackSelect/Folders/psychscreen/shared/types.d.ts +12 -0
  11. package/dist/TrackSelect/trackContext.d.ts +2 -1
  12. package/dist/TrackSelect/types.d.ts +1 -1
  13. package/dist/genomebrowser-ui.es.js +1408 -1263
  14. package/dist/genomebrowser-ui.es.js.map +1 -1
  15. package/package.json +4 -3
  16. package/src/TrackSelect/DataGrid/DataGridWrapper.tsx +9 -5
  17. package/src/TrackSelect/Folders/biosamples/data/fix-human-collections.mjs +119 -0
  18. package/src/TrackSelect/Folders/biosamples/data/humans_fixed.json +59909 -0
  19. package/src/TrackSelect/Folders/biosamples/human.ts +1 -1
  20. package/src/TrackSelect/Folders/biosamples/shared/columns.tsx +2 -2
  21. package/src/TrackSelect/Folders/biosamples/shared/types.ts +1 -1
  22. package/src/TrackSelect/Folders/index.ts +4 -0
  23. package/src/TrackSelect/Folders/psychscreen/data/human.json +812 -0
  24. package/src/TrackSelect/Folders/psychscreen/human.ts +10 -0
  25. package/src/TrackSelect/Folders/psychscreen/shared/PsychscreenGroupingCell.tsx +78 -0
  26. package/src/TrackSelect/Folders/psychscreen/shared/columns.tsx +52 -0
  27. package/src/TrackSelect/Folders/psychscreen/shared/createFolder.ts +45 -0
  28. package/src/TrackSelect/Folders/psychscreen/shared/toTrack.ts +48 -0
  29. package/src/TrackSelect/Folders/psychscreen/shared/types.ts +14 -0
  30. package/src/TrackSelect/TreeView/CustomTreeItem.tsx +10 -2
  31. package/src/TrackSelect/TreeView/TreeViewWrapper.tsx +4 -1
  32. package/src/TrackSelect/trackContext.ts +2 -0
  33. package/src/TrackSelect/types.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import { createBiosampleFolder } from "./shared/createFolder";
2
- import humanData from "./data/human_with_wgbs.json";
2
+ import humanData from "./data/humans_fixed.json";
3
3
  import { BiosampleDataFile } from "./shared/types";
4
4
 
5
5
  /**
@@ -8,13 +8,13 @@ import { Stack, capitalize } from "@mui/material";
8
8
  import { AssayIcon, ontologyTypes, assayTypes, lifeStages } from "./constants";
9
9
  import { BiosampleRowInfo, CollectionType } from "./types";
10
10
 
11
- const collectionTypes: CollectionType[] = ["Core", "Ancillary", "Partial"];
11
+ const collectionTypes: CollectionType[] = ["Core", "Ancillary", "Partial", "NA"];
12
12
 
13
13
  function CollectionCell(params: GridRenderCellParams<BiosampleRowInfo>) {
14
14
  const apiRef = useGridApiContext();
15
15
 
16
16
  if (params.rowNode.type !== "group") {
17
- return null;
17
+ return params.value ?? null;
18
18
  }
19
19
 
20
20
  const groupNode = params.rowNode as GridGroupNode;
@@ -1,4 +1,4 @@
1
- export type CollectionType = "Core" | "Ancillary" | "Partial";
1
+ export type CollectionType = "Core" | "Ancillary" | "Partial" | "NA";
2
2
 
3
3
  /**
4
4
  * One assay entry from the source data. WGBS rows carry strand-specific URLs.
@@ -5,6 +5,7 @@ import { humanGenesFolder } from "./genes/human";
5
5
  import { mouseGenesFolder } from "./genes/mouse";
6
6
  import { humanOtherTracksFolder } from "./other-tracks/human";
7
7
  import { humanMohdFolder } from "./mohd/human";
8
+ import { humanPsychscreenFolder } from "./psychscreen/human";
8
9
 
9
10
  export { type Assembly, type FolderDefinition, type FolderView } from "./types";
10
11
 
@@ -14,6 +15,8 @@ export type { GeneRowInfo } from "./genes/shared/types";
14
15
  export type { GeneTrackContext } from "./genes/shared/toTrack";
15
16
  export type { MohdRowInfo } from "./mohd/shared/types";
16
17
  export type { MohdTrackContext } from "./mohd/shared/toTrack";
18
+ export type { PsychscreenTrackInfo } from "./psychscreen/shared/types";
19
+ export type { PsychscreenTrackContext } from "./psychscreen/shared/toTrack";
17
20
  export type { OtherTrackInfo } from "./other-tracks/shared/types";
18
21
  export type { OtherTracksTrackContext } from "./other-tracks/shared/toTrack";
19
22
 
@@ -23,6 +26,7 @@ export const foldersByAssembly: Record<Assembly, FolderDefinition[]> = {
23
26
  humanGenesFolder,
24
27
  humanBiosamplesFolder,
25
28
  humanMohdFolder,
29
+ humanPsychscreenFolder,
26
30
  humanOtherTracksFolder,
27
31
  ],
28
32
  mm10: [mouseGenesFolder, mouseBiosamplesFolder],