subset_snp: Function to extract the genotype columns for chosen variants...

Description Usage Arguments Value

Description

Given the full set of genotype file in plink format and variants index would like to keep, this function will return the genotype columns for the wanted variants (the first 6 columns are removed). Similar to the option –extract in plink software, but the first 6 columns are removed in this function.

Usage

1
subset_snp(M, set)

Arguments

M

the genotype file in ped format,Note, each snp have two columns in the ped file and the first 6 column need to be included.

set

the return of common_coord, the vector of integers representing the location of the common snps in the two sets.

Value

the genotype file for the snps common in two sets only, each snp has two columns.


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