Skip to content

pretty_MA_plot doesn't label genes if convert_ids=FALSE #13

@luisa-cusick

Description

@luisa-cusick
  1. Need to cast param results to data.frame (if convert_ids=TRUE this happens in the id_convert function). For a DESeq results object, this just strips all classes preceding "data.frame" so that ggplot recognizes it as a data frame
  2. If name_col is the default ('row.names'), geom_lable_repel layers fail in label assignment because name_col needs to be a column name:
    geom_label_repel(data = subset(results, name_col %in% genes & log2FoldChange > 0), aes(label = .data[[name_col]], size = factor(name_col %in% highlight_genes)), min.segment.length = 0.1, max.overlaps = max_overlaps, fill = alpha(c("white"), label_alpha), ylim = c(1, NA))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions