Description Usage Arguments Value
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.
1 | subset_snp(M, set)
|
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. |
the genotype file for the snps common in two sets only, each snp has two columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.