Description Usage Arguments Value See Also Examples
Retrieve from an Anota2seqDataSet the covariate(s) to be used in the APV model i.e. the annotation of the samples according to their treatments and batch (when provided).
1 2 3 4 | anota2seqGetCovariates(object)
## S4 method for signature 'Anota2seqDataSet'
anota2seqGetCovariates(object)
|
object |
An Anota2seqDataSet. |
A list of 2 elements named "phenoVec" and "batchVec" containing the corresponding covariates to be used for the analysis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | data(anota2seq_data)
# Initialize Anota2seqDataSet
Anota2seqDataSet <- anota2seqDataSetFromMatrix(
dataP = anota2seq_data_P[1:100,],
dataT = anota2seq_data_T[1:100,],
phenoVec = anota2seq_pheno_vec,
batchVec = c(1, 2, 3, 4, 1, 2, 3, 4),
dataType = "RNAseq",
normalize = TRUE)
# Run analysis of differential translation
Anota2seqDataSet <- anota2seqAnalyze(Anota2seqDataSet,
analysis = "translation")
covariates <- anota2seqGetCovariates(Anota2seqDataSet)
covariates
# $phenoVec
# [1] "ctrl" "ctrl" "ctrl" "ctrl" "treatment" "treatment"
# [7] "treatment" "treatment"
#
# $batchVec
# [1] "1" "2" "3" "4" "1" "2" "3" "4"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.