readDataId2diseaseCodeMap: Read a mapping between dataset ID and disease code

Description Usage Arguments Value Author(s) See Also Examples

View source: R/io.R

Description

When assessing enrichment analysis results for phenotype relevance, it is assumed that each analyzed dataset investigates a certain phenotype such as a disease. This function reads a mapping between dataset IDs and assigned disease codes.

Usage

1

Arguments

map.file

Character. The path to the mapping file.

Value

A named character vector where each element of the vector is a disease code and the names are the dataset IDs.

Author(s)

Ludwig Geistlinger <[email protected]>

See Also

evalRelevance for evaluating phenotype relevance of gene set rankings.

Examples

1
2
3
    data.dir <- system.file("extdata", package="GSEABenchmarkeR")
    d2d.file <- file.path(data.dir, "malacards", "GseId2Disease.txt")
    d2d.map <- readDataId2diseaseCodeMap(d2d.file)

waldronlab/GSEABenchmarkeR documentation built on Nov. 16, 2019, 2:49 p.m.