saeyslab / nichenetr

NicheNet: predict active ligand-target links between interacting cells
469 stars 117 forks source link

ligand should be in ligand_target_matrix #213

Closed johjoon closed 1 year ago

johjoon commented 1 year ago

Hello, Following the tutorial or use my own data, I came across a same erro message:

ligand_activities = predict_ligand_activities(geneset = geneset_oi, background_expressed_genes = background_expressed_genes, ligand_target_matrix = ligand_target_matrix, potential_ligands = potential_ligands)

And the erro message is :

Error in evaluate_target_prediction(setting, ligand_target_matrix, ligands_position) : ligand should be in ligand_target_matrix

I failed to solve this problem and have no idea about this.

Thanks

csangara commented 1 year ago

Hi,

This means that there is no intersection between potential_ligands and colnames(ligand_target_matrix). Can you check whether your potential_ligands vector is empty, and whether you are using the correct ligand target matrix for your data (e.g., mouse model for mouse data)?