snp_ld_scores | R Documentation |
LD scores
snp_ld_scores(
Gna,
ind.row = rows_along(Gna),
ind.col = cols_along(Gna),
size = 500,
infos.pos = NULL,
ncores = 1
)
bed_ld_scores(
obj.bed,
ind.row = rows_along(obj.bed),
ind.col = cols_along(obj.bed),
size = 500,
infos.pos = NULL,
ncores = 1
)
Gna |
A FBM.code256
(typically |
ind.row |
An optional vector of the row indices (individuals) that
are used. If not specified, all rows are used. |
ind.col |
An optional vector of the column indices (SNPs) that are used.
If not specified, all columns are used. |
size |
For one SNP, window size around this SNP to compute correlations.
Default is |
infos.pos |
Vector of integers specifying the physical position
on a chromosome (in base pairs) of each SNP. |
ncores |
Number of cores used. Default doesn't use parallelism.
You may use |
obj.bed |
Object of type bed, which is the mapping of some bed file.
Use |
A vector of LD scores. For each variant, this is the sum of squared correlations with the neighboring variants (including itself).
test <- snp_attachExtdata()
G <- test$genotypes
(ld <- snp_ld_scores(G, ind.col = 1:1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.