ucscXena / XenaGoWidget

Xena Gene Set Viewer (demo: http://xenademo.berkeleybop.io/xena)
https://xenageneset.berkeleybop.io/xena/
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

started upload process #633

Closed nathandunn closed 4 years ago

nathandunn commented 4 years ago

fixes #631

https://www.geeksforgeeks.org/file-uploading-in-react-js/



FROM

A: [ data ], data[i]: { X: <golabel (go:id)> , <sample 1>: <value 1>, , <sample N>: <value N> } B: TSV data, <golabel1>\t<goid1>\t<gene1>\t<gene2>\t<geneN>\n

INTO

C: [ data ] : data[i] = { goid: <goid> ,golabel: <golabel>, gene: [ genes in set], firstGeneExpressionPathwayActivity, secondGeneExpressionPathwayActivity }



  1. [x] get service to submit properly with the loaded gmt and the tpm for the cohort
  2. [x] validate caching
  3. [x] fix analysis output (regulon, etc.) <simpleError: There are no regulons with size of at least 2 targets.> by comparing to the curl data
  4. [x] submit analysis to server for each cohort
  5. [x] store analysis locally and load on demand, or pull (from the right source), I think this is "probes", as we are trying to get gene expression
  6. [x] run analysis after fetch in handleUploadFile?
  7. [x] create analysis service

  1. [x] verify submit GMT data

  2. [x] get tpm data on the server side

  3. [x] cache tpm file on servder

  4. [x] do analysis for EACH cohort

  5. [x] fixed server submit CORS issue

  6. [x] upload geneset / GMT

  7. [x] cache geneset / GMT

  8. [x] get it to fetch properly (dropping or not storing GMT files properly)

  9. [x] should close and change selected on fetch completion

  10. [x] filter for gmt filename

nathandunn commented 4 years ago

To get TPM data, we use this query:

https://xenago.xenahubs.net/download/expr_tpm/TCGA-CHOL_tpm_tab.tsv.gz

this is:

defaultCohortDatasetForGetSet.host + '/download/'+ defaultCohortDatasetForGetSet.dataset + '.gz'

We have 3 options:

  1. call on the client before sending in
  2. call on the server with the provided URL
  3. store all of these on the client
nathandunn commented 4 years ago

Going to opt for (2) for now.

nathandunn commented 4 years ago

So the differential is the exact opposite of this one, but is weird as it doesn't really capture the diff, just the ascending sort of the left to right diff.

image

However, that is probably correct, as we are filtering by least different first and then filtering by left to right afterwards. So I filter 3 out I get the most similar and then filterdd form

image

And the the scores are ascending (-0.4, +0.2, +0.4, etc.) so this is correct.