getAnnoGenes: Subset and extract genes from ChIPseeker annotations

View source: R/AnnoFunctions.R

getAnnoGenesR Documentation

Subset and extract genes from ChIPseeker annotations

Description

Subset and extract genes from ChIPseeker annotations

Usage

getAnnoGenes(anno, feature = "all", unique = T, geneCol = "SYMBOL")

Arguments

anno

ChIPseeker annotation (csAnno) object

feature

string indicating the genomic features to subset e.g. "promoter", "intergenic". Default is "all" and will not subset features.

unique

Boolean indicating if only unique genes should be returned. Default is TRUE.

geneCol

string indicating the column name in anno@anno containing the gene identifiers to be returned. Default is "SYMBOL" for gene symbols.

Value

Character vector of gene IDs.


kevincjnixon/ChIPATAC documentation built on May 25, 2023, 9:33 p.m.