AlexsLemonade / scpca-downstream-analyses

This repository is intended to store our pipeline for marker genes analysis.
0 stars 0 forks source link

Dynamically set point sizes in GOI plots #266

Open cbethell opened 1 year ago

cbethell commented 1 year ago

Please provide some background on the proposed additions or changes.

In tackling the refactor of the GOI template notebook, we needed to adjust the point sizes in the sina, UMAP and PCA plots. This means that the current point sizes work specifically well for example data and GOI list that we are using for development.

We likely will want to further refactor the plotting functions to dynamically choose a point size based on the length of the GOI list provided (perhaps).

What are the changes that you are proposing?

Modify the plotting functions in utils/provided-goi-analysis-functions.R to account for some dynamic setting of the geom point sizes for each of the plots: sina, UMAP, and PCA.

Please describe the proposed solution.

We may want to use the length of the provided GOI list to dynamically calculate and set the point sizes. May have to play around with the logic/calculation here a bit.

allyhawkins commented 1 year ago

I think the point size might be dependent on the number of cells in the dataset since each point in those plots will represent a cell.

cbethell commented 1 year ago

I think the point size might be dependent on the number of cells in the dataset since each point in those plots will represent a cell.

Good point!! 🚀