Skip to content

adjustment not applied when metadata used as var in dittoSeq and friends #156

Description

@j-andrews7

This is in the dev version, so Bioc 3.20:

example(importDittoBulk, echo = FALSE)
myRNA

# Basic dittoplot, with jitter behind a vlnplot (looks better with more cells)
dittoPlot(object = myRNA, var = "score2", group.by = "timepoint", adjustment = NULL)

image

Looks identical with z-score adjustment (or relative.to.max).

dittoPlot(object = myRNA, var = "score2", group.by = "timepoint", adjustment = "z-score")

image

Works fine for genes though:

dittoPlot(object = myRNA, var = "gene1", group.by = "timepoint", adjustment = NULL)

image

dittoPlot(object = myRNA, var = "gene1", group.by = "timepoint", adjustment = "z-score")

image

Note that it is still applied to genes when both metadata variable and genes are provided, e.g.:

multi_dittoPlot(myRNA,
                vars = c("score1", "score2", "gene3", "gene4"),
                group.by = "clustering", adjustment = "z-score")

image

Probably won't have any time to chase this one myself for at least a few weeks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions