graphdb-workbench-tests 3.1.0-TR2 → 3.1.0-TR4

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/.nycrc ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "temp-directory": "../.nyc_output",
3
+ "include": [
4
+ "packages/legacy-workbench/src/**/*.js"
5
+ ],
6
+ "exclude": [
7
+ "packages/root-config/**",
8
+ "packages/shared-components/**"
9
+ ]
10
+ }
@@ -1,5 +1,7 @@
1
1
  const {defineConfig} = require('cypress');
2
2
 
3
+ const isCoverage = process.env.COVERAGE === 'true';
4
+
3
5
  module.exports = defineConfig({
4
6
  projectId: 'v35btb',
5
7
  fixturesFolder: 'fixtures',
@@ -8,6 +10,8 @@ module.exports = defineConfig({
8
10
  video: true,
9
11
  defaultCommandTimeout: 25000,
10
12
  numTestsKeptInMemory: 10,
13
+ viewportWidth: 1280,
14
+ viewportHeight: 720,
11
15
  e2e: {
12
16
  retries: {
13
17
  runMode: 2,
@@ -16,7 +20,11 @@ module.exports = defineConfig({
16
20
  // We've imported your old cypress plugins here.
17
21
  // You may want to clean this up later by importing these.
18
22
  setupNodeEvents(on, config) {
19
- return require('./plugins')(on, config);
23
+ require('./plugins')(on, config);
24
+ if (isCoverage) {
25
+ require('@bahmutov/cypress-code-coverage/plugin')(on, config)
26
+ }
27
+ return config;
20
28
  },
21
29
  baseUrl: 'http://localhost:9000',
22
30
  specPattern: 'e2e-legacy/**/*.{js,jsx,ts,tsx}',
@@ -85,10 +85,7 @@ describe('Graphql: import endpoint definitions', () => {
85
85
  ]);
86
86
  });
87
87
 
88
- /**
89
- * TODO Fixme broken due migration (Error unknown)
90
- */
91
- it.skip('should be able to import broken endpoint definition', () => {
88
+ it('should be able to import broken endpoint definition', () => {
92
89
  visitAndOpenImportModal();
93
90
  // When I select the file to upload
94
91
  ImportEndpointDefinitionModalSteps.selectFile(brokenSwapiDefinitionPath);
@@ -7,10 +7,7 @@ import {LicenseStubs} from "../../stubs/license-stubs";
7
7
  Cypress.env('set_default_user_data', false);
8
8
 
9
9
 
10
- /**
11
- * TODO: Fix me. Broken due to migration (Cookie policy is not implemented in the new footer)
12
- */
13
- describe.skip('Cookie policy', () => {
10
+ describe('Cookie policy', () => {
14
11
  beforeEach(() => {
15
12
  cy.setDefaultUserData(false);
16
13
  cy.viewport(1280, 1000);
@@ -19,71 +16,70 @@ describe.skip('Cookie policy', () => {
19
16
 
20
17
  afterEach(() => cy.setDefaultUserData());
21
18
 
22
- it('Should show consent popup to user', () => {
23
- HomeSteps.visit();
24
- EnvironmentStubs.stubWbProdMode();
25
- HomeSteps.getCookieConsentPopup().should('exist').and('be.visible');
26
- // When I click on the link
27
- HomeSteps.clickCookiePolicyLink();
28
- // Then I see the cookie policy
29
- HomeSteps.getCookiePolicyModal().should('exist').and('be.visible');
30
- });
19
+ context('should show', () => {
20
+ it('Should show consent popup to user', () => {
21
+ HomeSteps.visitInProdMode();
22
+ HomeSteps.getCookieConsentPopup().should('exist').and('be.visible');
23
+ // When I click on the link
24
+ HomeSteps.clickCookiePolicyLink();
25
+ // Then I see the cookie policy
26
+ HomeSteps.getCookiePolicyModal().should('exist').and('be.visible');
27
+ });
31
28
 
32
- it('Should show cookie policy to user in user settings', () => {
33
- SettingsSteps.visit();
34
- EnvironmentStubs.stubWbProdMode();
35
- SettingsSteps.getCookiePolicyButton().should('exist').and('be.visible');
29
+ it('Should show cookie policy to user in user settings', () => {
30
+ SettingsSteps.visitInProdMode();
31
+ SettingsSteps.getCookiePolicyButton().should('exist').and('be.visible');
36
32
 
37
- // When I click on the link
38
- SettingsSteps.clickCookiePolicyLink();
39
- // Then I see the cookie policy
40
- SettingsSteps.getCookiePolicyModal().should('exist').and('be.visible');
41
- });
33
+ // When I click on the link
34
+ SettingsSteps.clickCookiePolicyLink();
35
+ // Then I see the cookie policy
36
+ SettingsSteps.getCookiePolicyModal().should('exist').and('be.visible');
37
+ });
42
38
 
43
- it('Should NOT show consent popup to user when tracking is not applicable', () => {
44
- HomeSteps.visit();
45
- HomeSteps.getCookieConsentPopup().should('not.exist');
46
- });
39
+ it('Should save consent in user settings', () => {
40
+ HomeSteps.visitInProdMode();
41
+ SecurityStubs.stubUpdateUserData('admin');
47
42
 
48
- it('Should NOT show cookie policy to user when tracking is not applicable', () => {
49
- SettingsSteps.visit();
50
- SettingsSteps.getCookiePolicyButton().should('not.exist');
51
- });
43
+ // When I click Agree button
44
+ HomeSteps.clickAgreeButton();
52
45
 
53
- it('Should save consent in user settings', () => {
54
- HomeSteps.visit();
55
- EnvironmentStubs.stubWbProdMode();
56
- SecurityStubs.stubUpdateUserData('admin');
46
+ // I expect to save cookie consent in user settings
47
+ cy.wait('@updateUser').then((xhr) => {
48
+ expect(xhr.request.body.appSettings).to.include({
49
+ DEFAULT_INFERENCE: true,
50
+ DEFAULT_VIS_GRAPH_SCHEMA: true,
51
+ DEFAULT_SAMEAS: true,
52
+ IGNORE_SHARED_QUERIES: false,
53
+ EXECUTE_COUNT: true
54
+ });
57
55
 
58
- // When I click Agree button
59
- HomeSteps.clickAgreeButton();
56
+ // Assert COOKIE_CONSENT properties, excluding updatedAt
57
+ expect(xhr.request.body.appSettings.COOKIE_CONSENT).to.include({
58
+ policyAccepted: true
59
+ });
60
60
 
61
- // I expect to save cookie consent in user settings
62
- cy.wait('@updateUser').then((xhr) => {
63
- expect(xhr.request.body.appSettings).to.include({
64
- DEFAULT_INFERENCE: true,
65
- DEFAULT_VIS_GRAPH_SCHEMA: true,
66
- DEFAULT_SAMEAS: true,
67
- IGNORE_SHARED_QUERIES: false,
68
- EXECUTE_COUNT: true
69
- });
61
+ // Assert that updatedAt is present, is a number, and is a reasonable timestamp
62
+ const updatedAt = xhr.request.body.appSettings.COOKIE_CONSENT.updatedAt;
63
+ expect(updatedAt).to.exist;
64
+ expect(updatedAt).to.be.a('number');
70
65
 
71
- // Assert COOKIE_CONSENT properties, excluding updatedAt
72
- expect(xhr.request.body.appSettings.COOKIE_CONSENT).to.include({
73
- policyAccepted: true,
74
- statistic: true,
75
- thirdParty: true
66
+ // Check that updatedAt is within 1 hour of the current time
67
+ const oneHourInMilliseconds = 60 * 60 * 1000;
68
+ const now = Date.now();
69
+ expect(updatedAt).to.be.within(now - oneHourInMilliseconds, now + oneHourInMilliseconds);
76
70
  });
71
+ });
72
+ })
77
73
 
78
- // Assert that updatedAt is present, is a number, and is a reasonable timestamp
79
- const updatedAt = xhr.request.body.appSettings.COOKIE_CONSENT.updatedAt;
80
- expect(updatedAt).to.exist;
81
- expect(updatedAt).to.be.a('number');
74
+ context('should not show', () => {
75
+ it('Should NOT show consent popup to user when tracking is not applicable', () => {
76
+ HomeSteps.visitInDevMode();
77
+ HomeSteps.getCookieConsentPopup().should('not.exist');
78
+ });
82
79
 
83
- // Check that updatedAt is within 1 hour of the current time
84
- const oneHourInMilliseconds = 60 * 60 * 1000;
85
- const now = Date.now();
86
- expect(updatedAt).to.be.within(now - oneHourInMilliseconds, now + oneHourInMilliseconds);
80
+ it('Should NOT show cookie policy to user when tracking is not applicable', () => {
81
+ SettingsSteps.visitInDevMode();
82
+ SettingsSteps.getCookiePolicyButton().should('not.exist');
87
83
  });
88
84
  });
89
85
  });
@@ -11,10 +11,9 @@ describe('Documentation links resolver', () => {
11
11
  });
12
12
 
13
13
  it('Should link to master version when in dev mode', () => {
14
- HomeSteps.visit();
14
+ HomeSteps.visitInDevMode();
15
15
  waitForProductInfo();
16
16
  BrowserStubs.stubWindowOpen();
17
- EnvironmentStubs.stubWbDevMode();
18
17
  MainMenuSteps.clickOnMenuHelp();
19
18
  // Assert that links point to the master version
20
19
  assertDocumentationLinks('master');
@@ -23,10 +22,9 @@ describe('Documentation links resolver', () => {
23
22
 
24
23
  it('Should link to master version when in prod mode and unofficial version', () => {
25
24
  EnvironmentStubs.stubProductInfo('10.8-TR1-test');
26
- HomeSteps.visit();
25
+ HomeSteps.visitInProdMode();
27
26
  waitForProductInfo();
28
27
  BrowserStubs.stubWindowOpen();
29
- EnvironmentStubs.stubWbProdMode();
30
28
  MainMenuSteps.clickOnMenuHelp();
31
29
  // Assert that links point to the master version
32
30
  assertDocumentationLinks('master');
@@ -34,10 +32,9 @@ describe('Documentation links resolver', () => {
34
32
 
35
33
  it('Should link to GDB version when in prod mode and official version', () => {
36
34
  EnvironmentStubs.stubProductInfo('10.8');
37
- HomeSteps.visit();
35
+ HomeSteps.visitInProdMode();
38
36
  waitForProductInfo();
39
37
  BrowserStubs.stubWindowOpen();
40
- EnvironmentStubs.stubWbProdMode();
41
38
  MainMenuSteps.clickOnMenuHelp();
42
39
  // Assert that links point to the specific GDB version
43
40
  assertDocumentationLinks('10.8');
@@ -11,8 +11,7 @@ describe('Google analytics', () => {
11
11
  // Note: Google API calls are stubbed for all specs in support/index.js
12
12
  it('Should set GA tracking code in header and a cookie when free license and prodMode', () => {
13
13
  LicenseStubs.stubFreeLicense();
14
- HomeSteps.visit();
15
- EnvironmentStubs.stubWbProdMode();
14
+ HomeSteps.visitInProdMode();
16
15
 
17
16
  cy.document()
18
17
  .get('head script')
@@ -28,8 +27,7 @@ describe('Google analytics', () => {
28
27
 
29
28
  it('Should set GA tracking code in header and cookie when evaluation enterprise license and prodMode', () => {
30
29
  LicenseStubs.stubEvaluationLicense();
31
- HomeSteps.visit();
32
- EnvironmentStubs.stubWbProdMode();
30
+ HomeSteps.visitInProdMode();
33
31
 
34
32
  cy.document()
35
33
  .get('head script')
@@ -45,8 +43,7 @@ describe('Google analytics', () => {
45
43
 
46
44
  it('Should NOT set GA tracking code in header and cookie when enterprise license in prodMode', () => {
47
45
  LicenseStubs.stubEnterpriseLicense();
48
- HomeSteps.visit();
49
- EnvironmentStubs.stubWbProdMode();
46
+ HomeSteps.visitInProdMode();
50
47
 
51
48
  cy.document()
52
49
  .get('head script')
@@ -14,7 +14,6 @@ describe('RDF resource search', () => {
14
14
  cy.createRepository({id: repositoryId});
15
15
  cy.initializeRepository(repositoryId);
16
16
  cy.enableAutocomplete(repositoryId);
17
- BrowserStubs.stubCryptoUUID();
18
17
  });
19
18
 
20
19
  afterEach(() => {
@@ -5,11 +5,9 @@ import {ModalDialogSteps} from "../../../steps/modal-dialog-steps";
5
5
  import {ToasterSteps} from "../../../steps/toaster-steps";
6
6
  import HomeSteps from "../../../steps/home-steps";
7
7
  import {LoginSteps} from "../../../steps/login-steps";
8
+ import {MainMenuSteps} from "../../../steps/main-menu-steps";
8
9
 
9
10
 
10
- /**
11
- * TODO: Fix me. Broken due to migration (Error: unknown)
12
- */
13
11
  describe('User and Access', () => {
14
12
 
15
13
  const PASSWORD = "password";
@@ -179,6 +177,7 @@ describe('User and Access', () => {
179
177
  cy.deleteRepository(repositoryId2, true);
180
178
  cy.deleteRepository(repositoryId3, true);
181
179
  cy.deleteUser(graphqlUser, true);
180
+ cy.switchOffFreeAccess(true);
182
181
  cy.switchOffSecurity(true);
183
182
  });
184
183
 
@@ -454,9 +453,9 @@ describe('User and Access', () => {
454
453
  function navigateMenuPath(pathArray, expectedUrl, expectedTitle) {
455
454
  pathArray.forEach((label, index) => {
456
455
  if (index === 0) {
457
- UserAndAccessSteps.clickMenuItem(label);
456
+ MainMenuSteps.clickOnMenu(label);
458
457
  } else {
459
- UserAndAccessSteps.clickSubmenuItem(label);
458
+ MainMenuSteps.clickOnSubMenu(label);
460
459
  const title = expectedTitle ? expectedTitle : label;
461
460
  cy.get('h1').should('contain', title);
462
461
  }
@@ -46,7 +46,7 @@ describe('Share saved queries', () => {
46
46
  });
47
47
 
48
48
  // FIX: Skipped because the functionality is not working. There is a bug in the application https://graphwise.atlassian.net/browse/GDB-12633
49
- it.skip('Should be able to open a share link in a new editor tab', () => {
49
+ it('Should be able to open a share link in a new editor tab', () => {
50
50
  // Given I have created a query
51
51
  YasguiSteps.getTabs().should('have.length', 1);
52
52
  const savedQueryName = SavedQuery.generateQueryName();
@@ -1,10 +1,12 @@
1
1
  import {RepositoriesStubs} from "../../stubs/repositories/repositories-stubs";
2
2
  import {RepositoriesStub} from "../../stubs/repositories-stub";
3
- import {UserAndAccessSteps} from "../../steps/setup/user-and-access-steps";
4
3
  import {TTYGStubs} from "../../stubs/ttyg/ttyg-stubs";
5
4
  import {TTYGViewSteps} from "../../steps/ttyg/ttyg-view-steps";
6
5
  import {LoginSteps} from "../../steps/login-steps";
6
+ import {SecurityStubs} from "../../stubs/security-stubs";
7
+ import {RepositorySelectorSteps} from "../../steps/repository-selector-steps";
7
8
 
9
+ const REPOSITORY_ID = 'starwars';
8
10
  const USER_WITH_ROLE_USER = 'ttyg_user';
9
11
  const USER_WITH_ROLE_REPO_MANAGER = 'ttyg_repo_manager';
10
12
  const USER_ADMINISTRATOR = 'admin';
@@ -14,12 +16,8 @@ const DISABLED = false;
14
16
 
15
17
  describe('TTYG permissions', () => {
16
18
 
17
-
18
19
  before(() => {
19
- RepositoriesStubs.stubRepositories(0, '/repositories/get-ttyg-repositories.json');
20
- RepositoriesStub.stubBaseEndpoints('starwars');
21
20
  cy.loginAsAdmin();
22
- cy.presetRepository('starwars');
23
21
  cy.createUser({username: USER_WITH_ROLE_USER, password: PASSWORD});
24
22
  cy.createUser({
25
23
  username: USER_WITH_ROLE_REPO_MANAGER,
@@ -29,6 +27,12 @@ describe('TTYG permissions', () => {
29
27
  cy.switchOnSecurity();
30
28
  });
31
29
 
30
+ beforeEach(() => {
31
+ SecurityStubs.spyOnAuthenticatedUser();
32
+ RepositoriesStubs.stubRepositories(0, '/repositories/get-ttyg-repositories.json');
33
+ RepositoriesStub.stubBaseEndpoints(REPOSITORY_ID);
34
+ })
35
+
32
36
  after(() => {
33
37
  cy.loginAsAdmin();
34
38
  cy.deleteUser(USER_WITH_ROLE_USER, true);
@@ -36,14 +40,17 @@ describe('TTYG permissions', () => {
36
40
  cy.switchOffSecurity(true);
37
41
  });
38
42
 
39
- it('should disable all buttons that can modify the agent', () => {
40
-
43
+ it('should disable all buttons that can modify the agent when user is with ROLE_USER', () => {
41
44
  // When I log in with a user who has the ROLE_USER role, I expect all buttons modifying the agent to be disabled.
42
45
  verifyCanCreateAgentForFirstTime(USER_WITH_ROLE_USER, PASSWORD, DISABLED);
46
+ });
43
47
 
48
+ it('should enable all buttons that can modify the agent when user is with role ROLE_REPO_MANAGER', () => {
44
49
  // When I log in with a user who has the ROLE_REPO_MANAGER role, I expect all buttons modifying the agent to be enabled.
45
50
  verifyCanCreateAgentForFirstTime(USER_WITH_ROLE_REPO_MANAGER, PASSWORD, ENABLED);
51
+ });
46
52
 
53
+ it('should enable all buttons that can modify the agent when user is admin', () => {
47
54
  // When I log in with a user who is administrator, I expect all buttons modifying the agent to be enabled.
48
55
  verifyCanCreateAgentForFirstTime(USER_ADMINISTRATOR, PASSWORD, ENABLED);
49
56
  });
@@ -52,7 +59,12 @@ describe('TTYG permissions', () => {
52
59
  const shouldBe = enable ? 'be.enabled' : 'be.disabled';
53
60
  TTYGStubs.stubAgentListGet('/ttyg/agent/get-agent-list-0.json');
54
61
  TTYGViewSteps.visit();
62
+ cy.url().should('include', '/login');
63
+ cy.wait('@get-authenticated-user');
64
+ cy.wait('@get-authenticated-user');
65
+ cy.wait('@get-authenticated-user');
55
66
  LoginSteps.loginWithUser(user, password);
67
+ RepositorySelectorSteps.selectRepository(REPOSITORY_ID);
56
68
  TTYGViewSteps.getCreateFirstAgentButton().should(shouldBe);
57
69
  TTYGStubs.stubChatsListGet();
58
70
  TTYGStubs.stubAgentListGet();
@@ -61,6 +73,5 @@ describe('TTYG permissions', () => {
61
73
  TTYGViewSteps.getCreateAgentButton().should(shouldBe);
62
74
  TTYGViewSteps.getEditCurrentAgentButton().should(shouldBe);
63
75
  TTYGViewSteps.getToggleAgentsSidebarButton().should(shouldBe);
64
- LoginSteps.logout();
65
76
  }
66
77
  });
@@ -6,7 +6,7 @@
6
6
  "topP": 1.0,
7
7
  "seed": 0,
8
8
  "repositoryId": "test-repository",
9
- "instructions": {
9
+ "assistantsInstructions": {
10
10
  "systemInstruction": "",
11
11
  "userInstruction": "If you need to write a SPARQL query, use only the classes and properties provided in the schema and don't invent or guess any. Always try to return human-readable names or labels and not only the IRIs. If SPARQL fails to provide the necessary information you can try another tool too."
12
12
  },
@@ -7,7 +7,7 @@
7
7
  "topP": 0.0,
8
8
  "seed": null,
9
9
  "repositoryId": "Not existing repo",
10
- "instructions": {
10
+ "assistantsInstructions": {
11
11
  "systemInstruction": "string\n\nstring",
12
12
  "userInstruction": "string"
13
13
  },
@@ -25,7 +25,7 @@
25
25
  "topP": 1.0,
26
26
  "seed": null,
27
27
  "repositoryId": "starwars",
28
- "instructions": {
28
+ "assistantsInstructions": {
29
29
  "systemInstruction": "You are helpful assistant in discovering information regarding diagnostic biomarkers.",
30
30
  "userInstruction": null
31
31
  },
@@ -43,7 +43,7 @@
43
43
  "topP": 1.0,
44
44
  "seed": null,
45
45
  "repositoryId": "biomarkers",
46
- "instructions": {
46
+ "assistantsInstructions": {
47
47
  "systemInstruction": "You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",
48
48
  "userInstruction": null
49
49
  },
@@ -6,7 +6,7 @@
6
6
  "temperature": 0.7,
7
7
  "topP": 1.0,
8
8
  "repositoryId": "starwars",
9
- "instructions": {
9
+ "assistantsInstructions": {
10
10
  "systemInstruction": null,
11
11
  "userInstruction": null
12
12
  },
@@ -7,7 +7,7 @@
7
7
  "topP": 0.2,
8
8
  "seed": 2,
9
9
  "repositoryId": "starwars",
10
- "instructions": {
10
+ "assistantsInstructions": {
11
11
  "systemInstruction": "",
12
12
  "userInstruction": ""
13
13
  },
@@ -8,7 +8,7 @@
8
8
  "seed": null,
9
9
  "repositoryId": "starwars",
10
10
  "compatibility": "INCOMPATIBLE",
11
- "instructions": {
11
+ "assistantsInstructions": {
12
12
  "systemInstruction": "",
13
13
  "userInstruction": ""
14
14
  },
@@ -28,7 +28,7 @@
28
28
  "seed": null,
29
29
  "repositoryId": "Not existing repo",
30
30
  "compatibility": "COMPATIBLE",
31
- "instructions": {
31
+ "assistantsInstructions": {
32
32
  "systemInstruction": "string\n\nstring",
33
33
  "userInstruction": "string"
34
34
  },
@@ -46,7 +46,7 @@
46
46
  "topP": 1.0,
47
47
  "seed": null,
48
48
  "repositoryId": "starwars",
49
- "instructions": {
49
+ "assistantsInstructions": {
50
50
  "systemInstruction": "You are helpful assistant in discovering information regarding diagnostic biomarkers.",
51
51
  "userInstruction": null
52
52
  },
@@ -65,7 +65,7 @@
65
65
  "topP": 1.0,
66
66
  "seed": null,
67
67
  "repositoryId": "biomarkers",
68
- "instructions": {
68
+ "assistantsInstructions": {
69
69
  "systemInstruction": "You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",
70
70
  "userInstruction": null
71
71
  },
@@ -7,7 +7,7 @@
7
7
  "topP": 0.0,
8
8
  "seed": null,
9
9
  "repositoryId": "starwars",
10
- "instructions": {
10
+ "assistantsInstructions": {
11
11
  "systemInstruction": "",
12
12
  "userInstruction": ""
13
13
  },
@@ -26,7 +26,7 @@
26
26
  "topP": 0.0,
27
27
  "seed": null,
28
28
  "repositoryId": "Not existing repo",
29
- "instructions": {
29
+ "assistantsInstructions": {
30
30
  "systemInstruction": "string\n\nstring",
31
31
  "userInstruction": "string"
32
32
  },
@@ -44,7 +44,7 @@
44
44
  "topP": 1.0,
45
45
  "seed": null,
46
46
  "repositoryId": "starwars",
47
- "instructions": {
47
+ "assistantsInstructions": {
48
48
  "systemInstruction": "You are helpful assistant in discovering information regarding diagnostic biomarkers.",
49
49
  "userInstruction": null
50
50
  },
@@ -63,7 +63,7 @@
63
63
  "topP": 1.0,
64
64
  "seed": null,
65
65
  "repositoryId": "biomarkers",
66
- "instructions": {
66
+ "assistantsInstructions": {
67
67
  "systemInstruction": "You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",
68
68
  "userInstruction": null
69
69
  },
@@ -5,7 +5,7 @@
5
5
  "temperature": 0.7,
6
6
  "topP": 1.0,
7
7
  "repositoryId": "starwars",
8
- "instructions": {
8
+ "assistantsInstructions": {
9
9
  "systemInstruction": null,
10
10
  "userInstruction": null
11
11
  },