Description Usage Arguments Details Value See Also Examples
View source: R/general_functions.R
Generates a matrix out of a dataset, each row corresponding to an siRNA/gene ID, each column to a channel value or its index in the dataset.
1 | generateReplicateMat(data, minNbReps, IndexOrInt, col4val, col4anno)
|
data |
an R data frame generated with |
minNbReps |
set to 2 if you want to exclude replicates occurring only once in the dataset, otherwise 1. |
IndexOrInt |
a character string - either |
col4val |
a character string specifying the name of the dataset column to be used for the values of the output matrix (if |
col4anno |
a character string specifying the name of the dataset column to be used for the output matrix' rows, for example |
The function will omit values or indexes of lines/wells whose value in the column specified by colname4val
is set to NA, (which is the case if the spot type is set to -1). If you do not want to omit those, use generateRepMatNoFilter
.
A matrix with each row corresponding to an siRNA/gene ID (as reflected in rownames), each column to a channel value or its index in the dataset. Missing values (in case of different number of replicates occuring for different siRNAs/genes) are set to NA.
1 2 3 | data(exampleDataset, package="RNAither")
replicatematrix <- generateReplicateMat(dataset, 2, "Index", "SigIntensity", "GeneName")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.