result
returned by DAVID.
formatDAVIDResult(result, verbose=FALSE)
formatAnnotationReport(result)
formatGeneReport(result)
formatGeneReportFull(result)
formatList(result)
formatGene2Gene(result)
tool=="geneAnnotationReport"
, a list, one component for each element in the ids
arg. Each component has subcomponents
annot
arg of the query. tool=="geneReport"
or tool=="list"
, a character matrix with column names scraped from DAVIDQueryResult, usually:
type
argument of DAVIDQuery()
.tool=="geneReport"
, the first line of the returned output is saved as an attribute before discarding it.For tool=="geneReportFull"
, a list, one component for each element in the ids
arg. Each component has subcomponents
tool=="formatGene2Gene"
, a list with one component for each Functional Group. Each component has components
ids
arg to DAVIDQuery
formatDAVIDResult
switches out to one of formatGeneReport
, formatGeneReportFull
, formatGene2Gene
, or formatList
, depending on the tool
argument of DAVIDQuery()
used to specify what query report to do. The tool
argument is passed as an attribute attached to result
.WARNINGS:
Not all values of tool
have an associated format.
These format utilities are not guaranteed to work correctly for all combinations of inputs into DAVIDQuery()
, or to continue to work correctly if or when the DAVID API changes. If results appear incorrect, one can use the option DAVIDQuery(formatIt=FALSE)
to see the unformatted output, and/or paste DAVIDQuery(details=TRUE)[firstURL]
into a browser.
In the case of formatGene2Gene, the gene
column of the details
component might not always contain a single identifier.