| Bioinformatics Toolbox™ | ![]() |
Display frequency of DNA copy number alterations across multiple samples
FreqStruct = cghfreqplot(CGHData)
FreqStruct = cghfreqplot(CGHData,
...'Threshold', ThresholdValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Group', GroupValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Subgrp', SubgrpValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Subplot', SubplotValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Cutoff', CutoffValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Chromosome', ChromosomeValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'IncludeX', IncludeXValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'IncludeY', IncludeYValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Chrominfo', ChrominfoValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'ShowCentr', ShowCentrValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Color', ColorValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'YLim', YLimValue, ...)
FreqStruct = cghfreqplot(CGHData,
...'Titles', TitlesValue, ...)
| CGHData | Array-based comparative genomic hybridization (aCGH) data in either of the following forms:
|
| ThresholdValue | Positive scalar or vector that specifies the gain/loss threshold. A clone is considered to be a gain if its log2 ratio is above ThresholdValue, and a loss if its log2 ratio is below negative ThresholdValue. The ThresholdValue is applied as follows:
Default is 0.25. |
| GroupValue | Specifies the sample groups to calculate the frequency from. Choices are:
Default is a single group of all the samples in CGHData. |
| SubgrpValue | Controls the analysis of samples by subgroups. Choices are true (default) or false. |
| SubplotValue | Controls the display of all plots in one Figure window when more than one subgroup is analyzed. Choices are true (default) or false (displays plots in separate windows). |
| CutoffValue | Scalar or two-element numeric vector that specifies a cutoff, which controls the plotting of only the clones with frequency gains or losses greater than or equal to CutoffValue. If a two-element vector, the first element is the cutoff for gains, and the second element is for losses. Default is 0. |
| ChromosomeValue | Single chromosome number or a vector of chromosome numbers that specify the chromosomes for which to display frequency plots. Default is all chromosomes in CGHData. |
| IncludeXValue | Controls the inclusion of the X chromosome in the analysis. Choices are true (default) or false. |
| IncludeYValue | Controls the inclusion of the Y chromosome in the analysis. Choices are true or false (default) . |
| ChrominfoValue | Cytogenetic banding information specified by either of the following:
Default is Homo sapiens cytogenetic banding information from the UCSC Genome Browser, NCBI Build 36.1 (http://genome.UCSC.edu). |
| ShowCentrValue | Controls the display of the centromere positions as vertical dashed lines in the frequency plot. Choices are true (default) or false. |
| ColorValue | Color scheme for the vertical lines in the plot, indicating the frequency of the gains and losses, specified by either of the following:
The default color scheme is a range of colors from pure green (gain = 1) through yellow (0) to pure red (loss = –1). |
| YLimValue | Two-element vector specifying the minimum and maximum values on the vertical axis. Default is [1, -1]. |
| TitlesValue | Single string or a cell array of strings that specifies titles for the group(s), which are added to the tops of the plot(s). |
| FreqStruct | Structure containing frequency data in the following fields:
|
FreqStruct = cghfreqplot(CGHData) displays the frequency of copy number gain or loss across multiple samples for each clone on an array against their genomic position along the chromosomes.
FreqStruct = cghfreqplot(CGHData, ...'PropertyName', PropertyValue, ...) calls cghfreqplot with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Each PropertyName must be enclosed in single quotation marks and is case insensitive. These property name/property value pairs are as follows:
FreqStruct = cghfreqplot(CGHData,
...'Threshold', ThresholdValue, ...) specifies
the gain/loss threshold. A clone is considered to be a gain if its
log2 ratio is above ThresholdValue,
and a loss if its log2 ratio is below negative ThresholdValue.
The ThresholdValue is applied as follows:
If a positive scalar, it is the gain and loss threshold for all the samples.
If a two-element vector, the first element is the gain threshold for all samples, and the second element is the loss threshold for all samples.
If a vector of the same length as the number of samples, each element in the vector is considered as a unique gain and loss threshold for each sample.
Default is 0.25.
FreqStruct = cghfreqplot(CGHData, ...'Group', GroupValue, ...) specifies the sample groups to calculate the frequency from. Choices are:
A vector of sample column indices (for data with only one group). The samples specified in the vector are considered a group.
A cell array of vectors of sample column indices (for data divided into multiple groups). Each element in the cell array is considered a group.
Default is a single group of all the samples in CGHData.
FreqStruct = cghfreqplot(CGHData, ...'Subgrp', SubgrpValue, ...) controls the analysis of samples by subgroups. Choices are true (default) or false.
FreqStruct = cghfreqplot(CGHData, ...'Subplot', SubplotValue, ...) controls the display of all plots in one Figure window when more than one subgroup is analyzed. Choices are true (default) or false (displays plots in separate windows).
FreqStruct = cghfreqplot(CGHData, ...'Cutoff', CutoffValue, ...) specifies a cutoff value, which controls the plotting of only the clones with frequency gains or losses greater than or equal to CutoffValue. CutoffValue is a scalar or two-element numeric vector. If a two-element numeric vector, the first element is the cutoff for gains, and the second element is for losses. Default is 0.
FreqStruct = cghfreqplot(CGHData, ...'Chromosome', ChromosomeValue, ...) displays the frequency plots only of chromosome(s) specified by ChromosomeValue, which can be a single chromosome number or a vector of chromosome numbers. Default is all chromosomes in CGHData.
FreqStruct = cghfreqplot(CGHData, ...'IncludeX', IncludeXValue, ...) controls the inclusion of the X chromosome in the analysis. Choices are true (default) or false.
FreqStruct = cghfreqplot(CGHData, ...'IncludeY', IncludeYValue, ...) controls the inclusion of the Y chromosome in the analysis. Choices are true or false (default).
FreqStruct = cghfreqplot(CGHData, ...'Chrominfo', ChrominfoValue, ...) specifies the cytogenetic banding information for the chromosomes. ChrominfoValue can be either of the following
Structure returned by the cytobandread function
String specifying the file name of an NCBI ideogram text file or a UCSC Genome Browser cytoband text file
Default is Homo sapiens cytogenetic banding information from the UCSC Genome Browser, NCBI Build 36.1 (http://genome.UCSC.edu).
Tip You can download files containing cytogenetic G-banding data from the NCBI or UCSC Genome Browser ftp site. For example, you can download the cytogenetic banding data for Homo sapiens from: ftp://ftp.ncbi.nlm.nih.gov/genomes/H_sapiens/mapview/ideogram.gz or ftp://hgdownload.cse.ucsc.edu/goldenPath/hg18/database/cytoBandIdeo.txt.gz |
FreqStruct = cghfreqplot(CGHData, ...'ShowCentr', ShowCentrValue, ...) controls the display of the centromere positions as vertical dashed lines in the frequency plot. Choices are true (default) or false.
Tip The centromere positions are obtained from ChrominfoValue. |
FreqStruct = cghfreqplot(CGHData, ...'Color', ColorValue, ...) specifies a color scheme for the vertical lines in the plot, indicating the frequency of the gains and losses. Choices are:
Name of or handle to a function that returns a colormap.
M-by-3 matrix containing RGB values. If M equals 1, then that single color is used for all gains and losses. If M equals 2 or more, then the first row is used for gains, the second row is used for losses, and remaining rows are ignored. For example, [0 1 0;1 0 0] specifies green for gain and red for loss.
The default color scheme is a range of colors from pure green (gain = 1) through yellow (0) to pure red (loss = –1).
FreqStruct = cghfreqplot(CGHData, ...'YLim', YLimValue, ...) specifies the y vertical limits for the frequency plot. YLimValue is a two-element vector specifying the minimum and maximum values on the vertical axis. Default is [1, -1].
FreqStruct = cghfreqplot(CGHData, ...'Titles', TitlesValue, ...) specifies titles for the group(s), which are added to the tops of the plot(s). TitlesValue can be a single string or a cell array of strings.
Plotting Data from the Coriell Cell Line Study
Load a MAT-file, included with the Bioinformatics Toolbox™ software, which contains coriell_data, a structure of array-based CGH data.
load coriell_baccgh
Display a frequency plot of the copy number alterations across all samples in the Coriell aCGH data.
Struct = cghfreqplot(coriell_data);

View data tips for the data, chromosomes, and centromeres
by clicking the Data Cursor
button on the toolbar,
then clicking data, a blue chromosome boundary line, or a dotted centromere
line in the plot. To delete this data tip, right-click it, then select Delete
Current Datatip.
Display a color bar indicating the degree of gain
or loss by clicking the Insert Colorbar
button on the toolbar.
The coriell_baccgh.mat file used in this example contains data from Snijders et al., 2001.
Plotting Pancreatic Cancer Study Data Using a Green and Red Color Scheme
Load a MAT-file, included with the Bioinformatics Toolbox software, which contains pancrea_data, a structure of array-based CGH data from a pancreatic cancer study.
load pancrea_oligocgh
Display a frequency plot of the copy number alterations across all samples in the pancreatic cancer data, using a green and red color scheme.
cghfreqplot(pancrea_data, 'Color', [0 1 0; 1 0 0])

The pancrea_oligocgh.mat file used in this example contains data from Aguirre et al., 2004.
Plotting Groups of aCGH Data, Specifying a Frequency Value Cutoff, and Adding a Chromosome Ideogram
Load a MAT-file, included with the Bioinformatics Toolbox software, which contains pancrea_data, a structure of array-based CGH data from a pancreatic cancer study.
load pancrea_oligocgh
Define two groups of data.
grp1=strmatch('PA.C', pancrea_data.Sample);
grp2=strmatch('PA.T', pancrea_data.Sample);Display a frequency plot of the copy number alterations across all samples in the two groups and limit the plotting to only the clones with frequency gains or losses greater than or equal to 0.25.
SP = cghfreqplot(pancrea_data, 'Group', {grp1, grp2},...
'Title', {'CL', 'PT'}, 'Cutoff', 0.25);

Display a frequency plot of the copy number alterations across all samples in the first group and limit the plot to chromosome 4 only.
SP = cghfreqplot(pancrea_data, 'Group', grp1, ...
'Title', 'CL Group on Chr 4', 'Chromosome', 4);

Use the chromosomeplot function with the 'addtoplot' property to add the ideogram of chromosome 4 for Homo sapiens to this frequency plot. Because the plot of the frequency data from the pancreatic cancer study is in kb units, use the 'Unit' property to convert the ideogram data to kb units.
chromosomeplot('hs_cytoBand.txt', 4, 'addtoplot', gca, 'unit', 2);

The pancrea_oligocgh.mat file used in this example contains data from Aguirre et al., 2004.
[1] Snijders, A.M., Nowak, N., Segraves, R., Blackwood, S., Brown, N., Conroy, J., Hamilton, G., Hindle, A.K., Huey, B., Kimura, K., Law, S., Myambo, K., Palmer, J., Ylstra, B., Yue, J.P., Gray, J.W., Jain, A.N., Pinkel, D., and Albertson, D.G. (2001). Assembly of microarrays for genome-wide measurement of DNA copy number. Nature Genetics 29, 263–264.
[2] Aguirre, A.J., Brennan, C., Bailey, G., Sinha, R., Feng, B., Leo, C., Zhang, Y., Zhang, J., Gans, J.D., Bardeesy, N., Cauwels, C., Cordon-Cardo, C., Redston, M.S., DePinho, R.A., and Chin, L. (2004). High-resolution characterization of the pancreatic adenocarcinoma genome. PNAS 101, 24, 9067–9072.
Bioinformatics Toolbox functions: cghcbs, chromosomeplot, cytobandread
![]() | cghcbs | chromosomeplot | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |