Description Usage Arguments Details Examples
Function to plot the estimated profiles of copy number data.
1 2 3 | plotEstProfile(sampleName='', chr, position, logratio, chrToBePlotted, estPC,
maxProbeNumber, legendPosition='bottomleft', regrCurve=NULL,
regr=NULL, hg='hg18')
|
sampleName |
name of the sample, if the user wants to put it in the title of the graph |
chr |
array containing the name of the chromosome to which each probe belongs. The possible values of the elements of |
position |
array containing the physical position of each probe |
logratio |
array containing the log2ratio of the raw copy number data |
chrToBePlotted |
array containing the name of the estimated chromosomes, that the user wants to plot. The possible values of the chromosomes are: the integers from 1 to 22, 'X' and 'Y'. |
estPC |
array containing the estimated copy number profile as a piecewise constant function. If |
maxProbeNumber |
maximum number of probes that a chromosome (or arm of a chromosome) can have to be analyzed. The procedure of profile estimation
needs the computation of an array of length (length(chromosome)+1)*(length(chromosome)+2)/2. To be sure to have set this parameter
correctly, try to create the array |
legendPosition |
string containing the position of the legend in the plot. The possible values are the same used in the function |
regrCurve |
array containing the estimated regression curve. If |
regr |
choice of the computation of the regression curve. If |
hg |
genome build used for retrieving the base positions of the centromeres in case the chromosomes need to be divided into two parts for the estimation (see explanation of |
The function plots the estimated profiles of the chromosomes of chrToBePlotted
, separately.
1 2 3 4 5 6 7 8 | ##import the 10K data of cell line REC
data(rec10k)
##estimation of chromosomes 3 and 5
results <- estProfileWithMBPCR(rec10k$SNPname, rec10k$Chromosome, rec10k$PhysicalPosition,
rec10k$log2ratio, chrToBeAnalyzed=c(3,5), maxProbeNumber=2000)
##plot the corresponding estimated profiles
plotEstProfile(sampleName='rec10k', rec10k$Chromosome, rec10k$PhysicalPosition, rec10k$log2ratio,
chrToBePlotted=c(3,5), results$estPC, maxProbeNumber=2000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.