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.
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.