Chunk #19 — Results — Data frame interface for accessing enriched results
- Source
- clusterProfiler 4.0: A universal enrichment tool for interpreting omics data.
- Embedded
- yes
Text
The [ and $ operators for subsetting are also supported. We redefined the [[ operator to help users access which genes are annotated by a selected ontology or pathway. For GSEA output, the [[ operator will return core enriched genes (i.e., genes in the leading edge) of the selected gene set.## subset result using ‘[’ and ‘$’ego[1:2, c("ID", "Description", "pvalue", "p.adjust")]## ID Description pvalue p.adjust## GO:0140014 GO:0140014 mitotic nuclear division 2.171838e-26 6.700119e-23## GO:0000280 GO:0000280 nuclear division 1.099719e-22 1.696316e-19head(ego$Description)## [1] "mitotic nuclear division"## [2] "nuclear division"## [3] "organelle fission"## [4] "mitotic sister chromatid segregation"## [5] "sister chromatid segregation"## [6] "chromosome segregation"## genes annotated by specific termego[["GO:0140014"]]## [1] "CDCA8" "CDC20" "KIF23" "CENPE" "MYBL2" "CCNB2" "NDC80" "NCAPH"## [9] "DLGAP5" "UBE2C" "NUSAP1" "TPX2" "TACC3" "NEK2" "UBE2S" "CDK1"## [17] "MAD2L1" "KIF18A" "CDT1" "BIRC5" "KIF11" "TTK" "NCAPG" "AURKB"## [25] "CHEK1" "TRIP13" "PRC1" "KIFC1" "KIF18B" "AURKA" "CCNB1" "KIF4A"## [33] "PTTG1" "BMP4"