Skip to content
Snippets Groups Projects
Commit 9734322b authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Change stress score binning to 100

parent 1f915e04
Branches
Tags
No related merge requests found
......@@ -350,8 +350,8 @@ scStress <- function(sc10x,stg="go",res.use=1,pc.use=10){
#Find first turning point on a KDE of Stress1
postscript("./analysis/pca/stress/Histo_Stress.eps")
histo <- hist(GetCellEmbeddings(object=sc10x,reduction.type="Stress",dims.use=1),breaks=50,prob=TRUE,plot=TRUE)
d1 <- density(GetCellEmbeddings(object=sc10x,reduction.type="Stress",dims.use=1),n=50)
histo <- hist(GetCellEmbeddings(object=sc10x,reduction.type="Stress",dims.use=1),breaks=100,prob=TRUE,plot=TRUE)
d1 <- density(GetCellEmbeddings(object=sc10x,reduction.type="Stress",dims.use=1),n=100)
lines(d1,col="blue")
ts_1 <- ts(d1$y)
tp1 <- turnpoints(ts_1)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment