-
Notifications
You must be signed in to change notification settings - Fork 24
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
Access underlying matrix used in Clustered_DotPlot to remove NA/NaN/Inf #178
Comments
Hi, Does the underlying raw, normalize, or scale data have any NAs present? Scaling occurs within gene across identity used. Best, |
I've tried Hence, I'm wondering how one could extract the underlying data used in |
So the weird thing is that I do have an NA check in the function so not sure how this is slipping past this. Also for unsplit ClusteredDotPlots the data actually gets pulled directly from Seurat's DotPlot function. Can you run the following as a test and post the output?
Thanks! |
Also can you confirm what version of scCustomize you have installed? |
Sure thing. I have scCustomize version 2.1.2 and Seurat version 5.0.3. After putting in the suggested code:
this is the only output:
|
Ok working through issues here. did you scale the data yourself or was it scaled in the downloaded object? Does scaling it yourself fix issue? Best, |
Thank you so much for kindly continuing to look into this. The object had raw reads so scaling is coming from me with the Seurat workflow. |
What happens if you run the FetchData code block but specify the scale data
|
I get I also get warning messages that genes can't be found when using |
Ok we'll figure it out lol. Can you post the full code you ran after downloading the object? I'll try and recreate on my end. Best, |
Sure. The things I read in were downloaded from these publicly available sources: I've just put a generic [FILEPATH] here as it would need to change, and I've condensed the code for ease, including a smaller list of features which still yields issues.
And here is the
The |
Ok, so I figured out the issue and will work on scCustomize'd based solution but for now there is easy solution that you can do on your end. The reason for the error is because one of the features you are trying to plot has no expression in the object ("RNASE7"). Because you created the object with Best, |
I see, thank you so much for kindly figuring this out! I can make the Also, is it possible to move the legends up to the top right and make them 1 column, or remove the identity color annotations on the heatmap and in the legend, in |
Thank you so much for creating this package; it's been revolutionary for spicing up the standard Seurat figures! As a novice bioinformatician, I'm afraid I've run into a small issue that I hope I could kindly get some help with.
I'm trying to create a clustered dotplot of about 200 genes' expression across identities after Seurat analysis of a small published scRNAseq dataset.
However, inputting my genes of interest yields the following error, which I believe is due to scaling introducing issues in the matrix used to make the dotplot:
Below are the parameters I'm using in the
Clustered_DotPlot
function:I'm not sure how to access the underlying matrix the
Clustered_DotPlot
function uses so that I could examine and exclude genes causing the issue. I'd be most grateful on what I can do to generate a graph.Also, can you kindly clarify which direction the scaling occurs in, i.e. by row (originally a gene's expression across clusters) or by column (originally identities)? That is, will the
flip
parameter retain the original scaling (just now transposed numbers) as it only flips axes at the end to generate the plot?The text was updated successfully, but these errors were encountered: