@weng-lab/genomebrowser-ui 0.4.0 → 0.4.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.
- package/dist/TrackSelect/Folders/biosamples/data/{human_with_wgbs.json.d.ts → humans_fixed.json.d.ts} +511 -511
- package/dist/TrackSelect/Folders/biosamples/shared/types.d.ts +1 -1
- package/dist/TrackSelect/Folders/index.d.ts +2 -0
- package/dist/TrackSelect/Folders/psychscreen/data/human.json.d.ts +815 -0
- package/dist/TrackSelect/Folders/psychscreen/human.d.ts +1 -0
- package/dist/TrackSelect/Folders/psychscreen/shared/PsychscreenGroupingCell.d.ts +2 -0
- package/dist/TrackSelect/Folders/psychscreen/shared/columns.d.ts +7 -0
- package/dist/TrackSelect/Folders/psychscreen/shared/createFolder.d.ts +9 -0
- package/dist/TrackSelect/Folders/psychscreen/shared/toTrack.d.ts +5 -0
- package/dist/TrackSelect/Folders/psychscreen/shared/types.d.ts +12 -0
- package/dist/TrackSelect/trackContext.d.ts +2 -1
- package/dist/TrackSelect/types.d.ts +1 -1
- package/dist/genomebrowser-ui.es.js +1814 -1625
- package/dist/genomebrowser-ui.es.js.map +1 -1
- package/package.json +2 -2
- package/src/TrackSelect/DataGrid/DataGridWrapper.tsx +99 -11
- package/src/TrackSelect/Folders/biosamples/data/fix-human-collections.mjs +119 -0
- package/src/TrackSelect/Folders/biosamples/data/humans_fixed.json +59909 -0
- package/src/TrackSelect/Folders/biosamples/human.ts +1 -1
- package/src/TrackSelect/Folders/biosamples/shared/columns.tsx +2 -2
- package/src/TrackSelect/Folders/biosamples/shared/types.ts +1 -1
- package/src/TrackSelect/Folders/index.ts +4 -0
- package/src/TrackSelect/Folders/psychscreen/data/human.json +812 -0
- package/src/TrackSelect/Folders/psychscreen/human.ts +10 -0
- package/src/TrackSelect/Folders/psychscreen/shared/PsychscreenGroupingCell.tsx +78 -0
- package/src/TrackSelect/Folders/psychscreen/shared/columns.tsx +52 -0
- package/src/TrackSelect/Folders/psychscreen/shared/createFolder.ts +45 -0
- package/src/TrackSelect/Folders/psychscreen/shared/toTrack.ts +48 -0
- package/src/TrackSelect/Folders/psychscreen/shared/types.ts +14 -0
- package/src/TrackSelect/TreeView/CustomTreeItem.tsx +10 -2
- package/src/TrackSelect/TreeView/TreeViewWrapper.tsx +4 -1
- package/src/TrackSelect/trackContext.ts +2 -0
- package/src/TrackSelect/types.ts +1 -1
|
@@ -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;
|
|
@@ -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],
|