facopy(fad, alteration, model, nullModel = NULL, modelPart = c("response","predictor","unknown","whole")[1], strata = NULL, toOrdered = NULL, toIntervals = NULL, sel = NULL, plot = FALSE, pvalThr = 0.05, db = NULL, link = c("logit", "probit")[1], parametric = FALSE, design = c("binary", "versus", "lvog")[1], FUN, ...)
facopyInfo
object with a certain study's facopy
data. Feature information should have been added beforehand on this object (see addFeatures
).
amplifications
All amplifications (CN>2).
- deletions
All deletions (CN<2). -="" loh All loss of heterozygosity (LOH), regardless of copy number.
- cnas
All copy number alterations (CN<>2).
- any
Any kind of alteration.
- all
Any kind of alteration, same as any
.
- onlygain
Only non-LOH amplifications.
- someloss
All deletions plus LOH alterations.
2).>
modelPart="response"
, the name of a single variable, representing the response of the association model.
If modelPart="predictor"
, a linear predictor of the copy number, using a combination of the variables.
If modelPart="unknown"
, the association is measured as the strenght of the relationship between copy number and the specified combination of variables. The model is limited to x1 + ... + xn | strata
, see independence_test
.
If modelPart="whole"
, a character representation of a formula in compact symbolic form. Use the @ (at) symbol to refer to the copy number variable.
modelPart="predictor"
or modelPart="whole"
.
model
parameter.
modelPart="response"
or modelPart="unknown"
.
addVariables
.
NULL
for genome-wide association over all the features specified in addFeatures
. Plotting will only be done if sel=NULL
.
plot=TRUE
.
database
]_[dataset
]". The total amplification plus deletion frequencies will be displayed unless alteration
indicates either amplification or deletion. In such cases, only the matching alterations are displayed. Only used if plot=TRUE
. See getFacopyInfo
for a list of available data sets.
glm
.
binary
: an alteration exists or it does not. The versus
design, for CNAs, assigns a value of -1, 0 or 1 depending on whether a deletion, no copy number change or an amplification exists for a given feature. The vlog
design, for all (any) alterations, assigns a value of -1, 0 or 1 depending on whether a deletion or LOH, no copy number change or an amplification without LOH exists.
modelPart="whole"
. Functions from the coin
package and those that inherit from either the lm
(such as glm
) are supported, as well as those that directly return a pvalue. Thus, the function of interest can be wrapped in a wrapper function that provides the pvalue.
FUN
function. Only used if modelPart="whole"
.
data.frame
with the following columns:
facopyInfo
object, the alteration type and a simple model (e.g. the name of a variable) are required. The rest of the parameters tune up the association model and control the graphical output.
Alterations in the selected external database, if selected, are depicted as grey overlaid bars. Significant regions are depicted in turn as overlaid rectangles that go from top to bottom.
data(myStudy) # load example study
genes = facopy(myStudy, "amp", "stage")
head(genes)
Run the code above in your browser using DataLab