Learn R Programming

WebGestaltR (version 0.1.1)

formatCheck: Check the format of the uploaded gene list or ranked gene list file or object.

Description

The formatCheck function can check the format of the gene list or ranked gene list file or object uploaded to the WebGestaltR for the analysis.

Usage

formatCheck(dataType="list", inputGeneFile=NULL,inputGene=NULL)

Arguments

dataType

Currently, the formatCheck function supports 2 data type: 1. "list" means the uploaded file or data is a gene list 2. "rnk" means the uploaded file or data is a ranked gene list with two columns (genes and scores).

inputGeneFile

The uploaded data file. If the dataType is "list", the file extension should be "txt" and have only one column. If the dataType is "rnk", the file extension should be "rnk" and have two columns (genes and scores).

inputGene

The uploaded R object. If the dataType is "list", the R object should be a vector. If the dataType is "rnk", the R object should be a data.frame and have two columns (genes and scores).

Value

The formatCheck function will return error if the data format is incorrect. Otherwise, it will return the processed data for the analysis.

Examples

Run this code
# NOT RUN {
geneFile<-system.file("extdata","interestingGenes.txt",package="WebGestaltR")
interestGene<-formatCheck(dataType="list",inputGeneFile=geneFile,inputGene=NULL)
# }

Run the code above in your browser using DataLab