config.ts 3.15 KB
Newer Older
Lukas Pravda's avatar
Lukas Pravda committed
1
namespace Config {
Lukas Pravda's avatar
Lukas Pravda committed
2
    export const nodeSize: number = 30;
Lukas Pravda's avatar
Lukas Pravda committed
3 4 5
    export const interactionClickEvent: string = 'PDB.interactions.click';
    export const interactionMouseoverEvent: string = 'PDB.interactions.mouseover';
    export const interactionMouseoutEvent: string = 'PDB.interactions.mouseout'
Lukas Pravda's avatar
Lukas Pravda committed
6

Lukas Pravda's avatar
Lukas Pravda committed
7 8
    export const interactionShowLabelEvent: string = 'PDB.interactions.showLabel';
    export const interactionHideLabelEvent: string = 'PDB.interactions.hideLabel';
Lukas Pravda's avatar
Lukas Pravda committed
9

Lukas Pravda's avatar
Lukas Pravda committed
10 11 12
    export const molstarClickEvent: string = 'PDB.molstar.click';
    export const molstarMouseoverEvent: string = 'PDB.molstar.mouseover';
    export const molstarMouseoutEvent: string = 'PDB.molstar.mouseout';
Lukas Pravda's avatar
Lukas Pravda committed
13

14
    export const aaTypes = new Map<string, Array<string>>([
15
        ['hydrophobic', new Array<string>('A', 'I', 'L', 'M', 'F', 'W', 'V')],
16
        ['positive', Array<string>('K', 'R', 'O')],
17 18 19 20 21 22
        ['negative', Array<string>('E', 'D')],
        ['polar', Array<string>('N', 'Q', 'S', 'T')],
        ['cystein', Array<string>('C', 'U')],
        ['glycine', Array<string>('G')],
        ['proline', Array<string>('P')],
        ['aromatic', Array<string>('H', 'Y')]
23
    ]);
24

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    export const aaAbreviations = new Map<string, string>([
        ['ALA', 'A'],
        ['ARG', 'R'],
        ['ASN', 'N'],
        ['ASP', 'D'],
        ['CYS', 'C'],
        ['GLU', 'E'],
        ['GLN', 'Q'],
        ['GLY', 'G'],
        ['HIS', 'H'],
        ['ILE', 'I'],
        ['LEU', 'L'],
        ['LYS', 'K'],
        ['MET', 'M'],
        ['PHE', 'F'],
        ['PRO', 'P'],
        ['SER', 'S'],
        ['THR', 'T'],
        ['TRP', 'W'],
        ['TYR', 'Y'],
        ['VAL', 'V']
    ]);
Lukas Pravda's avatar
Lukas Pravda committed
47

Lukas Pravda's avatar
Lukas Pravda committed
48
    export const backboneAtoms: Array<string> = ['N', 'CA', 'C', 'O'];
Lukas Pravda's avatar
Lukas Pravda committed
49 50 51 52 53 54 55

    export const interactionsClasses = new Map<string, Array<string>>([
        ["covalent", new Array<string>("covalent")],
        ["electrostatic", new Array<string>("ionic", "hbond", "weak_hbond", "polar", "weak_polar", "xbond", "carbonyl")],
        ['amide', new Array<string>("AMIDEAMIDE", "AMIDERING")],
        ["vdw", new Array<string>("vdw")],
        ["hydrophobic", new Array<string>("hydrophobic")],
56 57
        ["aromatic", new Array<string>("aromatic", "FF", "OF", "EE", "FT", "OT", "ET", "FE", "OE", "EF")],
        ["atom-pi", new Array<string>("CARBONPI", "CATIONPI", "DONORPI", "HALOGENPI", "METSULPHURPI")],
Lukas Pravda's avatar
Lukas Pravda committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71
        ["metal", new Array<string>("metal_complex")],
        ["clashes", new Array<string>("clash", "vdw_clash")]
    ]);

    export class UIParameters {
        reinitialize: boolean;
        zoom: boolean;
        fullScreen: boolean;
        downloadImage: boolean;
        downloadData: boolean;
        center: boolean;
        help: boolean;
        residueLabel: boolean;
        tooltip: boolean;
72
        menu: boolean;
73
        names: boolean;
Lukas Pravda's avatar
Lukas Pravda committed
74 75 76 77 78 79 80 81 82 83 84

        constructor() {
            this.reinitialize = true;
            this.zoom = true;
            this.fullScreen = true;
            this.downloadImage = true;
            this.downloadData = true;
            this.center = true;
            this.help = true;
            this.residueLabel = true;
            this.tooltip = true;
85
            this.menu = true;
86
            this.names = true;
Lukas Pravda's avatar
Lukas Pravda committed
87 88 89
        }
    }
}