write_ldna | R Documentation |
Write a LDna object from a biallelic tidy data frame. Used internally in radiator and might be of interest for users.
write_ldna(
data,
filename = NULL,
parallel.core = parallel::detectCores() - 1,
...
)
data |
A tidy data frame object in the global environment or
a tidy data frame in wide or long format in the working directory.
How to get a tidy data frame ?
Look into radiator |
filename |
(optional) The file name of the LDna lower matrix file.
Radiator will append |
parallel.core |
(optional) The number of core used for parallel
execution during import.
Default: |
... |
(optional) To pass further argument for fine-tuning the function (see details). |
The function requires SNPRelate to prepare the data for LDna.
To install SNPRelate: install.packages("BiocManager") BiocManager::install("SNPRelate")
To install LDna: devtools::install_github("petrikemppainen/LDna")
Thierry Gosselin thierrygosselin@icloud.com
Kemppainen P, Knight CG, Sarma DK et al. (2015) Linkage disequilibrium network analysis (LDna) gives a global view of chromosomal inversions, local adaptation and geographic structure. Molecular Ecology Resources, 15, 1031-1045.
Zheng X, Levine D, Shen J, Gogarten SM, Laurie C, Weir BS. (2012) A high-performance computing toolset for relatedness and principal component analysis of SNP data. Bioinformatics. 28: 3326-3328. doi:10.1093/bioinformatics/bts606
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.