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

Make sress ID less conservative (50 bins to 100)

parent 71be9687
Branches
Tags
No related merge requests found
......@@ -333,8 +333,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