View source: R/visualize.results.R
visualize.results | R Documentation |
Wrapper function that creates a variety of plots, displaying results
visualize.results(
raw.data, normalized.data, phenodata = NULL, cna.rounded = NULL,
cna.raw = NULL, max.cn = 5, replicate.eval = NULL, exclude.covs = FALSE
)
raw.data |
A gene by sample data-frame of raw NanoString counts. First three column names must be 'CodeClass', 'Name', and 'Accession', followed by sample IDs |
normalized.data |
A gene by sample data-frame of normalized NanoString counts. First three column names must be 'CodeClass', 'Name', and 'Accession', followed by sample IDs |
phenodata |
A data-frame of sample annotation. Must include columns 'SampleID' and 'Type' and/or 'Cartridge'. Recommended to use output of |
cna.rounded |
A gene by sample data-frame of CNA calls. See 'cna.rounded' in output of |
cna.raw |
A gene by sample data-frame of tumour-normal count ratios. See 'cna.raw' in output of |
max.cn |
Maximum allowable ratio in 'cna.raw' data. Sets copy numbers of more than 'max.cn' to 'max.cn'. Defaults to 5 |
replicate.eval |
A list of replicate evaluation results. Use output of |
exclude.covs |
Whether to exclude covariate information (provided in 'phenodata') from plots. Defaults to FALSE |
Plots are saved as tiff files to working directory
None
Emilie Lalonde and Dorota Sendorek
## Not run:
# load data
data(NanoString.DNA.raw);
data(NanoString.DNA.norm);
data(PhenoData);
# call CNAs
cnas <- call.cnas.with.pooled.normals(
normalized.data = NanoString.DNA.norm,
phenodata = PhenoData
);
# evaluate results
evaluation <- evaluate.replicates(
phenodata = PhenoData,
normalized.data = NanoString.DNA.norm,
cna.rounded = cnas$rounded
);
# plot data and results
visualize.results(
raw.data = NanoString.DNA.raw,
normalized.data = NanoString.DNA.norm,
phenodata = PhenoData,
cna.rounded = cnas$rounded,
cna.raw = cnas$raw,
replicate.eval = evaluation,
max.cn = 5
);
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.