extract_dart_target_id | R Documentation |
Used internally in radiator and might be of interest for users. The function allows to extract DArT target id from a DArT file. To help prepare the appropriate STRATA file.
extract_dart_target_id(data, write = TRUE)
data |
One of the DArT output files. 6 formats used by DArT are recognized by radiator. recognised:
Depending on the number of markers, these format will be recoded similarly to VCF files (dosage of alternate allele, see details). The function can import If you encounter a problem, sent me your data so that I can update the function. |
write |
With default |
A tidy dataframe with a TARGET_ID
column. For cleaning, the TARGET_ID
column is treated like the column INDIVIDUALS
. Spaces and ,
are removed, _
and :
are changed to a dash -
and
UPPER case is used.
see cleaning doc for logic behind this.
Thierry Gosselin thierrygosselin@icloud.com and Peter Grewe peter.grewe@csiro.au
## Not run:
# Built a strata file:
strata <- radiator::extract_dart_target_id("mt.dart.file.csv") %>%
dplyr::mutate(
INDIVIDUALS = "new id you want to give",
STRATA = "fill this"
) %>%
readr::write_tsv(x = ., file = "my.new.dart.strata.tsv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.