Description Usage Arguments Examples
The main application of this function is to plot the frequency of changes.
1 2 3 4 5 6 7 8 9 | plotFreqStat(aCGH.obj, resT = NULL, pheno = rep(1, ncol(aCGH.obj)),
chrominfo = human.chrom.info.Jul03,
X = TRUE, Y = FALSE,
rsp.uniq = unique(pheno),
all = length(rsp.uniq) == 1 && is.null(resT),
titles = if (all) "All Samples" else rsp.uniq,
cutplot = 0, thres = .25, factor = 2.5, ylm = c(-1, 1),
p.thres = c(.01, .05, .1), numaut = 22, onepage = TRUE,
colored = TRUE)
|
aCGH.obj |
Object of class |
resT |
Data frame having the same structure as the result of
applying |
pheno |
phenotype to compare. |
chrominfo |
Chromosomal information. Defaults to
|
X |
Include X chromosome? Defaults to yes. |
Y |
Include Y chromosome? Defaults to no. |
rsp.uniq |
|
all |
|
titles |
|
cutplot |
only clones with at least |
thres |
|
factor |
|
ylm |
|
p.thres |
|
numaut |
|
onepage |
|
colored |
Is plotting in color or not? Default is TRUE. |
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(colorectal)
## Use mt.maxT function from multtest package to test
## differences in group means for each clone grouped by sex
colnames(phenotype(colorectal))
sex <- phenotype(colorectal)$sex
sex.na <- !is.na(sex)
colorectal.na <- colorectal[ ,sex.na, keep = TRUE ]
dat <- log2.ratios.imputed(colorectal.na)
resT.sex <- mt.maxT(dat, sex[sex.na], test = "t", B = 1000)
## Plot the result along the genome
plotFreqStat(colorectal.na, resT.sex, sex[sex.na],
titles = c("Male", "Female"))
## Adjust the p.values from previous exercise with "fdr"
## method and plot them
resT.sex.fdr <- resT.sex
resT.sex.fdr$adjp <- p.adjust(resT.sex.fdr$rawp, "fdr")
plotFreqStat(colorectal.na, resT.sex.fdr, sex[sex.na],
titles = c("Male", "Female"))
## Derive statistics and p-values for testing the linear association of
## age with the log2 ratios of each clone along the samples
age <- phenotype(colorectal)$age
age.na <- which(!is.na(age))
age <- age[age.na]
colorectal.na <- colorectal[, age.na]
stat.age <- aCGH.test(colorectal.na, age, test = "linear.regression", p.adjust.method = "fdr")
#separate into two groups: < 70 and > 70 and plot freqeuncies of gain and loss
#for each clone. Note that statistic plotted corresponds to linear coefficient
#for age variable
plotFreqStat(colorectal.na, stat.age, ifelse(age < 70, 0, 1), titles =
c("Young", "Old"), X = FALSE, Y = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.