checkDataFile: Checks that the format of the "data file" (which is used as...

Description Usage Arguments Value See Also Examples

View source: R/checkDataFile.R

Description

The function takes as input a data file (see datafileTemplate), and checks whether it is in a format acceptable to be used as input to other functions.

Usage

1

Arguments

x.

A data frame containing: the name of the file to be processed, whether it is single or paried-end data, the sample and replicate ID, and (optional) the name of an output file which results from the runQAandFilter function will be written to.

Value

A data frame which has been modified - the column names and classes have been verified (and corrected if necessary), all white space has been removed, observations relating to files which do not exist in the directory have been removed. The function also prints out any duplicated files - these should be removed by the user to prevent complications downstream.

See Also

datafileTemplate

Examples

1
2
3
4
dirPath <- system.file("extdata", "RNA-Seq-data", package = "RNASeqAnalysis")
setwd(dirPath)
dataF <- read.csv("data3.csv")
checkDataFile(dataF)

nixstix/RNASeqAnalysis documentation built on May 23, 2019, 7:06 p.m.