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 Idents<-: ! 'value' must be a factor or vector #284

Open
XIANZHE-LI opened this issue Jul 13, 2024 · 5 comments
Open

Error in Idents<-: ! 'value' must be a factor or vector #284

XIANZHE-LI opened this issue Jul 13, 2024 · 5 comments

Comments

@XIANZHE-LI
Copy link

nichenet_output_agnostic <- nichenet_seuratobj_aggregate(

  • seurat_obj = DCM,
  • sender = "undefined",
  • receiver = "CM",
  • condition_colname = "group",
  • condition_oi = "DCM",
  • condition_reference = "healthy donor",
  • expression_pct = 0.05,
  • ligand_target_matrix = ligand_target_matrix,
  • lr_network = lr_network,
  • weighted_networks = weighted_networks,
  • top_n_ligands = 80,
  • top_n_targets = 500,
  • lfc_cutoff = 0.1,
  • assay_oi = "RNA"
  • )
    [1] "Read in and process NicheNet's networks"
    [1] "Define expressed ligands and receptors in receiver and sender cells"
    [1] "Perform DE analysis in receiver cell"
    Error in Idents<-:
    ! 'value' must be a factor or vector

seurate V5

@ShiweiHePH
Copy link

I also found this problem(seurate V5)

[1] "Read in and process NicheNet's networks"
[1] "Define expressed ligands and receptors in receiver and sender cells"
[1] "Perform DE analysis in receiver cell"
Error in Idents<-:
! 'value' must be a factor or vector

@csangara
Copy link
Member

csangara commented Aug 2, 2024

Hi,

Can both of you check that your NicheNet version is 2.1.5? This issue should have been fixed in #198, but it's possible that I overlooked some lines of code.

@XIANZHE-LI
Copy link
Author

Hi,

Can both of you check that your NicheNet version is 2.1.5? This issue should have been fixed in #198, but it's possible that I overlooked some lines of code.

image

@Shubhra1994
Copy link

same issue here!

@csangara
Copy link
Member

I still can't figure out what's going wrong here. If anyone could provide me with the following, it will be very helpful.

  • Their sessionInfo()
  • The version of their Seurat object: seuratObj@version
  • The exact line the code malfunctions when following the step-by-step vignette

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

4 participants