Code Monkey home page Code Monkey logo

Comments (2)

YichaoOU avatar YichaoOU commented on June 19, 2024

New to velocity analysis. Thanks for this note! I'm wondering, in terms of the correctness, should we use the raw counts or some normalized values for RunVelocity()?

Thanks,
Yichao

from seurat-wrappers.

ljouneau avatar ljouneau commented on June 19, 2024

Hi !
@krejciadam, if you execute line by line the code contained in RunVelocity, you will see that before calling velocyto.R::gene.relative.velocity.estimates, the function creates a list containing the data (spliced-emat/unspliced-nmat) and the argument to pass to velocyto (deltaT, ...)

names(args)
[1] "emat" "nmat"
[3] "deltaT" "steady.state.cells"
[5] "kCells" "kGenes"
[7] "old.fit" "mult"
[9] "min.nmat.smat.correlation" "min.nmat.emat.correlation"
[11] "min.nmat.emat.slope" "zero.offset"
[13] "deltaT2" "fit.quantile"
[15] "diagonal.quantiles" "show.gene"
[17] "do.par" "cell.dist"
[19] "emat.size" "nmat.size"
[21] "cell.emb" "cell.colors"
[23] "expression.gradient" "residual.gradient"
[25] "n.cores" "verbose"

If you look at the distribution of values of emat and nmat, you will see that they are identical to the distribution of values you have in your loom files

summary(args[["emat"]][,1])
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.000 0.000 0.000 3.929 0.000 529.000
summary(args[["nmat"]][,1])
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.000 0.000 0.000 1.268 0.000 265.000
summary(loom$exon[,1])
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.000 0.000 0.000 2.509 0.000 529.000
summary(loom$intron[,1])
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.0000 0.0000 0.0000 0.8518 0.0000 265.0000

Therefore, it seems pretty clear for me that RunVelocity provides raw counts to velocyto.R

Best regards

from seurat-wrappers.

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.