View source: R/adjust.coordinates.R
adjust.coordinates | R Documentation |
Adjust coordinates for a breakpoint in dataframe using confidence intervals specified an INFO field in the VCF file, if it exists. Used in the 'vcf2bedpe' function.
adjust.coordinates(df, info_tag, start, end)
df |
a dataframe object obtained from a VCF file |
info_tag |
an info tag from the dataframe/VCF file, e.g. 'CIPOS' or 'CIEND' |
start |
VCF column containing the start coordinate |
end |
VCF column containing the end coordinate |
a named list of the adjusted start and end coordinates of a breakpoint.
Helena Winata
## Not run:
coordsA <- adjust.coordinates(x, 'CIPOS', x$POS, x$POS);
coordsB <- adjust.coordinates(x, 'CIEND', x$END, x$END)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.