Coder Social home page Coder Social logo

Comments (3)

enblacar avatar enblacar commented on September 27, 2024 1

Hi @laleaton,

I performed a quick implementation of the Z-scoring on a gene-basis in do_DotPlot(). This allows to set the distribution of the Avg. Expression of a given gene across the groups so that the mean is 0 and standard deviation is 1. This allows you to quickly check which group/s have the highest avg. expression values for a given gene, but you should then avoid performing gene-wise comparisons.

This said:

  • Use scale.data = TRUE to access this functionality. It will not work with slot = "scale.data".
  • You would want also to play around with max.cutoff and min.cutoff to set the color scale right.
  • This behaviour is inherently different from the one provided in Seurat. Please be aware of that.

You can access this under the latest commit. Please be aware that you are again downloading the most recent and potentially buggy version of the pacakge!

devtools::install_github("enblacar/SCpubr", ref = "af2828dbfce7a11562a0f6d3fc447122fbf66670")

Hope this helps!
Enrique

from scpubr.

enblacar avatar enblacar commented on September 27, 2024

Hi @laleaton,

Thanks for using my package!

Please keep in mind that you downloaded theHEAD commit of the R package. This means that you are just currently using the R package as I am right now as the developer, it all its beauty and "bugginess" ahhahaha If you ever consider downloading the "development" versions of the package, always refer to the official Releases, which I incorporate with every CRAN update.

This said, for the next CRAN version I have refactored the SCpubr::do_DotPlot() function entirely, removing the dependency with Seurat::DotPlot(). This means I am no longer using the native function from Seurat as the basis of the plot, but rather generating my own version of the dot plot. This also means that I am no longer using the scale parameter, as this was using the Seurat's scaling implementation. I have on my to-do list to allow for z-scoring of the values, if desired, but this is yet to be implemented. It will definitely roll out on the next CRAN update, though. Yet, this might not end up being exactly the same as with Seurat.

I can give you a heads up when I implement it, if you want! For the time being, please revert to the CRAN version if you want to still use the scale parameter.

I hope this was helpful!
Enrique

from scpubr.

laleaton avatar laleaton commented on September 27, 2024

Thank you Enrique! Yes, please do let me know when you implement scaling. I really appreciate your prompt and thorough response!
Cheers,
Laura Ann

from scpubr.

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.