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

No points in plotGenes #24

Open
dosshra opened this issue Jul 9, 2021 · 4 comments
Open

No points in plotGenes #24

dosshra opened this issue Jul 9, 2021 · 4 comments

Comments

@dosshra
Copy link

dosshra commented Jul 9, 2021

Hello,
I an running this script:
library(ggplot2) lsgplotsGenes <- plotGenes( vecGeneIDs = NULL, scaNTopIDs = 200, objectImpulseDE2 = objectImpulseDE2, boolMultiplePlotsPerPage=T, boolCaseCtrl = T, dirOut = '/data//home//yr19/', strFileName = 'trend_plot_3.pdf', vecRefPval = NULL, strNameRefMethod = NULL)

In this environment:
R version 3.6.3 (2020-02-29)
Platform: x86_64-conda_cos6-linux-gnu (64-bit)
Running under: CentOS release 6.7 (Final)
ImpulseDE2_1.10.0

I am getting the plots with only the trend lines but without the points of the individual samples.
Thank you
Hanan.

@davidsebfischer
Copy link
Contributor

Hi Hanan, this is probably due to some plot simplification = visual acessibility default, if you want to change that you might need to engineer the plotting function plotGenes a bit, your plot may be overly crowded though.

@dosshra
Copy link
Author

dosshra commented Jul 9, 2021

Thank you David for the response. I have 42 samples, I do no think it will be overly crowded. Can you give a hint how to engineer plotGenes?
Thank you

@davidsebfischer
Copy link
Contributor

Quickest fix would likely be to just superimpose points with ggplot2 onto the figure, you can check out here what these expression values would be

if (boolSimplePlot) {

@dosshra
Copy link
Author

dosshra commented Jul 9, 2021

I found the problem. My objectImpulseDE$dfAnnotation did not have the sample names as row names. Therefore, the code in plotGenes:
dfRaw <- data.frame( normCounts = get_matCountDataProc( obj=objectImpulseDE2)[id,vecSamples]/ get_vecSizeFactors(objectImpulseDE2)[vecSamples], time = dfAnnot[vecSamples, ]$Time, Batch = dfAnnot[ vecSamples, get_vecConfounders(obj=objectImpulseDE2)[1]], Condition = dfAnnot[vecSamples, ]$Condition)
resulted in NAs in the condition and time columns of dfRaw and geom_point was not plotted.

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

2 participants