separate_markers | R Documentation |
Radiator uses unique marker names by combining
CHROM
, LOCUS
, POS
columns, with double underscore
separators, into MARKERS = CHROM__LOCUS__POS
.
Used internally in radiator and might be of interest for users who need to get back to the original metadata the function provides an easy way to do it.
separate_markers(
data,
sep = "__",
markers.meta.lists.only = FALSE,
markers.meta.all.only = FALSE,
generate.markers.metadata = TRUE,
generate.ref.alt = FALSE,
biallelic = NULL,
parallel.core = parallel::detectCores() - 1,
verbose = TRUE
)
data |
An object with a column named |
sep |
(optional, character) Separator used to identify the different
field in the When the |
markers.meta.lists.only |
(logical, optional)
Allows to keep only the markers metadata:
|
markers.meta.all.only |
(logica, optionall)
Allows to keep all available markers metadata:
|
generate.markers.metadata |
(logical, optional)
Generate missing markers metadata when missing.
|
generate.ref.alt |
(logical, optional) Generate missing REF/ALT alleles
with: REF = A and ALT = C (for biallelic datasets, only).
It is turned off automatically
when argument |
biallelic |
(logical) Speed up the function execution by entering
if the dataset is biallelic or not. Used internally for verification, before
generating REF/ALT info.
By default, the function calls |
parallel.core |
(optional) The number of core used for parallel
execution during import.
Default: |
verbose |
(optional, logical) When |
The same data in the global environment, with 3 new columns:
CHROM
, LOCUS
, POS
. Additionnal columns may be genrated,
see arguments documentation.
Thierry Gosselin thierrygosselin@icloud.com
detect_biallelic_markers
and generate_markers_metadata
## Not run:
whitelist <- radiator::separate_markers(data = whitelist.markers)
tidy.data <- radiator::separate_markers(data = bluefintuna.data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.