Description Usage Arguments Value Examples
View source: R/CIVMR_function.R
This function remove highly correlated SNPs. It also calculate MAF for each snp and delete rare snps with low MAF (e.g. 0.01).
1 | SNP_reduction(snp_matrix, crit_high_cor = 0.8, maf_crit = 0.01)
|
snp_matrix: |
SNP matrix with dimension n * p. |
crit_high_cor: |
criteria to choose highly correlated SNPs. |
maf_crit: |
criteria to choose rare SNPs. |
sel_snp: the new dosage matrix of selected SNPs.
id_snp: the ids (columns) of selected SNPs in the original SNP matrix.
1 2 | data(simulation)
snp.rdc <- SNP_reduction(simulation$G)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.