Newer
Older
// https://visjs.github.io/vis-network/docs/network/nodes.html
Michael Hartung
committed
groupName?: string;
color?: any;
shape?: 'circle' | 'triangle' | 'star' | 'square' | 'image' | 'text' | 'ellipse' | 'box' | 'diamond' | 'dot';
type?: string;
font?: any;
border?: any;
highlight?: any;
borderWidth?: number;
borderWidthSelected?: number;
Michael Hartung
committed
background?: any;
// see https://visjs.github.io/vis-network/docs/network/edges.html
dashes?: false | Array<number>;
export type Identifier = 'symbol'|'uniprot'|'ensg';
export type InteractionDrugProteinDB = 'DrugBank'|'Chembl'|'DGIdb';
export type InteractionProteinProteinDB = 'STRING'|'BioGRID'|'APID';
// TODO: should this be external or integrated in the backend?
export type InteractionDatabase = 'omnipath';
legendUrl: string;
legendClass: string;
showRightSidebar: boolean;
showItemSelector: boolean;
showSimpleAnalysis: boolean;
showAdvAnalysis: boolean;
showTasks: boolean;
showSelection: boolean;
showFooter: boolean;
showFooterButtonExpression: boolean;
showFooterButtonScreenshot: boolean;
showLegend: boolean;
showLegendNodes: boolean;
showLegendEdges: boolean;
nodeGroups: { [key: string]: NodeGroup };
edgeGroups: { [key: string]: EdgeGroup };
interactionDrugProtein: InteractionDrugProteinDB;
interactionProteinProtein: InteractionProteinProteinDB;
interactions?: InteractionDatabase;
identifier?: Identifier;
export const defaultConfig: IConfig = {
legendUrl: '', // 'https://exbio.wzw.tum.de/covex/assets/leg1.png' show legend image if set, otherwise default legend
showRightSidebar: true,
showFooterButtonExpression: true,
showFooterButtonScreenshot: true,
identifier: 'symbol',
interactionDrugProtein: 'DrugBank',
interactionProteinProtein: 'STRING',
// all NodeGroups but the default group must be set, if not provided by the user, they will be taken from here
Michael Hartung
committed
// IMPORTANT: node color must be hexacode!
// this default group is used for default node group values
// and is fallback in case user does not provide any nodeGroup
Michael Hartung
committed
color: {
border: '#FFFF00',
background: '#FFFF00',
highlight: {
border: '#FF0000',
background: '#FF0000'
},
},
font: {
Michael Hartung
committed
color: '#000000',
size: 14,
face: 'arial',
background: undefined,
strokeWidth: 0,
strokeColor: '#ffffff',
align: 'center',
bold: false,
ital: false,
boldital: false,
mono: false,
},
borderWidth: 1,
Michael Hartung
committed
borderWidthSelected: 2
foundNode: {
groupName: 'Found Nodes',
Michael Hartung
committed
color: {
border: '#F12590',
background: '##F12590',
highlight: {
border: '#F12590',
background: '#F12590'
},
},
foundDrug: {
groupName: 'Found Drugs',
Michael Hartung
committed
color: {
border: '#F12590',
background: '##F12590',
highlight: {
border: '#F12590',
background: '#F12590'
},
},
Michael Hartung
committed
// groupName: 'Seed Nodes',
// color: '#F8981D',
// shape: 'circle',
// type: 'seed',
Michael Hartung
committed
color: {
Michael Hartung
committed
border: '#F1111D',
background: '#F1111D',
Michael Hartung
committed
highlight: {
Michael Hartung
committed
border: '#F1111D',
background: '#F1111D'
Michael Hartung
committed
},
},
font: {
Michael Hartung
committed
color: '#F1111D',
size: 14
}
},
selectedNode: {
Michael Hartung
committed
// groupName: 'Selected Nodes',
// color: '#F8981D',
// shape: 'dot',
// type: 'selected',
Michael Hartung
committed
borderWidth: 3,
borderWidthSelected: 4,
color: {
border: '#F8981D',
Michael Hartung
committed
// background: '#F8981D',
highlight: {
border: '#F8981D',
// background: '#F8981D'
},
},
font: {
color: '#F8981D',
size: 14
}
// this default group is used for default edge group values
groupName: 'Default Edge Group',
color: 'black',