Closed pdimitron closed 3 months ago
Hi @pdimitron
This is indeed not so elegant to do for the moment. You can try this workaround as a (temporary) solution:
```{r}
ligands_oi = c("IFNG","IL15")
prioritized_tbl_ligands_oi = get_top_n_lr_pairs(multinichenet_output$prioritization_tables, 10000, groups_oi = group_oi, receivers_oi = receiver_oi) %>% filter(ligand %in% ligands_oi) # ligands should still be in the output tables of course
combined_plot = make_ligand_activity_target_plot(group_oi, receiver_oi, prioritized_tbl_ligands_oi, multinichenet_output$prioritization_tables, multinichenet_output$ligand_activities_targets_DEgenes, contrast_tbl, multinichenet_output$grouping_tbl, multinichenet_output$celltype_info, ligand_target_matrix, plot_legend = FALSE)
combined_plot
This will only for ligands that are in the output tables though.
Thanks so much, I'll give it a try!
This code is now demonstrated in the comprehensive tutorial vignette of multinichenetr 2.0.0
Hello and Happy New Year!
Once again, thanks for such a great tool. I wanted to ask a quick question because I couldn't find it in the couple vignettes I was working through. I was wondering if you there is a way to generate ligand-activity plots for specific ligands of interest. I tried various ways of subsetting the tables but keep running into the following error:
Just thought I'd ask if I might be over thinking this before I provide a reproducible example.