View source: R/dge_PrepKeggData.R
dge_PrepKeggData | R Documentation |
Helper function to take the output table from running dge_OneFactor(), filter on an adjusted P value cutoff, and format it to something pathview can use. Also can optionally enforce sentence case for mouse gene IDs (useful when you get data from an informatics core that defaults to human-style gene names) and deduplicating by selecting the most significant fold change when duplicates are present.
dge_PrepKeggData( dgeRes, geneNames = .data$Newid, pval = 0.05, enforceSentenceCase = FALSE, deduplicate = FALSE )
dgeRes |
Results table as returned by dge_OneFactor(). |
geneNames |
Tidy Eval selection of the column in dge_OneFactor that contains the gene names. Usually Newid if you converted names to MGI symbols and GeneID if you did not. |
pval |
Numeric giving the P Value cutoff to use. Will keep only rows with adjusted P value less than this. |
enforceSentenceCase |
Boolean; should gene names be forced into sentence case (capital first letter only)? |
deduplicate |
Boolean; should genes be de-duplicated by keeping only the most significant instance of each one? |
A dataframe suitable for plotting KEGG pathways with plotKEGG().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.