Description Usage Arguments Details Value Examples
View source: R/anota2seqDataSetFromMatrix.R
Functions used to create an Anota2seqDataSet S4 object from user
input. This object will be used to collect data and results from all steps of
the anota2seq workflow and is initiated using one of the 2 available
constructors: anota2seqDataSetFromMatrix
(use when the input data is
provided as a set of custom vectors and matrices) or
anota2seqDataSetFromSE
(use when the input is of the class
SummarizedExperiment).
1 2 3 4 5 6 7 8 9 | anota2seqDataSetFromMatrix(dataP, dataT, phenoVec, batchVec = NULL, dataType,
normalize = FALSE, transformation = "TMM-log2",
filterZeroGenes = ifelse(dataType == "RNAseq" & normalize == TRUE, TRUE, FALSE),
varCutOff = NULL)
anota2seqDataSetFromSE(se, assayNum = 1, dataType, normalize = FALSE,
transformation = "TMM-log2",
filterZeroGenes = ifelse(dataType == "RNAseq" & normalize == TRUE, TRUE, FALSE),
varCutOff = NULL)
|
dataP |
This parameter is used if selecting to initiate the
Anota2seqDataSet using custom vectors and matrices, and the
|
dataT |
This parameter is used if selecting to initiate the
Anota2seqDataSet using custom vectors and matrices, and the
|
phenoVec |
This parameter is used if selecting to initiate the
Anota2seqDataSet using custom vectors and matrices, and the
|
batchVec |
This parameter is used if selecting to initiate the
Anota2seqDataSet using custom vectors and matrices, and the
|
dataType |
This parameter is used when selecting to initiate the
Anota2seqDataSet using the |
normalize |
This parameter is used when selecting to initiate the
Anota2seqDataSet using the |
transformation |
This parameter is used when selecting to initiate
the Anota2seqDataSet using the |
filterZeroGenes |
This parameter is used when selecting to initiate
the Anota2seqDataSet using the |
varCutOff |
This parameter is a numeric value (or NULL) used when
selecting to initiate the Anota2seqDataSet using the
|
se |
This parameter is used if selecting to initiate the
Anota2seqDataSet using a SummarizedExperiment object with the
|
assayNum |
This parameter is used if selecting to initiate the
Anota2seqDataSet using a SummarizedExperiment object and the |
These functions initiate an Anota2seqDataSet and provide possibilities to filter, transform and normalize the data. The input can be either of the SummarizedExperiment class including the annotation as outlined above or as a set of matrices of vectors that together contain the same information.
If raw RNAseq data (or other count data) is provided, gene filtering for genes with 0 counts in at least one sample (optional) can be performed followed by normalization and transformation. Transformation algorithms that are available are rlog (DESeq2 package) and TMM-log2 (TMM normalization using the edgeR package followed by log2 counts per million computation using the voom function of the limma package). The relative performance of these methods have been described elsewhere.
A rare error can occur when data within translated mRNA (polysome-associated mRNA or RPF) or total mRNA data from any gene and any treatment has no variance. Users can use the varCutOff parameter to perform filtering based on variance per mRNA source (i.e. polysome- associated mRNA (RPFs) or total mRNA) and treatment. This will eliminate this error which is due to that statistics cannot be calculated in the absence of variance.
an Anota2seqDataSet containing data and covariates ready for
analysis using anota2seqAnalyze
or
anota2seqRun
.
1 2 3 4 5 6 | data(anota2seq_data)
Anota2seqDataSet <- anota2seqDataSetFromMatrix(dataP = anota2seq_data_P[1:500,],
dataT = anota2seq_data_T[1:500,],
phenoVec = anota2seq_pheno_vec,
dataType = "RNAseq",
normalize = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.