Description Usage Arguments Value See Also Examples
View source: R/TestAssociations.R
A wrapper function to test associations between phenotype and RNA editing levels in single-site analysis or summarized RNA editing levels in region-based analysis.
1 2 3 4 5 6 7 8 9 | TestAssociations(
rnaEdit_df,
pheno_df,
responses_char,
covariates_char = NULL,
respType = c("binary", "continuous", "survival"),
progressBar = "time",
orderByPval = TRUE
)
|
rnaEdit_df |
A data frame with class |
pheno_df |
A data frame with phenotype and covariates, which should
include all the samples in |
responses_char |
A character vector of names of response variables in
|
covariates_char |
A character vector of names of covariate variables in
|
respType |
Type of outcome. Defaults to |
progressBar |
Name of the progress bar to use. There are currently five
types of progress bars: |
orderByPval |
Sort co-edited regions by model p-value or not? Defaults to TRUE. |
A data frame with locations of the genomic regions or sites
(seqnames, start, end, width
), test statistics
(estimate, stdErr
or coef, exp_coef, se_coef
), pValue
and false discovery rate (fdr
).
TransformToGR
, AllCloseByRegions
,
AllCoeditedRegions
, CreateEditingTable
,
SummarizeAllRegions
, AnnotateResults
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | data(rnaedit_df)
genes_gr <- TransformToGR(
genes_char = c("PHACTR4", "CCR5", "METTL7A"),
type = "symbol",
genome = "hg19"
)
exm_regions <- AllCoeditedRegions(
regions_gr = genes_gr,
rnaEditMatrix = rnaedit_df,
output = "GRanges",
method = "spearman"
)
sum_regions <- SummarizeAllRegions(
regions_gr = exm_regions,
rnaEditMatrix = rnaedit_df,
selectMethod = MaxSites
)
exm_pheno <- readRDS(
system.file(
"extdata",
"pheno_df.RDS",
package = 'rnaEditr',
mustWork = TRUE
)
)
TestAssociations(
rnaEdit_df = sum_regions,
pheno_df = exm_pheno,
responses_char = "sample_type",
covariates_char = NULL,
respType = "binary"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.