Code Monkey home page Code Monkey logo

Comments (3)

vertesy avatar vertesy commented on August 19, 2024

Solution probably here, but complicated...
https://rpubs.com/will_townes/sparse-apply

referenced here: https://stackoverflow.com/questions/29901199/apply-for-sparsematrix-in-r

Instead, I use:

if (!requireNamespace("BiocManager", quietly = TRUE))
  install.packages("BiocManager")

BiocManager::install("sparseMatrixStats")

sparseMatrixStats::rowQuantiles()
irequire(sparseMatrixStats)

expr.q90 = iround(sparseMatrixStats::rowQuantiles(x, probs = quantileX) )

from seurat.cbe.issues.

vertesy avatar vertesy commented on August 19, 2024

The calculation seem to be solved, but Calcq90Expression() >>> qhistogram() >>> qqSave() just cant save the output.

### Keeps hanging
>     qhistogram(log2.gene.expr.of.the.90th.quantile)
[1] "/groups/knoblich/users/abel/cbehome/Dropbox/Abel.IMBA/AnalysisD/Abel/SEO2/m1500c21.dSample.Organoids_2000/Highest.Expressed.Genes.umap/log2.gene.expr.of.the.90th.quantile.hist.pdf"

# output just before qqSave


### Saving works in 
xxx = qplot(1:11); ggsave(plot = xxx, filename = "xxx.png")
xxx = qplot(1:11); cowplot::save_plot(plot = xxx, filename = "xxxCOW.png") # used

from seurat.cbe.issues.

vertesy avatar vertesy commented on August 19, 2024

Problem is qHist and vector names: "Vector too many names. Messed up auto-coloring + label.

from seurat.cbe.issues.

Related Issues (10)

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.