- Add MOHD icon view on left page for gene entity page
- Use below query fetch TPM values for given gene along with metadata at https://mohd-api-251345758618.us-east4.run.app/graphql
- 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"]
}
- Add Filtering/Coloring by sex, status,site, on UMAP and bar plot
- 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"}
- map sample_id to Dataset