importIPAenrichment | R Documentation |
Import Ingenuity Pathway Analysis 'IPA' 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 Pathway Analysis ('IPA')
enrichment data into a list
of enrichment data.frame
objects for downstream analysis. Each data.frame
represents the results of one Ingenuity IPA section, however
not all sections represent statistical results.
Separate multiple IPA enrichment tables.
Rename colnames to be consistent.
Revert IPA gene aliases to original user input (optional).
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.
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.
A common error occurs when reverting IPA gene symbols
to the original user-supplied identifier, by default
revert_ipa_xref=TRUE
.
For errors during this step, consider revert_ipa_xref=FALSE
which will retain the gene symbol as recognized by IPA.
The downside of this approach is that it may be more difficult
to equate to the input identifier.
In that case look at the "Analysis Ready Molecules" data.frame
which should contain the
user-provided values as "ID"; the IPA recognized symbol as "Name",
and optionally a column "Symbol" which is edited by multienrichjam.
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.