Description Usage Arguments Details Value See Also Examples
View source: R/getBreakpoints.R
Extract breakpoint coordinates for focal genome segments
1 | getBreakpoints(SYNT, focalgenome, ordfocal = NULL, remThld = 0)
|
SYNT |
A list of matrices that store data on different classes of
rearrangements and additional information. |
focalgenome |
Data frame representing the focal genome, containing the
mandatory columns |
ordfocal |
Character vector with the IDs of the focal genome segments
that will be summarized. Have to match (a subset of) IDs in
|
remThld |
A numeric value between |
Parameters SYNT and focalgenome need to be specified.
focalgenome must contain the column $marker, a vector of
either characters or integers with unique ortholog IDs that can be matched
to the values in the rownames of SYNT. Values can be NA for
markers that have no ortholog. $scaff must be a character vector
giving the name of the focal genome segment (e.g., chromosome or scaffold)
of origin of each marker. $start and $end must be numeric
vectors giving the location of each marker on its focal genome segment.
$strand must be a vector of "+" and "-" characters
giving the reading direction of each marker. Additional columns are ignored
and may store custom information, such as marker names. Markers need to be
ordered by their map position within each focal genome segment, for example
by running the orderGenomeMap function. focalgenome
may contain additional rows that were absent when running the
computeRearrs function. However, all markers present in
SYNT need to be contained in focalgenome, with the subset of
shared markers being in the same order.
A list with breakpoint coordinates for the set of focal genome
segments in ordfocal that have orthologous markers in SYNT.
If no breakpoints exist, the list element for the focal genome segment is
NULL, otherwise it is a data frame with breakpoint coordinates in
rows. Columns $bptmin and $bptmax give the minimum and
maximum possible coordinates of a breakpoint as the end and start positions
of the two orthologs in SYNT adjacent to a rearrangement boundary,
and are obtained from focalgenome$end and focalgenome$start.
Column $bptmid gives the breakpoint coordinate as midpoint between
$bptmin and $bptmax. Column $maxtagval gives the
maximum tag value of rearrangements sharing the same breakpoint coordinate.
computeRearrs, filterRearrs,
genomeImagePlot.
1 2 3 | SYNT<-computeRearrs(TOY24_focalgenome, TOY24_compgenome, doubled = TRUE)
getBreakpoints(SYNT, TOY24_focalgenome, c("1", "2", "3"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.