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 | generateRepMatNoFilter(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 not omit values or indexes of lines/wells with spot type -1. If you want to omit those, use generateReplicatematrix
.
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 <- generateRepMatNoFilter(dataset, 2, "Index", "SigIntensity", "GeneName")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.