Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Target Identification] Export results #986

Closed
mzueva opened this issue Oct 10, 2023 · 9 comments
Closed

[Target Identification] Export results #986

mzueva opened this issue Oct 10, 2023 · 9 comments
Assignees
Labels
kind/enhancement New feature or request

Comments

@mzueva
Copy link
Collaborator

mzueva commented Oct 10, 2023

Background
Three approaches shall be supported for target identification export:

  • every table shall be exported as a separate csv file
  • overall target identification reports shall be exported as a multi-sheet excel file
  • overall target identification reports shall be as static html page
@AlfiyaRF
Copy link
Collaborator

AlfiyaRF commented Oct 30, 2023

For the static html page the server need to generate data in following format:

{
  name: string,
  interest: [{
    id: string,
    name: string,
    species: string,
    description?: string,
  }],
  translational: [{
    id: string,
    name: string,
    species: string,
    description?: string,
  }],
  totalCounts: {
    knownDrugs?: {
      drugs?: number;
      records?: number;
    },
    diseases?: number,
    sequences?: {
      dnas?: number,
      mrnas?: number,
      proteins?: number,
    },
    genomics?: number,
    structures?: number,
    publications?: number,
  },
  knownDrugs: [
    {
      source: "OPEN_TARGETS",
      data: [{
        target: string,
        drug: {
          value: string,
          link?: string,
        },
        type?: string
        mechanism?: string,
        action?: string,
        disease?: {
          value: string,
          link?: string,
        },
        phase?: string,
        status?: string,
        source?: {
          value: string,
          link?: string,
        }
      }],
    },
    {
      source: "DGIDB",
      data: [{
        target: string,
        drug: {
          value: string,
          link?: string,
        },
        interactionSource?: string,
        interactionType:? string,
      }],
    },
    {
      source: "PHARMGKB",
      data: [{
        target: string,
        drug: {
          value: string,
          link?: string,
        },
        source?: string,
      }],
    },
  ],
  associatedDiseases: [
    {
      source: "OPEN_TARGETS",
      data: [{
        target: string,
        disease: {
          value: string,
          link?: string,
        },
        overallScore?: number,
        geneticAssociation?: number,
        somaticMutations?: number,
        drugs?: number,
        pathwaysSystems?: number,
        textMining?: number,
        animalModels?: number,
        RNAExpression?: number,
      }],
    },
    {
      source: "PHARMGKB",
      data: [{
        target: string,
        disease: {
          value: string,
          link?: string,
        },
      }],
    },
  ],
  sequences: [
    {
      gene: {
        id: string,
        name: string,
        species: string,
      },
      reference?: {
        value: string,
        link?: string,
      },
      data: [{
        target: string,
        transcript?: {
          value: string,
          link?: string,
        },
        mrnaLength?: number,
        protein?: {
          value: string,
          link?: string,
        }
        proteinLength?: number,
        proteinName?: string,
      }]
    }
  ],
  comparativeGenomics: [{
    target: string,
    species: string,
    homologyType: string,
    homologue?: {
      value: string,
      link?: string,
    },
    homologyGroup?: string,
    protein?: string,
    aa?: number,
  }],
  structures: [
    {
      source: 'PROTEIN_DATA_BANK',
      data: [{
        id: {
          value: string,
          link?: string,
        },
        name: string,
        method?: string,
        source?: string,
        resolution?: number,
        chains?: string,
      }]
    },
    {
      source: 'LOCAL_FILES',
      data: [{
        id: {
          value: string,
          link?: string,
        },
        name: string,
        owner: string,
      }]
    },
  ],
  publications: [{
    title: {
      name: 'string',
      link: 'string',
    },
    authors?: string[],
    date?: 'string'
  }]
}

mzueva added a commit that referenced this issue Nov 13, 2023
mzueva added a commit that referenced this issue Nov 13, 2023
mzueva added a commit that referenced this issue Nov 13, 2023
mzueva added a commit that referenced this issue Nov 13, 2023
mzueva added a commit that referenced this issue Nov 13, 2023
rodichenko pushed a commit that referenced this issue Nov 14, 2023
* added selector for download report button, added download html

* changed style for selector dropdown

* fix style

* fix style
@maryvictol
Copy link
Collaborator

maryvictol commented Nov 14, 2023

Bug:
HTML Report:
The number of found drugs (and records) isn't shown in the header of the Known Drugs table.


Verified as fixed

@maryvictol
Copy link
Collaborator

maryvictol commented Nov 14, 2023

Bug:
HTML Report:
Targets column is empty in the Sequences table.
image


Verified as fixed

@maryvictol
Copy link
Collaborator

Bug:
HTML Report:
In filters with selectable values it is impossible to select an empty value.
image

@maryvictol
Copy link
Collaborator

maryvictol commented Nov 14, 2023

Bug:
HTML Report:
The names of some columns in the HTML Report don't match the names of corresponding columns on UI:
Known Drugs table:
Source: Open Targets : Mechanism instead of Mechanism Of Action, Action instead of Action Type
Source: DGIdb: Interaction Source instead of Interaction Claim Source, Interaction Type instead of Interaction Types


Verified as fixed

@maryvictol
Copy link
Collaborator

maryvictol commented Nov 14, 2023

Bug:
HTML Report:
Structures table: Structure ID should be link to sources where the current structure is presented.


Verified as fixed

@maryvictol
Copy link
Collaborator

Bug:
HTML Report:
In all fields with a drop-down list (filter fields, Source drop-down) the arrow opening drop-down does not work to open the list, only to close. The drop-down list can be expanded only by clicking on the field.

@maryvictol
Copy link
Collaborator

Bug:
HTML Report:
Associated diseases table: it is impossible to input values for score filters started from 0., only from the dot. It might confuse users.

@maryvictol
Copy link
Collaborator

maryvictol commented Nov 15, 2023

Bug:
HTML Report:
Associated diseases table > Source Open Targets : Disease should be link to sources where the current disease is presented.


Verified as fixed

rodichenko pushed a commit that referenced this issue Nov 17, 2023
* fixed filter list empty item selection

* renamed drugs table columns, checked structures id as a link

* set to close dropdown lists for filter and selector with second click

* fix for number input with 0 at the begining

* test local pdb id as a link
@mzueva mzueva closed this as completed Dec 19, 2023
mzueva pushed a commit that referenced this issue Mar 26, 2024
* (Issue #959) 'Disease search from Target Identification panel' doc was added

* (Issue #839) Comparative genomics block description was added to the Target Identification doc

* (Issues #889, #986, #1028, #1031, #1037) Docs were added/updated

* (Issues #946, #1059) Docs about patents search and ad-hoc target identification were added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants