View source: R/testFileFormat.R
testFileFormat | R Documentation |
The testFileFormat function will test the format of the input data matrix and annotation data and return the standardized data matrix and sample annotation data.
testFileFormat(inputMat=NULL,sampleAnn=NULL,collapse_mode="maxSD")
inputMat |
|
sampleAnn |
|
collapse_mode |
The method to collapse duplicate ids. "mean", "median", "maxSD", "maxIQR", "max" and "min" represent the mean, median, max standard deviation, max interquartile range, maximum and minimum of values for ids in each sample. The default is "maxSD". |
If there is no format error, the function will return the standardized data matrix and sample annotation data. Otherwise, the function will output the detailed position of the errors.
If the users set inputMat as "", the testFileFormat function only test format of sample annotation data. If the users set sampleAnn as "", the testFileFormat function only test format of data matrix.
Jing Wang
inputMatDir <- system.file("extdata","exampleExpressionData.cct",package="NetSAM")
sampleAnnDir <- system.file("extdata","sampleAnnotation.tsi",package="NetSAM")
formatedData <- testFileFormat(inputMat=inputMatDir,sampleAnn=sampleAnnDir,collapse_mode="maxSD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.