Description Usage Arguments Value Author(s) Examples
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
1 | seg.genome(df, png_filename, upper.y.lim = 5, lower.y.lim = -5, cpvalue = NA)
|
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 |
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 |
cpvalue |
Specified constant cp value for the regression tree to use instead of the optimal cp value |
A .png file with the whole genome plot and segmentation, 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 <- seg.genome(datafr127, png_filename = "datafr.png",upper.y.lim = 5, lower.y.lim = -5)
example$regtreepred
example$segments
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.