Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation for visualization #62

Open
cvanderaa opened this issue Apr 23, 2024 · 0 comments
Open

Improve documentation for visualization #62

cvanderaa opened this issue Apr 23, 2024 · 0 comments
Assignees

Comments

@cvanderaa
Copy link
Member

We should explicitly document in the vignette how to make additional useful visualisation. Current ideas:

Intensity plot

Show peptide/protein intensities vs other covariates. Eg (from scplainer article):

image

Code to make this plot:

i <- "APNVVVTR"
df <- data.frame(logIntensity = scpModelInput(sce)[i, ], colData(sce))
ggplot(df) +
        aes(x = Set, y = logIntensity, colour = SampleType) +
        ...ggplot beauty...

Dynamic range plot

Show the distribution of peptide/protein baseline. Eg (from Guise et al. 2024, Cell Rep.):

image

Code to make this plot (without cell type colouring):

x <- scpModelIntercept(sce)
df <- data.frame(baseline = x, rank = order(x))
ggplot(df) +
        aes(x = rank, y = baseline) +
        ...ggplot beauty...

If we want to include cell types colouring (or another variable), this will become a little more intricate as we need to extract the population effects form the effect matrix of interest.

@cvanderaa cvanderaa self-assigned this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant