Description Usage Arguments Value Author(s) Examples
View source: R/iterseg.genome.weighted.R
Creates a plot of the Whole Genome segmented, a dataframe including all the segments, and a dataframe including the predictions from the regression tree using the optimal cp value for each chromosome, iterative regression trees,and weighting to incentitze the regression to catch spikes.
1 2 3 4 5 6 7 8 | iterseg.genome.weighted(
df,
png_filename,
numiterations = 3,
cpvalue = NA,
upper.y.lim = 5,
lower.y.lim = 5
)
|
df |
A dataframe with columns of Start.Pos, log2r, and Chr columns. The Chr column should have format like "chr1", "chr21", "chrY". |
png_filename |
A .png filename |
cpvalue |
Specify a constant cp value for the regression tree to use instead of the optimal cp value |
upper.y.lim |
The upper limit for the y value of the plot |
lower.y.lim |
The lower limit for the y value of the plot |
A .png file with the whole genome plot and segmentation data, a list containing a dataframe with all of the segmentation data (segments), and a dataframe with the predictions from the regression tree (regtreepred)
Annika Cleven
1 2 3 | example <- iterseg.genome.weighted(datafr127, png_filename = "datafr.png")
example$regtreepred
example$segments
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.