View source: R/makeCNPmask.chrom.R
makeCNPmask.chrom | R Documentation |
The function takes as an input a set of intervals with integer-valued boundary positions. It then finds interval regions where the event count is above each of two thresholds, upper and lower, and returns those interval regions with the count above the lower threshold that contain interval regions with the count above the upper threshold. This is done for one specific chromosome.
makeCNPmask.chrom(imat, startcol = 1, endcol = 2, nprof = 1, uthresh, dthresh)
imat |
A |
startcol |
A |
endcol |
A |
nprof |
A |
uthresh |
A |
dthresh |
A |
A matrix
of numeric
(used as integer)
with three columns that represent the masked regions:
"chrom", the chromosome number
"start", the starting position of a masked region
"end", the ending position of a masked region
Alexander Krasnitz, Guoli Sun
## Load a table of copy number events collected from 1203 profiles. data(cnpexample) ## Create a table with chromosome 2 only. del <- cnpexample[cnpexample$chrom == 2,] ## Create a table of deletion events only. del <- del[del[,"copy.num"] == "del",] ## Create a mask for chromosome 2 using this table, lower threshold of ## 0.008 and upper threshold of 0.02 CNprep:::makeCNPmask.chrom(imat=del, startcol="chrom.start", endcol="chrom.end", nprof=1203, uthresh=0.02, dthresh=0.008)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.