Giter VIP home page Giter VIP logo

Comments (7)

samuel-marsh avatar samuel-marsh commented on June 15, 2024

Hi @saeedfc,

Thanks for kind words and thanks for posting this issue! Yup, simple mistake on my part when writing the function leaving only the gene check in. I've resolved the issue with modifying the code to resemble that of Stacked_VlnPlot with checks on both features and meta data. This should be fixed in develop branch v0.7.0.9920. If you still run into this again after update let me know and I'll reopen the issue.

Also as you probably know sometimes need to be careful in terms of DotPlots off of metadata if keeping default of scale = TRUE because scaling the data may or may not be the most appropriate visualization/comparison for some types of data stored there.

Best,
Sam

from sccustomize.

mmandanas avatar mmandanas commented on June 15, 2024

Do we still need to download the development branch for this feature? Or is it in the main package now?

from sccustomize.

samuel-marsh avatar samuel-marsh commented on June 15, 2024

@mmandanas in the main package. just keep in mind warning about scaling data off of meta data variables

from sccustomize.

mmandanas avatar mmandanas commented on June 15, 2024

Thank you so much for your quick response!

I currently have version 2.1.2 installed, but when I tried to use Clustered_DotPlot to show module scores that I've calculated using Seurat's AddModuleScore function, but when I try to input the name of the module scores into Clustered_DotPlot, I get an error from Feature_Present() saying that my feature isn't present in the RNA assay. Was this fix specific to DotPlot_scCustom?

from sccustomize.

samuel-marsh avatar samuel-marsh commented on June 15, 2024

I'm able to plot meta.data variables without issue from Clustered_DotPlot.

What is the result if you run:

"MODULE_SCORE_NAME" %in% colnames([email protected])

from sccustomize.

mmandanas avatar mmandanas commented on June 15, 2024

I think I realized the issue: I was trying to only plot that single module score, but I think I need to plot multiple features at a time for it to work, as I can get the plot to show up if I add some genes to the list of features.

My module score name is in the colnames of the meta.data, but when I try to use the split.by parameter, I get the following:

Clustered_DotPlot(seurat_object = Wang_granular_clean,
features = c('HALLMARK_MTORC1_SIGNALING_RNA1', 'CD8A','APOE'),
split.by = 'Condition')

Warning: The following 1 features were not found in the RNA assay: HALLMARK_MTORC1_SIGNALING_RNA1
Error: number of cluster centres must lie between 1 and nrow(x)
In addition: Warning message:
The following features were omitted as they were not found:
ℹ HALLMARK_MTORC1_SIGNALING_RNA1

from sccustomize.

samuel-marsh avatar samuel-marsh commented on June 15, 2024

Ok yes so the error is two fold. First, yes clustered dot plot needs multiple features because it performs clustering on the features.

Second is issue with how I wrote the split.by version of the plotting. Let me look into it in terms of solution. I will open new issue and tag you there

from sccustomize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.