write_stockr | R Documentation |
Write a stockR dataset (Fost et al. submitted). Used internally in radiator and might be of interest for users.
write_stockr(data, filename = NULL, verbose = TRUE)
data |
(4 options) A file or object generated by radiator:
How to get GDS and tidy data ?
Look into |
filename |
(optional) The stockr object is written in the working
directory. The file is written with |
verbose |
(optional, logical) When |
The object generated is a matrix with
dimension: MARKERS x INDIVIDUALS. The genotypes are coded like PLINK:
0, 1 or 2 alternate allele. 0: homozygote for the reference allele,
1: heterozygote, 2: homozygote for the alternate allele.
Missing genotypes have NA. The object also as 2 attributes.
attributes(data)$grps
with STRATA/POP_ID
of the individuals and
attributes(data)$sample.grps
filled with INDIVIDUALS
.
Both attributes can be used inside stockR.
Thierry Gosselin thierrygosselin@icloud.com
Foster et al. submitted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.