permSNPs: Randomly choose SNPs with similar characteristics to your...

Description Usage Arguments Value Examples

View source: R/permSNPs.R

Description

Based on the information provided of the matches, the function chooses randomly the matches with similar characteristics to the input SNPs. In case the number of original SNPs (numSNPs) is not the same as the length of SNPlist, the difference will be filled with random variants of the already sampled available SNPs.

Usage

1
permSNPs(SNPlist, numSNPs)

Arguments

SNPlist

A list where each object is a input SNP (specified in the name of the object) with a vector of its matches.

numSNPs

Numeric value with the information of the original number of SNPs.

Value

Vector with a randomly chosen number of variants with similar characteristics to the input SNPs.

Examples

1
permVector <- permSNPs(SNP_list, 8000)

ldehoyos/twinSNP documentation built on June 22, 2021, 4:10 p.m.