normalizeData | R Documentation |
This function is used to normalize dataset.
normalizeData(
dataset,
direction = c("row", "column"),
returnNorm = TRUE,
ignoreColumn = NULL
)
dataset |
input dataset. As a data frame. |
direction |
|
returnNorm |
logical. Used for |
ignoreColumn |
numeric or |
The function provides two normalization strategies: by row or by column. If by row, the dataset will be processed with equation (see reference): d_i = (f_i - min{f_1, f_2, ...}) / max{f_1, f_2, ...}. f_1, f_2, ..., f_i are the original values of each row.
If by column, the dataset will be processed with: d_i = (f_i - min{f_1, f_2, ...}) / (max{f_1, f_2, ...} - min{f_1, f_2, ...}).
If direction = "column"
and returnNorm = TRUE
,
the function returns a list containing normalized dataset and normalization data.
Otherwise, only return the processed dataset.
Shen J, Zhang J, Luo X, et al. Predicting protein-protein interactions based only on sequences information. Proc. Natl. Acad. Sci. U. S. A. 2007; 104:4337-41
data(demoPositiveSeq)
seqRNA <- demoPositiveSeq$RNA.positive
seqPro <- demoPositiveSeq$Pro.positive
dataset <- featureFreq(seqRNA = seqRNA, seqPro = seqPro, label = "Interact",
featureMode = "conc", computePro = "DeNovo", k.Pro = 3,
k.RNA = 2, normalize = "none", parallel.cores = 2)
processed_1 <- normalizeData(dataset, direction = "row", ignoreColumn = 1)
processed_2 <- normalizeData(dataset[,-1], direction = "column",
returnNorm = TRUE, ignoreColumn = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.