Skip to contents

This function extracts and reconstructs the path2gene and path2name data frames from an annotation environment created by the build_Anno function. It retrieves and organizes pathway IDs and associated gene IDs, as well as pathway names, into two separate data frames.

Usage

split_Anno(Anno_clusterProfiler_Env)

Arguments

Anno_clusterProfiler_Env

An environment containing annotation data, including PATHID2EXTID and PATHID2NAME, created by the build_Anno function.

Value

A list with two components:

path2gene

A data frame with two columns: pathID and geneID, representing the relationship between pathway IDs and gene IDs.

path2name

A data frame with two columns: pathID and pathName, representing the mapping between pathway IDs and their corresponding names. If PATHID2NAME is not present in the environment, this component will be NULL.