Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d.lsi not found error #16

Open
mfansler opened this issue Sep 2, 2024 · 0 comments
Open

d.lsi not found error #16

mfansler opened this issue Sep 2, 2024 · 0 comments

Comments

@mfansler
Copy link

mfansler commented Sep 2, 2024

The AddDist function only works if LSIdist=TRUE, otherwise it throws an object 'd.lsi' not found error. The d.lsi variable should be initialized similar to the others.

redeemR/R/BuidTree.R

Lines 427 to 431 in c9de785

if(LSIdist){
d.lsi<-dist(object@Seurat@reductions$lsi@cell.embeddings[,dim])
message("LSI distances added")
}
object@DistObjects<-new("DistObjects",jaccard=d.Jaccard, Dice=d.Dice,jaccard3W=d.3WJaccard,w_jaccard=d.w_jaccard,w_cosine=d.w_cosine,LSIdist=d.lsi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant