Description Usage Arguments Details Author(s) See Also
This function provides a Tcl-Tk interface to produce or adjust a CGH copy number model on single or multiple arrays.
1 2 3 | tk.modelize(compress = "gzip", compression_level = 9, exclude = c("X", "Y", "Xp", "Xq",
"Yp", "Yq"), globalTopLevel, localTopLevel, render = c("auto", "png", "tkrplot"),
tkrplot.scale = 1, png.res = 100, png.file = tempfile(fileext=".png"))
|
compress |
To be passed to |
compression_level |
To be passed to |
exclude |
Vector, the chromosomes to exclude from the density computation and to plot with distinct symbols (use |
globalTopLevel |
This argument should be filled only when embedding this Tcl-Tk interface in an other. It is the top level of the embedding interface, generally a call to |
localTopLevel |
This argument should be filled only when embedding this Tcl-Tk interface in an other. It is the local top level to use to build this interface, generally a |
render |
Single character value from the ones listed, defining the rendering engine for the plot. "png" is recommended and the default on any platform supporting it (needs Tcl-tk version 8.6 or higher, already available on Linux and MacOS and on Windows with R version 3.4.0 or above), and consists in displaying an export to a PNG file. "tkrplot" is more limited and kept only for backward compatibility, it relies on the external package |
tkrplot.scale |
Single numeric value, defining a multiplying factor for plot size with the "tkrplot" engine. This argument is mainly provided to temper a bug with the "Font size multiplication factor" feature of last Windows operating system, and get plots filling the whole Tcl-tk window. As an example if you use a 150 |
png.res |
Single integer value, the resolution of the plot in Pixels Per Inches. Passed to |
png.file |
Single character value, the path to the PNG file that is displayed in the main window. The default behavior is to hide it in a temporary location, however you can define this argument to have an easier access to the images displayed in Rgb (the image will be replaced each time Rgb refresh its display). This has no effect with the "tkrplot" engine used on Windows prior to R version 3.4.0. |
Currently two types of files are handled: cghRA.regions
objects exported with saveRDT
and custom tables of segments with an optional header line describing the model.
Custom files are supposed to meet the following criteria:
Filename extension must be ".txt".
Table separated by tabulations, with dots as decimal separators.
Each segment of the genome on a distinct row.
A "chrom" column (preferably character) for segment chromosome location.
"start" and "end" columns (1 based integers) for position on the chromosome.
"probes" (integer) for probe amount in the segment.
"logRatio" (numeric) for mean log-ratio of the segment.
The first line can hold a model description, as returned by model.test
. The line must begin with a "#" sign and describe values as "name=value" pairs separated by ", ".
Sylvain Mareschal
model.auto
, model.test
, tk.cghRA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.