Extracts genes associated with specific pathways from an annotation collection.
Arguments
- annotation_collection
A data frame containing pathway annotations. It should have at least two columns: `pathway` and a gene annotation column (e.g., `gene_symbol` or `gene_id`).
- pathway_names
A character vector specifying the names of pathways for which to retrieve associated genes.
- annotation
A character string specifying the column in `annotation_collection` to use for gene annotations. Default is `"gene_symbol"`.