Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/StatisticsForPREDAFromfile.R
Function to create a StatisticsForPREDA objet from a txt file
1 2 3 | StatisticsForPREDAFromfile(file, ids_column = NULL,
statistic_columns = NULL, analysesNames = NULL, testedTail =
c("upper", "lower", "both"), ...)
|
file |
Path to the input txt file containing statistics on genomics data |
ids_column |
Specify the column from the input txt file with gene (or other genomic features) ids. Can be specified using column index (numeric) or column name (character). |
statistic_columns |
Specify the column (or columns) from the input txt file with gsta.enomic data statistics that will be included in the statisticsForPREDA object. Can be specified using column index (numeric) or column name (character). If NULL (default), all columns excluding ids_column will be considered as input statistics |
analysesNames |
Names (labels) to be associated to each input statistic. If NULL the column names for statistics_columns will be used. |
testedTail |
Specify what tail of the distribution will be tested for significantly extreme values in PREDA analysis. Possible values are "both", "upper" or "lower". |
... |
any other parameter for read.table function that could be useful for parsing the input file, such as "sep", "quote", "header", "na.strings" and other parameters. |
A txt file is parsed and a statisticsForPREDA object is built using contained data.
A statisticsForPREDA object
Francesco Ferrari
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
require(PREDAsampledata)
CNdataPath <- system.file("sampledata", "CopyNumber", package =
"PREDAsampledata")
CNdataFile <- file.path(CNdataPath , "CNAG_data_PREDA.txt")
CNannotationFile <- file.path(CNdataPath , "SNPAnnot100k.csv")
CNStatisticsForPREDA<-StatisticsForPREDAFromfile(file=CNdataFile,
ids_column="AffymetrixSNPsID", testedTail="both", sep="\t",
header=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.