jn-goe / gruffi

Granular Functional Filtering (Gruffi) to isolate stressed cells
GNU General Public License v3.0
11 stars 6 forks source link

CalculateAndPlotGoTermScores() should save the name of the GO term #22

Open vertesy opened 1 month ago

vertesy commented 1 month ago
  1. CalculateAndPlotGoTermScores() should save a mapping between the name and the numericID of the GO term.
  2. The goal is that you can always look up the name and display it on plots
  3. The Metadata column with the score currently on the save the numeric ID.

Solution ideas

# GO:0045202 synapse
combined.obj <- gruffi::CalculateAndPlotGoTermScores(GO = "GO:0045202", desc = 'synapse', obj =  combined.obj)

The function itself makes use of the name, but unfortunately, it is impossible to reproduce this plot because the GO's name is not stored:

FeaturePlot Score GO 0045202 synapse