Skip to content

SCREEN - Add UMAP and Bar plot for Phase 0 RNA-seq samples on gene entity page under MOHD tab based on TPM values  #292

@NishiPhalke

Description

@NishiPhalke
  1. Add MOHD icon view on left page for gene entity page
  2. Use below query fetch TPM values for given gene along with metadata at https://mohd-api-251345758618.us-east4.run.app/graphql
  3. Returned tpm values are raw TPM (not log transformed)
query fetch_MOHD_RNA_TPM_Values($gene_ids: [String!]!) {
  rna_tpm(gene_ids: $gene_ids) {
    gene_id
    samples {
      value
      metadata {
        kit
        sample_id
        sex
        site
        status
        umap_x
        umap_y
      }
    }
  }
}

Please use geneids without version for input (take subset of string before . for gene ENSG00000000003.13 input gene_id would be ENSG00000000003)

{
  "gene_ids": ["ENSG00000000003"]
}
  1. Add Filtering/Coloring by sex, status,site, on UMAP and bar plot
  2. UMAP color gradient should be based on TPM values (by default)

use below color map
status_color_map = {'case' : '#e41a1c', 'control' : '#377eb8', 'unknown' : 'lightgray'}
site_color_map = {'CCH' : '#BF3831',
'CKD' : '#79B4F0',
'EXP' : '#159875',
'MOM' : '#CDA0E8',
'UIC' : '#31487D'}
sex_color_map = {female:"#9d5ca3", male: "#62A35C"}

  1. map sample_id to Dataset

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions