| add_Genes | R Documentation |
This function adds a column with a list of genes included in each locus to the ModuleSummary data frame of the hic2community function.
add_Genes(df, speciesObj)
df |
The ModuleSummary data frame obtained by running hic2community function |
speciesObj |
Any Txdb package name corresponding |
Adding gene list to ModuleSummary data frame obtained from hic2community function.
A data.frame identical to the input, with an additional "Genes" column. Each entry in this column lists the gene(s) that overlap with the corresponding genomic region. If multiple genes are present, they are concatenated with commas.
Sora Yoon, PhD
modulefile = system.file('extdata','mouse_naiveCD4T_Vahedi_short.rds',
package = 'HiCocietyExample')
mycom = readRDS(modulefile)
mycom$ModuleSummary = add_Genes(mycom$ModuleSummary,
'TxDb.Mmusculus.UCSC.mm10.knownGene')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.