@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.
- package/dist/TrackSelect/CustomTracks/TfPeaks.d.ts +15 -0
- package/dist/TrackSelect/Folders/biosamples/data/{human.json.d.ts → human_with_wgbs.json.d.ts} +882 -1
- package/dist/TrackSelect/Folders/biosamples/shared/types.d.ts +14 -6
- package/dist/TrackSelect/Folders/index.d.ts +1 -0
- package/dist/TrackSelect/Folders/other-tracks/data/human.json.d.ts +10 -0
- package/dist/TrackSelect/Folders/other-tracks/human.d.ts +1 -0
- package/dist/TrackSelect/Folders/other-tracks/shared/columns.d.ts +5 -0
- package/dist/TrackSelect/Folders/other-tracks/shared/createFolder.d.ts +9 -0
- package/dist/TrackSelect/Folders/other-tracks/shared/treeBuilder.d.ts +4 -0
- package/dist/TrackSelect/Folders/other-tracks/shared/types.d.ts +6 -0
- package/dist/genomebrowser-ui.es.js +540 -458
- package/dist/genomebrowser-ui.es.js.map +1 -1
- package/package.json +2 -2
- package/src/TrackSelect/CustomTracks/TfPeaks.tsx +247 -0
- package/src/TrackSelect/Folders/biosamples/data/human_with_wgbs.json +59909 -0
- package/src/TrackSelect/Folders/biosamples/human.ts +1 -1
- package/src/TrackSelect/Folders/biosamples/shared/constants.tsx +3 -0
- package/src/TrackSelect/Folders/biosamples/shared/createFolder.ts +13 -1
- package/src/TrackSelect/Folders/biosamples/shared/types.ts +16 -6
- package/src/TrackSelect/Folders/index.ts +4 -2
- package/src/TrackSelect/Folders/other-tracks/data/human.json +7 -0
- package/src/TrackSelect/Folders/other-tracks/human.ts +10 -0
- package/src/TrackSelect/Folders/other-tracks/shared/columns.tsx +25 -0
- package/src/TrackSelect/Folders/other-tracks/shared/createFolder.ts +45 -0
- package/src/TrackSelect/Folders/other-tracks/shared/treeBuilder.ts +34 -0
- package/src/TrackSelect/Folders/other-tracks/shared/types.ts +7 -0
- 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
|
|
12
|
+
url?: string;
|
|
12
13
|
experimentAccession: string;
|
|
13
|
-
fileAccession
|
|
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
|
|
39
|
-
url
|
|
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 @@
|
|
|
1
|
+
export declare const humanOtherTracksFolder: import('..').FolderDefinition<import('..').OtherTrackInfo>;
|
|
@@ -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>[];
|