-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
71 lines (59 loc) · 1.57 KB
/
types.ts
File metadata and controls
71 lines (59 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
export interface InteractionMetadata {
experimentos?: string;
experimentos_pos?: string;
experimentos_neg?: string;
}
export type RegulationDirection = 'activation' | 'repression' | 'both' | 'unknown';
export interface Interaction {
tf: string;
target: string;
source: 'TARGET' | 'DAP' | 'CHIP';
metadata?: InteractionMetadata;
direction?: RegulationDirection;
}
export interface IntegratedInteraction {
tf: string;
target: string;
tfId?: string; // Original Gene ID
targetId?: string; // Original Gene ID
sources: ('TARGET' | 'DAP' | 'CHIP')[];
evidenceCount: number;
isHighConfidence: boolean;
direction: RegulationDirection;
details: {
[key in 'TARGET' | 'DAP' | 'CHIP']?: InteractionMetadata;
};
}
export interface DatasetStats {
totalInteractions?: number;
sourceCounts: {
name: 'TARGET' | 'DAP' | 'CHIP';
count: number;
}[];
highConfidence3: number;
uniqueTFs: number;
uniqueTargets: number;
}
export interface DataSource {
id: 'TARGET' | 'DAP' | 'CHIP';
name: string;
data: Interaction[];
}
export interface GeneMapping {
[id: string]: string;
}
export interface PathwayMapping {
[id: string]: string[]; // Gene -> list of biological processes
}
export interface HubData {
displayName: string;
type: string;
nGenes: number;
genesList: string[];
}
export interface HubMapping {
[geneId: string]: HubData;
}
export type AppView = 'landing' | 'explorer' | 'network' | 'enrichment';
export type NetworkColorMode = 'source' | 'regulation' | 'pathway';
export type NetworkLayoutMode = 'force' | 'hierarchical';