@datagrok/hit-triage 1.3.1 → 1.3.3
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/CHANGELOG.md +8 -0
- package/README_HD.md +5 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/files/Hit Triage/campaigns/HTD-1/campaign.json +1 -0
- package/files/Hit Triage/campaigns/HTD-1/enriched_table.csv +101 -0
- package/files/Hit Triage/campaigns/HTD-2/campaign.json +1 -0
- package/files/Hit Triage/campaigns/HTD-2/enriched_table.csv +201 -0
- package/files/Hit Triage/templates/HT Demo Template.json +1 -0
- package/package.json +7 -7
- package/src/app/accordeons/new-hit-design-template-accordeon.ts +1 -0
- package/src/app/hit-design-app.ts +47 -3
- package/src/app/hit-design-views/tiles-view.ts +44 -6
- package/src/app/hit-design-views/utils.css +4 -0
- package/src/app/pepti-hit-app.ts +2 -2
- package/src/global.d.ts +13 -0
- package/files/Hit Triage/campaigns/demo-1/campaign.json +0 -1
- package/files/Hit Triage/campaigns/demo-1/enriched_table.csv +0 -101
- package/files/Hit Triage/campaigns/demo-2/campaign.json +0 -1
- package/files/Hit Triage/campaigns/demo-2/enriched_table.csv +0 -101
- package/files/Hit Triage/templates/Demo template.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"HTD-1","templateName":"HT Demo Template","filters":{},"ingest":{"type":"File","query":"System:AppData/HitTriage/Hit Triage/campaigns/HTD-1/enriched_table.csv","molColName":"smiles"},"status":"In Progress","createDate":"2024/10/17","campaignFields":{"Chemist":"Davit","Deadline":{"a":1759953600000,"b":false,"date":"2025-10-08T20:00:00.000Z"},"Scaffold":"c1cc2ccccc2cc1"},"columnSemTypes":{"smiles":"Molecule","LogD":null,"MolWt":null,"Mutagenicity":null,"Tumorigenicity":null,"Irritating effects":null,"Reproductive effects":null,"Selected hits":null,"~smiles.Pattern":null,"~smiles.canonicalSmiles":null},"rowCount":100,"filteredRowCount":100,"template":{"name":"HT Demo Template","key":"HTD","campaignFields":[{"name":"Chemist","type":"String","required":true},{"name":"Deadline","type":"Date","required":false},{"name":"Scaffold","type":"Molecule","required":false}],"dataSourceType":"Query","compute":{"descriptors":{"enabled":true,"args":["MolWt"]},"functions":[{"name":"addChemRisksColumns","package":"Chem","args":{"mutagenicity":true,"tumorigenicity":true,"irritatingEffects":true,"reproductiveEffects":true}}],"scripts":[],"queries":[]},"queryFunctionName":"Demo Molecules variable"},"columnTypes":{"smiles":"string","LogD":"qnum","MolWt":"double","Mutagenicity":"string","Tumorigenicity":"string","Irritating effects":"string","Reproductive effects":"string","Selected hits":"bool","~smiles.Pattern":"byte_array","~smiles.canonicalSmiles":"string"},"authorUserId":"e44f5f40-73f0-11ef-884d-c35bc9987eba","permissions":{"view":["a4b45840-9a50-11e6-9cc9-8546b8bf62e6"],"edit":["a4b45840-9a50-11e6-9cc9-8546b8bf62e6"]},"layout":"{\"containerType\":\"horizontal\",\"state\":{\"width\":1356,\"height\":869},\"children\":[{\"containerType\":\"panel\",\"state\":{\"width\":123,\"height\":869,\"element\":{\"id\":\"40cdc600-73f0-11ef-baec-5d0734bbb5b2\",\"type\":\"Filters\",\"look\":{\"#type\":\"FiltersLook\",\"filters\":[{\"type\":\"Chem:substructureFilter\",\"column\":\"smiles\",\"active\":true,\"columnName\":\"smiles\",\"molBlock\":\"\",\"searchType\":\"Contains\",\"simCutOff\":0.8,\"fp\":\"Morgan\",\"boolInput\":null},{\"type\":\"categorical\",\"column\":\"Mutagenicity\",\"active\":true,\"boolInput\":null},{\"type\":\"categorical\",\"column\":\"Tumorigenicity\",\"active\":true,\"boolInput\":null},{\"type\":\"categorical\",\"column\":\"Selected hits\",\"active\":true,\"boolInput\":null},{\"type\":\"categorical\",\"column\":\"Irritating effects\",\"active\":true,\"boolInput\":null},{\"type\":\"categorical\",\"column\":\"Reproductive effects\",\"active\":true,\"boolInput\":null},{\"type\":\"histogram\",\"column\":\"LogD\",\"active\":true,\"filterOutMissingValues\":false,\"showMissingValuesOnly\":false,\"showHistogram\":true,\"showSlider\":true,\"showMinMax\":false,\"boolInput\":null},{\"type\":\"histogram\",\"column\":\"MolWt\",\"active\":true,\"filterOutMissingValues\":false,\"showMissingValuesOnly\":false,\"showHistogram\":true,\"showSlider\":true,\"showMinMax\":false,\"boolInput\":null}]},\"title\":\"Filters\"}},\"children\":[]},{\"containerType\":\"vertical\",\"state\":{\"width\":652,\"height\":869},\"children\":[{\"containerType\":\"fill\",\"state\":{\"width\":652,\"height\":552,\"documentManager\":true},\"children\":[{\"containerType\":\"panel\",\"state\":{\"width\":652,\"height\":552,\"element\":{\"id\":\"40ce1420-73f0-11ef-e149-cfa7da300a5c\",\"type\":\"Grid\",\"look\":{\"#type\":\"GridLook\",\"showAddNewRowIcon\":true,\"addNewRowOnLastRowEdit\":true,\"rowHeight\":100,\"topLevelDefaultMenu\":true,\"allowColumnMenu\":true,\"columns\":[{\"width\":36,\"backgroundColor\":4294440951,\"customName\":\"\",\"cellType\":\"row header\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":200,\"columnName\":\"smiles\",\"cellType\":\"Molecule\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":59,\"columnName\":\"LogD\",\"cellType\":\"number\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":63,\"columnName\":\"MolWt\",\"cellType\":\"number\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":101,\"columnName\":\"Mutagenicity\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":113,\"columnName\":\"Tumorigenicity\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":120,\"columnName\":\"Irritating effects\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":147,\"columnName\":\"Reproductive effects\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":101,\"columnName\":\"Selected hits\",\"cellType\":\"bool\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"visible\":false,\"width\":0,\"columnName\":\"~smiles.Pattern\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"visible\":false,\"width\":0,\"columnName\":\"~smiles.canonicalSmiles\",\"headerCellStyle\":{\"textWrap\":\"words\"}}]},\"title\":\"Variable Molecules number\",\"default\":true}},\"children\":[]}]},{\"containerType\":\"panel\",\"state\":{\"width\":652,\"height\":316,\"element\":{\"id\":\"40ce1420-73f0-11ef-907b-1f636b264a43\",\"type\":\"Histogram\",\"look\":{\"#type\":\"HistogramLook\",\"valueColumnName\":\"MolWt\",\"showXAxis\":true,\"showYAxis\":true,\"binWidthRatio\":0.9,\"marginLeft\":5,\"marginRight\":5},\"title\":\"Histogram\"}},\"children\":[]}]},{\"containerType\":\"vertical\",\"state\":{\"width\":579,\"height\":869},\"children\":[{\"containerType\":\"panel\",\"state\":{\"width\":579,\"height\":239,\"element\":{\"id\":\"40ce3b30-73f0-11ef-e099-e1bd6cccb6e9\",\"type\":\"Bar chart\",\"look\":{\"#type\":\"BarChartLook\",\"valueColumnName\":\"LogD\",\"valueAggrType\":\"count\",\"barSortType\":\"by value\",\"barSortOrder\":\"desc\",\"splitColumnName\":\"Mutagenicity\"},\"title\":\"Bar chart\"}},\"children\":[]},{\"containerType\":\"panel\",\"state\":{\"width\":579,\"height\":216,\"element\":{\"id\":\"40ce3b30-73f0-11ef-fda4-af559d0f6b59\",\"type\":\"Bar chart\",\"look\":{\"#type\":\"BarChartLook\",\"valueColumnName\":\"LogD\",\"valueAggrType\":\"count\",\"barSortType\":\"by value\",\"barSortOrder\":\"desc\",\"splitColumnName\":\"Irritating effects\"},\"title\":\"Bar chart\"}},\"children\":[]},{\"containerType\":\"panel\",\"state\":{\"width\":579,\"height\":216,\"element\":{\"id\":\"40ce3b30-73f0-11ef-8cd7-5f5c6c756235\",\"type\":\"Bar chart\",\"look\":{\"#type\":\"BarChartLook\",\"valueColumnName\":\"LogD\",\"valueAggrType\":\"count\",\"barSortType\":\"by value\",\"barSortOrder\":\"desc\",\"splitColumnName\":\"Reproductive effects\"},\"title\":\"Bar chart\"}},\"children\":[]},{\"containerType\":\"panel\",\"state\":{\"width\":579,\"height\":195,\"element\":{\"id\":\"40ce6240-73f0-11ef-d8da-27625309edf0\",\"type\":\"Bar chart\",\"look\":{\"#type\":\"BarChartLook\",\"valueColumnName\":\"LogD\",\"valueAggrType\":\"count\",\"barSortType\":\"by value\",\"barSortOrder\":\"desc\",\"splitColumnName\":\"Tumorigenicity\"},\"title\":\"Bar chart\"}},\"children\":[]}]}],\"floating\":[],\"tableId\":\"0a2b1c10-73f0-11ef-9a73-496ef3e6e002\",\"tableName\":\"Variable Molecules number\"}"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
smiles,LogD,MolWt,Mutagenicity,Tumorigenicity,Irritating effects,Reproductive effects,Selected hits
|
|
2
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,<0.48,259.27099609375,None,None,None,None,false
|
|
3
|
+
CCCn1oc(C)cc1=O,0.66,141.1699981689453,None,None,None,None,false
|
|
4
|
+
O=C1OC(=O)C2=C1SCCS2,>-0.73,188.22900390625,None,None,High,None,false
|
|
5
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,<0.14,342.4859924316406,None,None,None,None,false
|
|
6
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,0.55,303.2699890136719,None,None,None,Low,false
|
|
7
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,>0.34,327.60198974609375,High,High,Low,High,false
|
|
8
|
+
c1cncc(-c2ncno2)c1,<0.87,147.13699340820312,None,None,None,None,false
|
|
9
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,0.83,374.1809997558594,None,None,None,None,false
|
|
10
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,>-0.21,289.2430114746094,None,None,None,None,false
|
|
11
|
+
NCc1cnn(O)c1Br,<-1.59,192.01600646972656,High,None,None,Low,false
|
|
12
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,-0.45,292.29400634765625,None,None,None,None,false
|
|
13
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,>0.55,210.10400390625,High,High,High,High,false
|
|
14
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,<0.43,314.2149963378906,High,None,None,None,false
|
|
15
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,-1.50,322.4330139160156,None,None,None,None,false
|
|
16
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,>-0.22,387.302001953125,None,None,None,None,false
|
|
17
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,<-0.43,245.2570037841797,None,None,None,None,false
|
|
18
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,0.38,353.8340148925781,High,High,None,None,false
|
|
19
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,>0.37,365.4830017089844,High,High,None,High,false
|
|
20
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,<-1.51,434.4110107421875,None,None,None,None,false
|
|
21
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,-1.55,451.4739990234375,None,None,None,None,false
|
|
22
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,>-1.30,259.27099609375,None,None,None,None,false
|
|
23
|
+
CCCn1oc(C)cc1=O,<0.44,141.1699981689453,None,None,None,None,false
|
|
24
|
+
O=C1OC(=O)C2=C1SCCS2,-1.93,188.22900390625,None,None,High,None,false
|
|
25
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,>-0.93,342.4859924316406,None,None,None,None,false
|
|
26
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,<0.41,303.2699890136719,None,None,None,Low,false
|
|
27
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,-0.91,327.60198974609375,High,High,Low,High,false
|
|
28
|
+
c1cncc(-c2ncno2)c1,>0.47,147.13699340820312,None,None,None,None,false
|
|
29
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,<-0.25,374.1809997558594,None,None,None,None,false
|
|
30
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,0.06,289.2430114746094,None,None,None,None,false
|
|
31
|
+
NCc1cnn(O)c1Br,>-0.04,192.01600646972656,High,None,None,Low,false
|
|
32
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,<-0.69,292.29400634765625,None,None,None,None,false
|
|
33
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,-1.33,210.10400390625,High,High,High,High,false
|
|
34
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,>0.63,314.2149963378906,High,None,None,None,false
|
|
35
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,<-1.74,322.4330139160156,None,None,None,None,false
|
|
36
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,-0.69,387.302001953125,None,None,None,None,false
|
|
37
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,>-0.40,245.2570037841797,None,None,None,None,false
|
|
38
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,<-0.60,353.8340148925781,High,High,None,None,false
|
|
39
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,-1.72,365.4830017089844,High,High,None,High,false
|
|
40
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,>-0.99,434.4110107421875,None,None,None,None,false
|
|
41
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,<-0.19,451.4739990234375,None,None,None,None,false
|
|
42
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,0.34,259.27099609375,None,None,None,None,false
|
|
43
|
+
CCCn1oc(C)cc1=O,>-1.53,141.1699981689453,None,None,None,None,false
|
|
44
|
+
O=C1OC(=O)C2=C1SCCS2,<-1.72,188.22900390625,None,None,High,None,false
|
|
45
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,-1.37,342.4859924316406,None,None,None,None,false
|
|
46
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,>-1.19,303.2699890136719,None,None,None,Low,false
|
|
47
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,<-0.17,327.60198974609375,High,High,Low,High,false
|
|
48
|
+
c1cncc(-c2ncno2)c1,0.58,147.13699340820312,None,None,None,None,false
|
|
49
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,>-0.59,374.1809997558594,None,None,None,None,false
|
|
50
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,<0.59,289.2430114746094,None,None,None,None,false
|
|
51
|
+
NCc1cnn(O)c1Br,0.80,192.01600646972656,High,None,None,Low,false
|
|
52
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,>-0.78,292.29400634765625,None,None,None,None,false
|
|
53
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,<-0.49,210.10400390625,High,High,High,High,false
|
|
54
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,0.75,314.2149963378906,High,None,None,None,false
|
|
55
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,>0.39,322.4330139160156,None,None,None,None,false
|
|
56
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,<-1.42,387.302001953125,None,None,None,None,false
|
|
57
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,-1.05,245.2570037841797,None,None,None,None,false
|
|
58
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,>-1.42,353.8340148925781,High,High,None,None,false
|
|
59
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,<0.12,365.4830017089844,High,High,None,High,false
|
|
60
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,0.06,434.4110107421875,None,None,None,None,false
|
|
61
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,>-1.63,451.4739990234375,None,None,None,None,false
|
|
62
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,<-1.87,259.27099609375,None,None,None,None,false
|
|
63
|
+
CCCn1oc(C)cc1=O,-0.26,141.1699981689453,None,None,None,None,false
|
|
64
|
+
O=C1OC(=O)C2=C1SCCS2,>-0.79,188.22900390625,None,None,High,None,false
|
|
65
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,<0.89,342.4859924316406,None,None,None,None,false
|
|
66
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,-1.59,303.2699890136719,None,None,None,Low,false
|
|
67
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,>0.86,327.60198974609375,High,High,Low,High,false
|
|
68
|
+
c1cncc(-c2ncno2)c1,<-0.39,147.13699340820312,None,None,None,None,false
|
|
69
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,0.88,374.1809997558594,None,None,None,None,false
|
|
70
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,>0.72,289.2430114746094,None,None,None,None,false
|
|
71
|
+
NCc1cnn(O)c1Br,<-0.06,192.01600646972656,High,None,None,Low,false
|
|
72
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,0.31,292.29400634765625,None,None,None,None,false
|
|
73
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,>0.40,210.10400390625,High,High,High,High,false
|
|
74
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,<-1.45,314.2149963378906,High,None,None,None,false
|
|
75
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,-1.11,322.4330139160156,None,None,None,None,false
|
|
76
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,>-0.97,387.302001953125,None,None,None,None,false
|
|
77
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,<-1.02,245.2570037841797,None,None,None,None,false
|
|
78
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,0.92,353.8340148925781,High,High,None,None,false
|
|
79
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,>0.80,365.4830017089844,High,High,None,High,false
|
|
80
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,<0.96,434.4110107421875,None,None,None,None,false
|
|
81
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,-0.53,451.4739990234375,None,None,None,None,false
|
|
82
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,>-0.89,259.27099609375,None,None,None,None,false
|
|
83
|
+
CCCn1oc(C)cc1=O,<-1.94,141.1699981689453,None,None,None,None,false
|
|
84
|
+
O=C1OC(=O)C2=C1SCCS2,-1.63,188.22900390625,None,None,High,None,false
|
|
85
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,>-0.99,342.4859924316406,None,None,None,None,false
|
|
86
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,<0.59,303.2699890136719,None,None,None,Low,false
|
|
87
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,0.56,327.60198974609375,High,High,Low,High,false
|
|
88
|
+
c1cncc(-c2ncno2)c1,>-1.72,147.13699340820312,None,None,None,None,false
|
|
89
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,<0.65,374.1809997558594,None,None,None,None,false
|
|
90
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,0.70,289.2430114746094,None,None,None,None,false
|
|
91
|
+
NCc1cnn(O)c1Br,>-1.54,192.01600646972656,High,None,None,Low,false
|
|
92
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,<-0.53,292.29400634765625,None,None,None,None,false
|
|
93
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,-0.85,210.10400390625,High,High,High,High,false
|
|
94
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,>-1.20,314.2149963378906,High,None,None,None,false
|
|
95
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,<-0.83,322.4330139160156,None,None,None,None,false
|
|
96
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,-0.33,387.302001953125,None,None,None,None,false
|
|
97
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,>-0.97,245.2570037841797,None,None,None,None,false
|
|
98
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,<0.93,353.8340148925781,High,High,None,None,false
|
|
99
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,-0.00,365.4830017089844,High,High,None,High,false
|
|
100
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,>-0.01,434.4110107421875,None,None,None,None,false
|
|
101
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,<0.48,451.4739990234375,None,None,None,None,false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"HTD-2","templateName":"HT Demo Template","filters":{},"ingest":{"type":"File","query":"System:AppData/HitTriage/Hit Triage/campaigns/HTD-2/enriched_table.csv","molColName":"smiles"},"status":"In Progress","createDate":"2024/10/17","campaignFields":{"Chemist":"Someone Else","Deadline":{"a":1761595200000,"b":false,"date":"2025-10-27T20:00:00.000Z"},"Scaffold":"CC(C1C)C(C)(C2)C1(C)c1c2cccc1"},"columnSemTypes":{"smiles":"Molecule","LogD":null,"MolWt":null,"Mutagenicity":null,"Tumorigenicity":null,"Irritating effects":null,"Reproductive effects":null,"Selected hits":null,"~smiles.Pattern":null,"~smiles.canonicalSmiles":null,"CHEMBL molregno":null},"rowCount":200,"filteredRowCount":200,"template":{"name":"HT Demo Template","key":"HTD","campaignFields":[{"name":"Chemist","type":"String","required":true},{"name":"Deadline","type":"Date","required":false},{"name":"Scaffold","type":"Molecule","required":false}],"dataSourceType":"Query","compute":{"descriptors":{"enabled":true,"args":["MolWt"]},"functions":[{"name":"addChemRisksColumns","package":"Chem","args":{"mutagenicity":true,"tumorigenicity":true,"irritatingEffects":true,"reproductiveEffects":true}},{"name":"chemblMolregno","package":"Chembl","args":{}}],"scripts":[],"queries":[]},"queryFunctionName":"Demo Molecules variable"},"columnTypes":{"smiles":"string","LogD":"qnum","MolWt":"double","Mutagenicity":"string","Tumorigenicity":"string","Irritating effects":"string","Reproductive effects":"string","Selected hits":"bool","~smiles.Pattern":"byte_array","~smiles.canonicalSmiles":"string","CHEMBL molregno":"int"},"authorUserId":"e44f5f40-73f0-11ef-884d-c35bc9987eba","permissions":{"view":["a4b45840-9a50-11e6-9cc9-8546b8bf62e6"],"edit":["a4b45840-9a50-11e6-9cc9-8546b8bf62e6"]},"layout":"{\"containerType\":\"fill\",\"state\":{\"width\":1348,\"height\":869,\"documentManager\":true},\"children\":[{\"containerType\":\"panel\",\"state\":{\"width\":1348,\"height\":869,\"element\":{\"id\":\"081e66b0-73f0-11ef-cb08-4b54914fb43d\",\"type\":\"Grid\",\"look\":{\"#type\":\"GridLook\",\"showAddNewRowIcon\":true,\"addNewRowOnLastRowEdit\":true,\"rowHeight\":100,\"topLevelDefaultMenu\":true,\"allowColumnMenu\":true,\"columns\":[{\"width\":36,\"backgroundColor\":4294440951,\"customName\":\"\",\"cellType\":\"row header\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":200,\"columnName\":\"smiles\",\"cellType\":\"Molecule\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":59,\"columnName\":\"LogD\",\"cellType\":\"number\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":63,\"columnName\":\"MolWt\",\"cellType\":\"number\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":101,\"columnName\":\"Mutagenicity\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":113,\"columnName\":\"Tumorigenicity\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":120,\"columnName\":\"Irritating effects\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"isColorCoded\":true,\"width\":147,\"columnName\":\"Reproductive effects\",\"colorCodingType\":\"Categorical\",\"colorCodingCategorical\":{\"Unknown\":4278190080,\"None\":4278215680,\"Low\":4294944000,\"High\":4287299584},\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":101,\"columnName\":\"Selected hits\",\"cellType\":\"bool\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"visible\":false,\"width\":0,\"columnName\":\"~smiles.Pattern\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"visible\":false,\"width\":0,\"columnName\":\"~smiles.canonicalSmiles\",\"headerCellStyle\":{\"textWrap\":\"words\"}},{\"width\":136,\"columnName\":\"CHEMBL molregno\",\"cellType\":\"number\",\"headerCellStyle\":{\"textWrap\":\"words\"}}]},\"title\":\"Variable Molecules number\",\"default\":true}},\"children\":[]}],\"floating\":[],\"tableId\":\"a3ead9d0-73f0-11ef-813e-211e47babfbf\",\"tableName\":\"Variable Molecules number\"}"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
smiles,LogD,MolWt,Mutagenicity,Tumorigenicity,Irritating effects,Reproductive effects,Selected hits,CHEMBL molregno
|
|
2
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,<0.48,259.27099609375,None,None,None,None,false,1480028
|
|
3
|
+
CCCn1oc(C)cc1=O,0.66,141.1699981689453,None,None,None,None,false,1487562
|
|
4
|
+
O=C1OC(=O)C2=C1SCCS2,>-0.73,188.22900390625,None,None,High,None,false,1480188
|
|
5
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,<0.14,342.4859924316406,None,None,None,None,false,1480194
|
|
6
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,0.55,303.2699890136719,None,None,None,Low,false,1480205
|
|
7
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,>0.34,327.60198974609375,High,High,Low,High,false,1480274
|
|
8
|
+
c1cncc(-c2ncno2)c1,<0.87,147.13699340820312,None,None,None,None,false,1485991
|
|
9
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,0.83,374.1809997558594,None,None,None,None,false,1480439
|
|
10
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,>-0.21,289.2430114746094,None,None,None,None,false,1480449
|
|
11
|
+
NCc1cnn(O)c1Br,<-1.59,192.01600646972656,High,None,None,Low,false,1514289
|
|
12
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,-0.45,292.29400634765625,None,None,None,None,false,1480658
|
|
13
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,>0.55,210.10400390625,High,High,High,High,false,1486343
|
|
14
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,<0.43,314.2149963378906,High,None,None,None,false,1480773
|
|
15
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,-1.50,322.4330139160156,None,None,None,None,false,1480793
|
|
16
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,>-0.22,387.302001953125,None,None,None,None,false,1480801
|
|
17
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,<-0.43,245.2570037841797,None,None,None,None,false,1480836
|
|
18
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,0.38,353.8340148925781,High,High,None,None,false,1480861
|
|
19
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,>0.37,365.4830017089844,High,High,None,High,false,1480869
|
|
20
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,<-1.51,434.4110107421875,None,None,None,None,false,1480935
|
|
21
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,-1.55,451.4739990234375,None,None,None,None,false,1480953
|
|
22
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,>-1.30,259.27099609375,None,None,None,None,false,1480028
|
|
23
|
+
CCCn1oc(C)cc1=O,<0.44,141.1699981689453,None,None,None,None,false,1487562
|
|
24
|
+
O=C1OC(=O)C2=C1SCCS2,-1.93,188.22900390625,None,None,High,None,false,1480188
|
|
25
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,>-0.93,342.4859924316406,None,None,None,None,false,1480194
|
|
26
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,<0.41,303.2699890136719,None,None,None,Low,false,1480205
|
|
27
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,-0.91,327.60198974609375,High,High,Low,High,false,1480274
|
|
28
|
+
c1cncc(-c2ncno2)c1,>0.47,147.13699340820312,None,None,None,None,false,1485991
|
|
29
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,<-0.25,374.1809997558594,None,None,None,None,false,1480439
|
|
30
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,0.06,289.2430114746094,None,None,None,None,false,1480449
|
|
31
|
+
NCc1cnn(O)c1Br,>-0.04,192.01600646972656,High,None,None,Low,false,1514289
|
|
32
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,<-0.69,292.29400634765625,None,None,None,None,false,1480658
|
|
33
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,-1.33,210.10400390625,High,High,High,High,false,1486343
|
|
34
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,>0.63,314.2149963378906,High,None,None,None,false,1480773
|
|
35
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,<-1.74,322.4330139160156,None,None,None,None,false,1480793
|
|
36
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,-0.69,387.302001953125,None,None,None,None,false,1480801
|
|
37
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,>-0.40,245.2570037841797,None,None,None,None,false,1480836
|
|
38
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,<-0.60,353.8340148925781,High,High,None,None,false,1480861
|
|
39
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,-1.72,365.4830017089844,High,High,None,High,false,1480869
|
|
40
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,>-0.99,434.4110107421875,None,None,None,None,false,1480935
|
|
41
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,<-0.19,451.4739990234375,None,None,None,None,false,1480953
|
|
42
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,0.34,259.27099609375,None,None,None,None,false,1480028
|
|
43
|
+
CCCn1oc(C)cc1=O,>-1.53,141.1699981689453,None,None,None,None,false,1487562
|
|
44
|
+
O=C1OC(=O)C2=C1SCCS2,<-1.72,188.22900390625,None,None,High,None,false,1480188
|
|
45
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,-1.37,342.4859924316406,None,None,None,None,false,1480194
|
|
46
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,>-1.19,303.2699890136719,None,None,None,Low,false,1480205
|
|
47
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,<-0.17,327.60198974609375,High,High,Low,High,false,1480274
|
|
48
|
+
c1cncc(-c2ncno2)c1,0.58,147.13699340820312,None,None,None,None,false,1485991
|
|
49
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,>-0.59,374.1809997558594,None,None,None,None,false,1480439
|
|
50
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,<0.59,289.2430114746094,None,None,None,None,false,1480449
|
|
51
|
+
NCc1cnn(O)c1Br,0.80,192.01600646972656,High,None,None,Low,false,1514289
|
|
52
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,>-0.78,292.29400634765625,None,None,None,None,false,1480658
|
|
53
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,<-0.49,210.10400390625,High,High,High,High,false,1486343
|
|
54
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,0.75,314.2149963378906,High,None,None,None,false,1480773
|
|
55
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,>0.39,322.4330139160156,None,None,None,None,false,1480793
|
|
56
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,<-1.42,387.302001953125,None,None,None,None,false,1480801
|
|
57
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,-1.05,245.2570037841797,None,None,None,None,false,1480836
|
|
58
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,>-1.42,353.8340148925781,High,High,None,None,false,1480861
|
|
59
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,<0.12,365.4830017089844,High,High,None,High,false,1480869
|
|
60
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,0.06,434.4110107421875,None,None,None,None,false,1480935
|
|
61
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,>-1.63,451.4739990234375,None,None,None,None,false,1480953
|
|
62
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,<-1.87,259.27099609375,None,None,None,None,false,1480028
|
|
63
|
+
CCCn1oc(C)cc1=O,-0.26,141.1699981689453,None,None,None,None,false,1487562
|
|
64
|
+
O=C1OC(=O)C2=C1SCCS2,>-0.79,188.22900390625,None,None,High,None,false,1480188
|
|
65
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,<0.89,342.4859924316406,None,None,None,None,false,1480194
|
|
66
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,-1.59,303.2699890136719,None,None,None,Low,false,1480205
|
|
67
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,>0.86,327.60198974609375,High,High,Low,High,false,1480274
|
|
68
|
+
c1cncc(-c2ncno2)c1,<-0.39,147.13699340820312,None,None,None,None,false,1485991
|
|
69
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,0.88,374.1809997558594,None,None,None,None,false,1480439
|
|
70
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,>0.72,289.2430114746094,None,None,None,None,false,1480449
|
|
71
|
+
NCc1cnn(O)c1Br,<-0.06,192.01600646972656,High,None,None,Low,false,1514289
|
|
72
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,0.31,292.29400634765625,None,None,None,None,false,1480658
|
|
73
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,>0.40,210.10400390625,High,High,High,High,false,1486343
|
|
74
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,<-1.45,314.2149963378906,High,None,None,None,false,1480773
|
|
75
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,-1.11,322.4330139160156,None,None,None,None,false,1480793
|
|
76
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,>-0.97,387.302001953125,None,None,None,None,false,1480801
|
|
77
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,<-1.02,245.2570037841797,None,None,None,None,false,1480836
|
|
78
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,0.92,353.8340148925781,High,High,None,None,false,1480861
|
|
79
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,>0.80,365.4830017089844,High,High,None,High,false,1480869
|
|
80
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,<0.96,434.4110107421875,None,None,None,None,false,1480935
|
|
81
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,-0.53,451.4739990234375,None,None,None,None,false,1480953
|
|
82
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,>-0.89,259.27099609375,None,None,None,None,false,1480028
|
|
83
|
+
CCCn1oc(C)cc1=O,<-1.94,141.1699981689453,None,None,None,None,false,1487562
|
|
84
|
+
O=C1OC(=O)C2=C1SCCS2,-1.63,188.22900390625,None,None,High,None,false,1480188
|
|
85
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,>-0.99,342.4859924316406,None,None,None,None,false,1480194
|
|
86
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,<0.59,303.2699890136719,None,None,None,Low,false,1480205
|
|
87
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,0.56,327.60198974609375,High,High,Low,High,false,1480274
|
|
88
|
+
c1cncc(-c2ncno2)c1,>-1.72,147.13699340820312,None,None,None,None,false,1485991
|
|
89
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,<0.65,374.1809997558594,None,None,None,None,false,1480439
|
|
90
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,0.70,289.2430114746094,None,None,None,None,false,1480449
|
|
91
|
+
NCc1cnn(O)c1Br,>-1.54,192.01600646972656,High,None,None,Low,false,1514289
|
|
92
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,<-0.53,292.29400634765625,None,None,None,None,false,1480658
|
|
93
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,-0.85,210.10400390625,High,High,High,High,false,1486343
|
|
94
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,>-1.20,314.2149963378906,High,None,None,None,false,1480773
|
|
95
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,<-0.83,322.4330139160156,None,None,None,None,false,1480793
|
|
96
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,-0.33,387.302001953125,None,None,None,None,false,1480801
|
|
97
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,>-0.97,245.2570037841797,None,None,None,None,false,1480836
|
|
98
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,<0.93,353.8340148925781,High,High,None,None,false,1480861
|
|
99
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,-0.00,365.4830017089844,High,High,None,High,false,1480869
|
|
100
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,>-0.01,434.4110107421875,None,None,None,None,false,1480935
|
|
101
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,<0.48,451.4739990234375,None,None,None,None,false,1480953
|
|
102
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,0.45,259.27099609375,None,None,None,None,false,1480028
|
|
103
|
+
CCCn1oc(C)cc1=O,>-1.18,141.1699981689453,None,None,None,None,false,1487562
|
|
104
|
+
O=C1OC(=O)C2=C1SCCS2,<-0.34,188.22900390625,None,None,High,None,false,1480188
|
|
105
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,-0.91,342.4859924316406,None,None,None,None,false,1480194
|
|
106
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,>-1.15,303.2699890136719,None,None,None,Low,false,1480205
|
|
107
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,<-0.42,327.60198974609375,High,High,Low,High,false,1480274
|
|
108
|
+
c1cncc(-c2ncno2)c1,0.86,147.13699340820312,None,None,None,None,false,1485991
|
|
109
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,>0.66,374.1809997558594,None,None,None,None,false,1480439
|
|
110
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,<-0.88,289.2430114746094,None,None,None,None,false,1480449
|
|
111
|
+
NCc1cnn(O)c1Br,-0.62,192.01600646972656,High,None,None,Low,false,1514289
|
|
112
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,>-0.59,292.29400634765625,None,None,None,None,false,1480658
|
|
113
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,<-1.74,210.10400390625,High,High,High,High,false,1486343
|
|
114
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,-0.83,314.2149963378906,High,None,None,None,false,1480773
|
|
115
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,>-0.33,322.4330139160156,None,None,None,None,false,1480793
|
|
116
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,<-1.55,387.302001953125,None,None,None,None,false,1480801
|
|
117
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,-1.27,245.2570037841797,None,None,None,None,false,1480836
|
|
118
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,>0.15,353.8340148925781,High,High,None,None,false,1480861
|
|
119
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,<0.45,365.4830017089844,High,High,None,High,false,1480869
|
|
120
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,-1.54,434.4110107421875,None,None,None,None,false,1480935
|
|
121
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,>-1.87,451.4739990234375,None,None,None,None,false,1480953
|
|
122
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,<-0.76,259.27099609375,None,None,None,None,false,1480028
|
|
123
|
+
CCCn1oc(C)cc1=O,0.71,141.1699981689453,None,None,None,None,false,1487562
|
|
124
|
+
O=C1OC(=O)C2=C1SCCS2,>-1.44,188.22900390625,None,None,High,None,false,1480188
|
|
125
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,<0.50,342.4859924316406,None,None,None,None,false,1480194
|
|
126
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,-0.31,303.2699890136719,None,None,None,Low,false,1480205
|
|
127
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,>-0.08,327.60198974609375,High,High,Low,High,false,1480274
|
|
128
|
+
c1cncc(-c2ncno2)c1,<0.89,147.13699340820312,None,None,None,None,false,1485991
|
|
129
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,0.46,374.1809997558594,None,None,None,None,false,1480439
|
|
130
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,>0.89,289.2430114746094,None,None,None,None,false,1480449
|
|
131
|
+
NCc1cnn(O)c1Br,<0.33,192.01600646972656,High,None,None,Low,false,1514289
|
|
132
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,-0.09,292.29400634765625,None,None,None,None,false,1480658
|
|
133
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,>-2.00,210.10400390625,High,High,High,High,false,1486343
|
|
134
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,<-0.13,314.2149963378906,High,None,None,None,false,1480773
|
|
135
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,-1.65,322.4330139160156,None,None,None,None,false,1480793
|
|
136
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,>0.41,387.302001953125,None,None,None,None,false,1480801
|
|
137
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,<-1.34,245.2570037841797,None,None,None,None,false,1480836
|
|
138
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,-0.59,353.8340148925781,High,High,None,None,false,1480861
|
|
139
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,>-1.00,365.4830017089844,High,High,None,High,false,1480869
|
|
140
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,<0.98,434.4110107421875,None,None,None,None,false,1480935
|
|
141
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,-0.55,451.4739990234375,None,None,None,None,false,1480953
|
|
142
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,>-1.73,259.27099609375,None,None,None,None,false,1480028
|
|
143
|
+
CCCn1oc(C)cc1=O,<-1.02,141.1699981689453,None,None,None,None,false,1487562
|
|
144
|
+
O=C1OC(=O)C2=C1SCCS2,-0.18,188.22900390625,None,None,High,None,false,1480188
|
|
145
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,>-0.99,342.4859924316406,None,None,None,None,false,1480194
|
|
146
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,<-0.83,303.2699890136719,None,None,None,Low,false,1480205
|
|
147
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,0.07,327.60198974609375,High,High,Low,High,false,1480274
|
|
148
|
+
c1cncc(-c2ncno2)c1,>-1.85,147.13699340820312,None,None,None,None,false,1485991
|
|
149
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,<-1.17,374.1809997558594,None,None,None,None,false,1480439
|
|
150
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,-1.73,289.2430114746094,None,None,None,None,false,1480449
|
|
151
|
+
NCc1cnn(O)c1Br,>0.24,192.01600646972656,High,None,None,Low,false,1514289
|
|
152
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,<-1.45,292.29400634765625,None,None,None,None,false,1480658
|
|
153
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,0.64,210.10400390625,High,High,High,High,false,1486343
|
|
154
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,>-0.97,314.2149963378906,High,None,None,None,false,1480773
|
|
155
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,<-0.22,322.4330139160156,None,None,None,None,false,1480793
|
|
156
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,-0.89,387.302001953125,None,None,None,None,false,1480801
|
|
157
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,>-1.31,245.2570037841797,None,None,None,None,false,1480836
|
|
158
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,<-0.40,353.8340148925781,High,High,None,None,false,1480861
|
|
159
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,-1.94,365.4830017089844,High,High,None,High,false,1480869
|
|
160
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,>-0.20,434.4110107421875,None,None,None,None,false,1480935
|
|
161
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,<-0.13,451.4739990234375,None,None,None,None,false,1480953
|
|
162
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,-1.17,259.27099609375,None,None,None,None,false,1480028
|
|
163
|
+
CCCn1oc(C)cc1=O,>0.40,141.1699981689453,None,None,None,None,false,1487562
|
|
164
|
+
O=C1OC(=O)C2=C1SCCS2,<-1.71,188.22900390625,None,None,High,None,false,1480188
|
|
165
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,-0.78,342.4859924316406,None,None,None,None,false,1480194
|
|
166
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,>0.28,303.2699890136719,None,None,None,Low,false,1480205
|
|
167
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,<0.90,327.60198974609375,High,High,Low,High,false,1480274
|
|
168
|
+
c1cncc(-c2ncno2)c1,0.44,147.13699340820312,None,None,None,None,false,1485991
|
|
169
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,>0.38,374.1809997558594,None,None,None,None,false,1480439
|
|
170
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,<0.25,289.2430114746094,None,None,None,None,false,1480449
|
|
171
|
+
NCc1cnn(O)c1Br,-0.52,192.01600646972656,High,None,None,Low,false,1514289
|
|
172
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,>-1.03,292.29400634765625,None,None,None,None,false,1480658
|
|
173
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,<-1.62,210.10400390625,High,High,High,High,false,1486343
|
|
174
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,0.56,314.2149963378906,High,None,None,None,false,1480773
|
|
175
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,>-0.88,322.4330139160156,None,None,None,None,false,1480793
|
|
176
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,<-0.36,387.302001953125,None,None,None,None,false,1480801
|
|
177
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,0.17,245.2570037841797,None,None,None,None,false,1480836
|
|
178
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,>-0.41,353.8340148925781,High,High,None,None,false,1480861
|
|
179
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,<-0.46,365.4830017089844,High,High,None,High,false,1480869
|
|
180
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,-1.07,434.4110107421875,None,None,None,None,false,1480935
|
|
181
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,>0.88,451.4739990234375,None,None,None,None,false,1480953
|
|
182
|
+
CN1CCC(Oc2ccc(C(F)(F)F)cc2)CC1,<0.17,259.27099609375,None,None,None,None,false,1480028
|
|
183
|
+
CCCn1oc(C)cc1=O,0.78,141.1699981689453,None,None,None,None,false,1487562
|
|
184
|
+
O=C1OC(=O)C2=C1SCCS2,>-0.48,188.22900390625,None,None,High,None,false,1480188
|
|
185
|
+
CC1CCN(CC(O)CN2C(=O)C3=C(SCCS3)C2=O)CC1,<-1.78,342.4859924316406,None,None,None,None,false,1480194
|
|
186
|
+
CCn1cc(C(=O)/C=C(\O)C(=O)O)c2cc3c(cc21)OCO3,0.89,303.2699890136719,None,None,None,Low,false,1480205
|
|
187
|
+
ClCc1ccc(Cn2cnc3nc(Cl)nc(Cl)c32)cc1,>-0.74,327.60198974609375,High,High,Low,High,false,1480274
|
|
188
|
+
c1cncc(-c2ncno2)c1,<-0.03,147.13699340820312,None,None,None,None,false,1485991
|
|
189
|
+
O=c1[nH]c2ccccc2nc1/C(I)=C/c1ccccc1,0.75,374.1809997558594,None,None,None,None,false,1480439
|
|
190
|
+
Cn1c(C(=O)/C=C(\O)C(=O)O)cc2cc3c(cc21)OCO3,>-1.53,289.2430114746094,None,None,None,None,false,1480449
|
|
191
|
+
NCc1cnn(O)c1Br,<0.35,192.01600646972656,High,None,None,Low,false,1514289
|
|
192
|
+
O=c1[nH]cnc2c1C(c1ccccc1)c1ccc(O)cc1O2,-0.28,292.29400634765625,None,None,None,None,false,1480658
|
|
193
|
+
C=CCN(CCC)C(=O)C(Cl)Cl,>0.49,210.10400390625,High,High,High,High,false,1486343
|
|
194
|
+
Nc1cc(-c2ccc(Cl)cc2)cc(-c2ccc(Cl)cc2)c1,<-1.82,314.2149963378906,High,None,None,None,false,1480773
|
|
195
|
+
Cc1cccc(C(=O)n2cc(C)n(-c3ccccc3C)c2=S)c1,0.22,322.4330139160156,None,None,None,None,false,1480793
|
|
196
|
+
Cc1ccc(C(=O)n2cc(C)n(-c3ccc(Br)cc3)c2=S)cc1,>-0.29,387.302001953125,None,None,None,None,false,1480801
|
|
197
|
+
C/C(=N\NC(=O)c1ccc(F)cc1)c1ccc[nH]1,<-0.46,245.2570037841797,None,None,None,None,false,1480836
|
|
198
|
+
O=C(Nc1ccc(Cl)cc1)Nc1nc2c(ccc3ccccc32)s1,-0.06,353.8340148925781,High,High,None,None,false,1480861
|
|
199
|
+
COc1ccccc1NC(=S)Nc1nc2c(ccc3ccccc32)s1,>0.76,365.4830017089844,High,High,None,High,false,1480869
|
|
200
|
+
Cl.O=C(C1CCCN(Cc2ccccc2)C1)N1CCN(c2ccccc2Cl)CC1,<-1.44,434.4110107421875,None,None,None,None,false,1480935
|
|
201
|
+
O=c1cc(-c2ccc(Cl)cc2Cl)oc2c(I)cc(Cl)cc12,0.08,451.4739990234375,None,None,None,None,false,1480953
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"HT Demo Template","key":"HTD","campaignFields":[{"name":"Chemist","type":"String","required":true},{"name":"Deadline","type":"Date","required":false},{"name":"Scaffold","type":"Molecule","required":false}],"dataSourceType":"Query","compute":{"descriptors":{"enabled":true,"args":["MolWt"]},"functions":[{"name":"addChemRisksColumns","package":"Chem","args":{"mutagenicity":true,"tumorigenicity":true,"irritatingEffects":true,"reproductiveEffects":true}}],"scripts":[],"queries":[]},"queryFunctionName":"Demo Molecules variable"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/hit-triage",
|
|
3
3
|
"friendlyName": "HitTriage",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Davit Rizhinashvili",
|
|
7
7
|
"email": "drizhinashvili@datagrok.ai"
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@datagrok-libraries/compute-utils": "^1.39.0",
|
|
20
20
|
"@datagrok-libraries/utils": "^4.3.0",
|
|
21
|
-
"cash-dom": "
|
|
21
|
+
"cash-dom": "^8.1.5",
|
|
22
22
|
"css-loader": "^6.5.1",
|
|
23
23
|
"datagrok-api": "^1.21.1",
|
|
24
24
|
"source-map-loader": "^4.0.1",
|
|
25
25
|
"style-loader": "^3.3.1",
|
|
26
|
-
"ts-loader": "
|
|
26
|
+
"ts-loader": "^9.5.1",
|
|
27
27
|
"rxjs": "^6.5.5",
|
|
28
|
-
"typescript": "
|
|
28
|
+
"typescript": "^5.6.3",
|
|
29
29
|
"uuid": "^9.0.0",
|
|
30
30
|
"typeahead-standalone": "4.14.1"
|
|
31
31
|
},
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@typescript-eslint/parser": "^5.32.0",
|
|
36
36
|
"eslint": "^8.21.0",
|
|
37
37
|
"eslint-config-google": "^0.14.0",
|
|
38
|
-
"webpack": "
|
|
39
|
-
"webpack-cli": "
|
|
38
|
+
"webpack": "^5.95.0",
|
|
39
|
+
"webpack-cli": "^5.1.4"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"lint": "eslint src --ext .ts",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"All users"
|
|
61
61
|
],
|
|
62
62
|
"category": "Cheminformatics"
|
|
63
|
-
}
|
|
63
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
1
2
|
import * as grok from 'datagrok-api/grok';
|
|
2
3
|
import * as ui from 'datagrok-api/ui';
|
|
3
4
|
import * as DG from 'datagrok-api/dg';
|
|
@@ -72,6 +73,48 @@ export class HitDesignApp<T extends HitDesignTemplate = HitDesignTemplate> exten
|
|
|
72
73
|
}));
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
public get stages() {
|
|
77
|
+
return this.campaign?.template?.stages ?? this.template?.stages ?? [];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public async setStages(st: string[]) {
|
|
81
|
+
if (!this.campaign || !this.campaign.template || !this.template) {
|
|
82
|
+
grok.shell.error('Campaign or template is not set');
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (!st?.length) {
|
|
86
|
+
grok.shell.error('Removing all stages is not allowed');
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const stageCol = this.dataFrame?.col(TileCategoriesColName);
|
|
90
|
+
if (!stageCol) {
|
|
91
|
+
grok.shell.error('No stage column found');
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const removedStages: string[] = [];
|
|
95
|
+
//make sure there is no duplication
|
|
96
|
+
const stageSet = new Set(st);
|
|
97
|
+
const uniqueStages = [...stageSet];
|
|
98
|
+
const dfLen = this.dataFrame!.rowCount;
|
|
99
|
+
const stageCats = stageCol.categories;
|
|
100
|
+
const stageIndexes = stageCol.getRawData() as Int32Array;
|
|
101
|
+
for (let i = 0; i < dfLen; i++) {
|
|
102
|
+
const stage = stageCats[stageIndexes[i]];
|
|
103
|
+
if (!stageSet.has(stage)) {
|
|
104
|
+
stageCol.set(i, st[0], false);
|
|
105
|
+
removedStages.push(stage);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (removedStages.length > 0)
|
|
110
|
+
grok.shell.warning(`Some stages were removed: (${removedStages.join(', ')}). Corresponding rows were set to stage "${st[0]}"`);
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
this.campaign.template.stages = uniqueStages;
|
|
114
|
+
this.template.stages = uniqueStages;
|
|
115
|
+
await this.saveCampaign(undefined, true);
|
|
116
|
+
}
|
|
117
|
+
|
|
75
118
|
public async setTemplate(template: T, campaignId?: string) {
|
|
76
119
|
if (!campaignId) {
|
|
77
120
|
this._designView?.dataFrame && grok.shell.closeTable(this._designView.dataFrame);
|
|
@@ -304,8 +347,9 @@ export class HitDesignApp<T extends HitDesignTemplate = HitDesignTemplate> exten
|
|
|
304
347
|
});
|
|
305
348
|
submitButton.classList.add('hit-design-submit-button');
|
|
306
349
|
const ribbonButtons: HTMLElement[] = [submitButton];
|
|
307
|
-
if (this.
|
|
350
|
+
if (this.stages.length > 0)
|
|
308
351
|
ribbonButtons.unshift(tilesButton);
|
|
352
|
+
// only initialize campaign template if its not exsitent yet
|
|
309
353
|
if (this.campaign && this.template && !this.campaign.template)
|
|
310
354
|
this.campaign.template = this.template;
|
|
311
355
|
|
|
@@ -358,11 +402,11 @@ export class HitDesignApp<T extends HitDesignTemplate = HitDesignTemplate> exten
|
|
|
358
402
|
subs.push(this.dataFrame!.onRowsAdded.pipe(filter(() => !this.isJoining))
|
|
359
403
|
.subscribe(() => { // TODO, insertion of rows in the middle
|
|
360
404
|
try {
|
|
361
|
-
if (this.
|
|
405
|
+
if (this.stages.length > 0) {
|
|
362
406
|
for (let i = 0; i < this.dataFrame!.rowCount; i++) {
|
|
363
407
|
const colVal = this.dataFrame!.col(TileCategoriesColName)!.get(i);
|
|
364
408
|
if (!colVal || colVal === '' || this.dataFrame!.col(TileCategoriesColName)?.isNone(i))
|
|
365
|
-
this.dataFrame!.set(TileCategoriesColName, i, this.
|
|
409
|
+
this.dataFrame!.set(TileCategoriesColName, i, this.stages[0]);
|
|
366
410
|
}
|
|
367
411
|
}
|
|
368
412
|
let lastAddedCell: DG.GridCell | null = null;
|
|
@@ -5,6 +5,7 @@ import {HitDesignApp} from '../hit-design-app';
|
|
|
5
5
|
import {_package} from '../../package';
|
|
6
6
|
import {TileCategoriesColName} from '../consts';
|
|
7
7
|
import './utils.css';
|
|
8
|
+
import {getTileCategoryEditor} from '../accordeons/new-hit-design-template-accordeon';
|
|
8
9
|
|
|
9
10
|
export function getTilesViewDialog(app: HitDesignApp, getTableView: () => DG.TableView | null) {
|
|
10
11
|
const tilesViewerSketchStateString = app.campaign?.tilesViewerFormSketch;
|
|
@@ -32,7 +33,8 @@ export function getTilesViewDialog(app: HitDesignApp, getTableView: () => DG.Tab
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
const tileOpts = {lanesColumnName: TileCategoriesColName,
|
|
36
|
+
const tileOpts = {lanesColumnName: TileCategoriesColName,
|
|
37
|
+
lanes: app.stages,
|
|
36
38
|
...((sketchState?.elementStates?.length ?? 0) > 0 ? {sketchState} : {})};
|
|
37
39
|
|
|
38
40
|
const tv = getTableView();
|
|
@@ -59,15 +61,50 @@ export function getTilesViewDialog(app: HitDesignApp, getTableView: () => DG.Tab
|
|
|
59
61
|
v.detach();
|
|
60
62
|
}
|
|
61
63
|
v = tv.addViewer(DG.VIEWER.TILE_VIEWER,
|
|
62
|
-
{lanesColumnName: TileCategoriesColName, lanes: app.
|
|
64
|
+
{lanesColumnName: TileCategoriesColName, lanes: app.stages});
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
if (!v) {
|
|
66
68
|
grok.shell.error('Failed to create tiles viewer. check the console for more details.');
|
|
67
69
|
return;
|
|
68
70
|
}
|
|
69
|
-
modal.add(v.root);
|
|
70
71
|
|
|
72
|
+
let stageEditorDialog: DG.Dialog | null = null;
|
|
73
|
+
const closeViewer = () => {// it can be already closed by the time we get here
|
|
74
|
+
try {
|
|
75
|
+
v.detach();
|
|
76
|
+
v.close();
|
|
77
|
+
} catch (e) {
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
modal.add(v.root);
|
|
81
|
+
modal.addButton('Modify Stages', () => {
|
|
82
|
+
stageEditorDialog?.close();
|
|
83
|
+
const stageEditor = getTileCategoryEditor(app.stages);
|
|
84
|
+
stageEditorDialog = ui.dialog('Modify Stages')
|
|
85
|
+
.add(stageEditor.fieldsDiv)
|
|
86
|
+
.onOK(async () => {
|
|
87
|
+
closeViewer(); // so that its not included in the layout.
|
|
88
|
+
ui.setUpdateIndicator(modal.root, true);
|
|
89
|
+
try {
|
|
90
|
+
await app.setStages(stageEditor.getFields());
|
|
91
|
+
ui.setUpdateIndicator(modal.root, false);
|
|
92
|
+
modal.close();
|
|
93
|
+
await new Promise<void>((r) => setTimeout(() => {
|
|
94
|
+
r();
|
|
95
|
+
getTilesViewDialog(app, getTableView);
|
|
96
|
+
}, 100));
|
|
97
|
+
} catch (e) {
|
|
98
|
+
grok.shell.error('Failed to update stages. check the console for more details.');
|
|
99
|
+
console.error('Failed to update stages', e);
|
|
100
|
+
} finally {
|
|
101
|
+
if (modal?.root && document.contains(modal.root))
|
|
102
|
+
modal.close();
|
|
103
|
+
}
|
|
104
|
+
})
|
|
105
|
+
.show();
|
|
106
|
+
stageEditorDialog.root.classList.add('hit-design-stage-editing-dialog');
|
|
107
|
+
}, 0);
|
|
71
108
|
// from this modal, only way to go to another view is through edit form.
|
|
72
109
|
// when this happens, we should not destroy the viewer,
|
|
73
110
|
//but just hide it so that when we come back, we can show it again.
|
|
@@ -85,6 +122,7 @@ export function getTilesViewDialog(app: HitDesignApp, getTableView: () => DG.Tab
|
|
|
85
122
|
const closeSub = modal.onClose.subscribe(() => {
|
|
86
123
|
closeSub.unsubscribe();
|
|
87
124
|
viewChangeSub.unsubscribe();
|
|
125
|
+
stageEditorDialog?.close();
|
|
88
126
|
// save the sketch state
|
|
89
127
|
try {
|
|
90
128
|
const sketchState = v.props.sketchState;
|
|
@@ -97,13 +135,13 @@ export function getTilesViewDialog(app: HitDesignApp, getTableView: () => DG.Tab
|
|
|
97
135
|
grok.shell.error('Failed to save sketch state. check the console for more details.');
|
|
98
136
|
console.error('Failed to save sketch state', e);
|
|
99
137
|
}
|
|
100
|
-
|
|
101
|
-
v.close();
|
|
138
|
+
closeViewer();
|
|
102
139
|
});
|
|
103
140
|
|
|
104
141
|
modal.showModal(true);
|
|
105
142
|
|
|
106
|
-
|
|
143
|
+
modal.getButton('CANCEL')?.remove();
|
|
144
|
+
modal.onOK(() => {});
|
|
107
145
|
// remove the modal background
|
|
108
146
|
document.querySelector('.d4-modal-background')?.remove();
|
|
109
147
|
}
|
package/src/app/pepti-hit-app.ts
CHANGED
|
@@ -80,11 +80,11 @@ export class PeptiHitApp extends HitDesignApp<PeptiHitTemplate> {
|
|
|
80
80
|
subs.push(this.dataFrame!.onRowsAdded.pipe(filter(() => !this.isJoining))
|
|
81
81
|
.subscribe(() => { // TODO, insertion of rows in the middle
|
|
82
82
|
try {
|
|
83
|
-
if (this.
|
|
83
|
+
if (this.stages.length > 0) {
|
|
84
84
|
for (let i = 0; i < this.dataFrame!.rowCount; i++) {
|
|
85
85
|
const colVal = this.dataFrame!.col(TileCategoriesColName)!.get(i);
|
|
86
86
|
if (!colVal || colVal === '' || this.dataFrame!.col(TileCategoriesColName)?.isNone(i))
|
|
87
|
-
this.dataFrame!.set(TileCategoriesColName, i, this.
|
|
87
|
+
this.dataFrame!.set(TileCategoriesColName, i, this.stages[0]);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
let lastAddedCell: DG.GridCell | null = null;
|
package/src/global.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as grokNamespace from 'datagrok-api/grok';
|
|
2
|
+
import * as uiNamespace from 'datagrok-api/ui';
|
|
3
|
+
import * as DGNamespace from 'datagrok-api/dg';
|
|
4
|
+
import * as rxjsNamespace from 'rxjs';
|
|
5
|
+
import $Namespace from 'cash-dom';
|
|
6
|
+
|
|
7
|
+
declare global {
|
|
8
|
+
const grok: typeof grokNamespace;
|
|
9
|
+
const ui: typeof uiNamespace;
|
|
10
|
+
const DG: typeof DGNamespace;
|
|
11
|
+
const rjxs: typeof rxjsNamespace;
|
|
12
|
+
const $: typeof $Namespace;
|
|
13
|
+
}
|