bimberlabinternal / CellMembrane

An R package with wrappers and pipelines for single cell RNA-seq analysis
10 stars 3 forks source link

PseudobulkingBarPlot may want to check if there are any statistically significant DEGs #251

Open daramirez opened 3 months ago

daramirez commented 3 months ago

PseudobulkingBarPlot may want to check if there are any statistically significant DEGs before attempting to make the bar plots. When the "DE_results" list has no genes in neither of its elements that would pass the logFC and FDR thresholds, the function currently errors with a cryptic message, which is because the changes on the data frame in line 785 yield a weird output when all genes are "noDEG" in the "regulation" column.

GWMcElfresh commented 3 months ago

Hi Daniel, thanks, this makes sense. Can you post the error message you're referring to?

daramirez commented 3 months ago

Yes, here is a snapshot Screenshot 2024-05-28 at 2 06 04 PM

GWMcElfresh commented 3 months ago

Hi @daramirez, does #253 fix this well enough?