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

Error in SpaCET.visualize.colocalization(SpaCET_obj) #10

Open
Smilenone opened this issue Mar 20, 2023 · 4 comments
Open

Error in SpaCET.visualize.colocalization(SpaCET_obj) #10

Smilenone opened this issue Mar 20, 2023 · 4 comments

Comments

@Smilenone
Copy link

When I use SpaCET.visualize.colocalization(SpaCET_obj), I met an error:

Error in levels<-(*tmp*, value = as.character(levels)) :
factor level [41] is duplicated

Can you help?

@beibeiru
Copy link
Collaborator

beibeiru commented Mar 20, 2023

Hi,

Can you upload your SpaCET_obj to the following link? I will fix it soon. Thanks.

Best,
Beibei

@Smilenone
Copy link
Author

Smilenone commented Mar 20, 2023 via email

@beibeiru
Copy link
Collaborator

beibeiru commented Mar 21, 2023

Hi, Qunlun,

The error is caused by the duplicated sublineages (i.e., Macro TNFRSF9) of Myeloid in your customized lineageTree.

SpaCET_obj@results$deconvolution$Ref$lineageTree$Myeloid
 [1] "Macro TNFRSF9"   "Macro SPP1"      "DC2 CD1A"        "DC1"             "DC2 PLAC8"       "Myeloid cycling"
 [7] "Mono FCN1"       "Macro CCL5"      "Macro MSR1"      "Macro TNFRSF9"

There are two options to fix it. You can choose either one.

  1. Reinstall the latest version of SpaCET. Then, run SpaCET.visualize.colocalization(SpaCET_obj).
  2. You don't need to reinstall. Just revise your SpaCET_obj by the following code.
SpaCET_obj@results$deconvolution$Ref$lineageTree$Myeloid <- 
unique(SpaCET_obj@results$deconvolution$Ref$lineageTree$Myeloid)

Thanks.

Best,
Beibei

@Smilenone
Copy link
Author

Smilenone commented Mar 22, 2023 via email

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

2 participants