subset_ind: Function to take a subset the samples from a larger genotype...

Description Usage Arguments Value

Description

This function will take a subset of samples' genotype data from a larger dataset, only return the genotype for the wanted individuals. Similar as the option –keep in plink.

Usage

1
subset_ind(path1, path2)

Arguments

path1

path and file name of the larger genotype files where subset is taken from, ped file is prefered

path2

the file including the list of IDs for individuals to be kept

Value

a list including the genotype data matrix (geno1) and a interger for the number of samples (n1).


Struglab/RVS documentation built on May 9, 2019, 3:11 p.m.