Skip to contents

Calculate r-scores (un-target) by in parallel.

Usage

nt2r(geno, nt, n_iter = 30, multi.threads = FALSE)

Arguments

geno

A numeric dataframe of genotype, column represent sites (genotype coding as 1, 0, -1)

nt

Numeric. Number of training set size

n_iter

Times of iteration. (default = 30)

multi.threads

Default: FALSE. Multi-thread function is only avalyble for mac or linux systems.

Value

A vector of r-scores of each iteration

Examples

data(geno)
if (FALSE) nt2r(geno, 50)