get_geneProfile: Load a gene-profile from a txt file.

get_geneProfileR Documentation

Load a gene-profile from a txt file.

Description

Load a gene-profile from a txt file.

Usage

get_geneProfile(ffile)

Arguments

ffile

a character string or a list of a character pointing to a local file

Details

The txt file contains two columuns separated by a tabulation. The first column is the gene name ( or entrez, ensembl, etc); the second column are the numeric values associated with each gene. The profile do not need to be sorted.

As an example, see the file in /massiveGST/extdata/pre_ranked_list.txt

See the path in the example below.

Value

A named list of numeric values.

Author(s)

Stefano M. Pagnotta

See Also

pre_ranked_list

Examples

fname <- system.file("extdata", package="massiveGST")
fname <- file.path(fname, "pre_ranked_list.txt")
fname
geneProfile <- get_geneProfile(fname)
class(geneProfile)
head(geneProfile)
tail(geneProfile)

massiveGST documentation built on March 31, 2023, 8:59 p.m.