paperKB
coga / coga-kb
Help
Sign in

Chunk #22 — Results — Tidy interface for data operation

Source
clusterProfiler 4.0: A universal enrichment tool for interpreting omics data.
Embedded
yes

Text

The following example uses the GSEA enrichment result generated in the previous session. The result was sorted by absolute values of NESs using the arrange verb. NES is an indicator to interpret the degree of enrichment. A positive NES indicates that members of the gene set tend to appear at the top of the rank (pathway activation), and a negative NES indicates the opposite circumstance (pathway suppression). We used the group_by verb to group the result based on the sign of NES, and the slice verb was used to extract the first five enriched pathways for each group (i.e., five activated pathways that have the largest NES values and five suppressed pathways that have the smallest NES values). These verbs return the same object type as their input and do not affect downstream analysis and visualization.ewp2 <- arrange(ewp, desc(abs(NES))) %>%group_by(sign(NES)) %>%slice(1:5)