subset_snpMatrix {martini} | R Documentation |
Compute a permutation of the samples of a snpMatrix object. Useful to make sure that the folds are not stratified by phenotype.
subset_snpMatrix(gwas, samples)
gwas |
A SnpMatrix object with the GWAS information. |
samples |
Vector (logical or numeric) containing the samples to select. |