Keeps just the FDR and logFC columns (optionally only significant rows),
preserving row names so genes can be labelled later.
Examples
df <- data.frame(FDR = c(0.01, 0.2), logFC = c(2, -0.3),
row.names = c("A", "B"))
clean_volcano_data(df, sig.only = TRUE)
#> FDR logFC
#> A 0.01 2