importIPAenrichment | R Documentation |
Import Ingenuity IPA enrichment results
importIPAenrichment(
ipaFile,
headerGrep =
"(^|\t)((expr.|-log.|)p-value|Pvalue|Score($|\t)|Symbol($|\t)|Ratio($|\t)|Consistency.Score|Master.Regulator($|\t))",
ipaNameGrep = c("Pathway", "Regulator$", "Regulators", "Regulator", "Disease",
"Toxicity", "Category", "Categories", "Function", "Symbol$", "^ID$",
"My.(Lists|Pathways)"),
geneGrep = c("Molecules in Network", "Target molecules", "Molecules", "Symbol"),
geneCurateFrom = c("[ ]*[(](complex|includes others)[)][ ]*", "^[, ]+|[, ]+$"),
geneCurateTo = c("", ""),
method = 1,
sheet = 1,
sep = "\t",
xlsxMultiSheet = TRUE,
useXlsxSheetNames = FALSE,
remove_blank_colnames = TRUE,
convert_ipa_slash = TRUE,
ipa_slash_sep = ":",
revert_ipa_xref = TRUE,
verbose = FALSE,
...
)
ipaFile |
one of the four input types described above:
a character vector of text file names; a character vector of
Excel |
headerGrep |
regular expression pattern used to recognize header columns found in Ingenuity IPA enrichment data. |
ipaNameGrep |
vector of regular expression patterns used to recognize the name of the enriched entity, for example the biological pathway, or network, or disease category, etc. |
geneGrep |
regular expression pattern used to recognize the column containing genes, or the molecules tested for enrichment which were found in the enriched entity. |
geneCurateFrom , geneCurateTo |
vector of patterns and replacements, respectively, used to curate values in the gene column. These replacement rules are used to ensure that genes are delimited consistently, with no leading or trailing delimiters. |
method |
integer value indicating the method used to
import data from a text file, where: |
sheet |
integer value used only when |
sep |
character string used when |
xlsxMultiSheet |
logical indicating whether input
Excel |
useXlsxSheetNames |
logicl indicating whether to use the
Excel worksheet name for each imported enrichment table,
when importing from |
remove_blank_colnames |
|
convert_ipa_slash |
|
ipa_slash_sep |
|
revert_ipa_xref |
|
verbose |
logical indicating whether to print verbose output. |
... |
additional arguments are ignored. |
This function parses Ingenuity IPA enrichment data into
a form usable as a list of enrichment data.frame
objects for downstream analysis. Each data.frame
will represent the results of one Ingenuity IPA
enrichment test.
The input data can be one of four forms:
ipaFile
can be a text .txt
file,
where the text file contains all IPA enrichment data in
tall format. This format is most common.
ipaFile
can be an Excel .xlsx
file,
which contains all IPA enrichment data in
one tall worksheet tab.
ipaFile
can be an Excel .xlsx
file,
where each type of IPA enrichment appears on a separate
Excel worksheet tab.
ipaFile
can be a list of data.frame
objects.
This option is intended when the IPA data has already
been imported into R as separate data.frame
objects.
The basic motivation for this function is two-fold:
Separate multiple IPA enrichment tables.
Rename colnames to be consistent.
When using "Export All"
from IPA, the default text format
includes multiple enrichment tables concatenated together in one
file. Each enrichment table contains its own unique column
headers, with descriptive text in the line preceding the
column headers. This function is intended to separate the
enrichment tables into a list of data.frame
objects, and
retain the descriptive text as names of the list.
list of data.frame
objects, where each data.frame
contains enrichment data for one of the Ingenuity IPA
enrichment tests.
Other jam import functions:
curateIPAcolnames()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.