Data frame of enrichment results. Must-have columns
are: "Pathway", "Up_regulated" and "Down_regulated"
pin_name_path
Name of the chosen PIN or path/to/PIN.sif. If PIN name,
must be one of c("Biogrid", "GeneMania", "IntAct", "KEGG"). If
path/to/PIN.sif, the file must comply with the PIN specifications. Defaults
to Biogrid.
Value
Creates PNG files visualizing the interactions of genes involved
in the given pathways (annotated in the `result_df`) in the PIN used for enrichment
analysis (specified by `pin_name_path`). The PNG files are saved in the folder
"pathway_visualizations" under the current working directory.
Details
The following steps are performed for the visualization of interactions
of genes involved in the given pathways:
shortest paths between all affected genes are determined (via `igraph`)
the nodes of all shortest pathways are merged
the PIN is subsetted using the merged nodes (genes)
using the PIN subset, the graph showing the interactions is generated
the final graph is visualized using `igraph`, colored by changed status and saved as a PNG file.
See Also
See visualize_pws for the wrapper function
for creating pathway diagrams. See run_pathfindR for the
wrapper function of the pathfindR workflow.