makeCNPmask | 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.
makeCNPmask( imat, chromCol = 1, startCol = 2, endCol = 3, nProf = 1, uThresh, dThresh )
imat |
A |
chromCol |
A |
startCol |
A |
endCol |
A |
nProf |
A positive |
uThresh |
A |
dThresh |
A |
TODO details with strange parameters.
Masking is performed separately for each value in
indexvals
. Segments (rows of segtable
) with that
value of eventIndex
are examined for coverage by mask intervals
with that value of maskindex
in masktable
. If the coverage
is at least mincover
, the segment is slated for masking, while its
flanking segments are extended to a random point within the segment
being masked.
A matrix
of numeric
(used as integer)
with three columns:
"chrom", the chromosome number
"start", the left boundary position of the mask
"end", the right boundary position of the mask
Alexander Krasnitz, Guoli Sun
## Load a table of copy number events collected from 1203 profiles. data(cnpexample) ## Create a table of gain (amplification) events only. amps <- cnpexample[cnpexample[,"copy.num"] == "amp",] # Create a mask using this table. ampCNPmask <- makeCNPmask(imat=amps, chromCol="chrom", 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.