View source: R/gl.subsample.loci.r
| gl.subsample.loci | R Documentation |
Deprecated. Use gl.subsample.loc(x, n, replace = FALSE,
method = method, mono.rm = mono.rm) instead; see
gl.subsample.loc.
Subsamples a genlight object on loci, at random or on information
content, by calling gl.subsample.loc. It will be removed in a
future release.
gl.subsample.loci(x, n, method = "random", mono.rm = FALSE, verbose = NULL)
x |
Name of the genlight object containing the SNP or presence/absence (SilicoDArT) data [required]. |
n |
Number of loci to include in the subsample [required]. |
method |
Method: 'random', in which case the loci are sampled at random; or 'pic', in which case the top n loci ranked on information content are chosen. Information content is AvgPIC in the case of SNP data and PIC in the case of presence/absence (SilicoDArT) data, recalculated first if the stored values are out of date [default 'random']. |
mono.rm |
Delete monomorphic loci before sampling [default FALSE]. |
verbose |
Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2 or as specified using gl.set.verbosity]. |
A genlight object with n loci
Author(s): Luis Mijangos. Custodian: Luis Mijangos – Post to https://groups.google.com/d/forum/dartr
gl.subsample.loc
Other data manipulation:
gl.add.indmetrics(),
gl.define.pop(),
gl.drop.ind(),
gl.drop.loc(),
gl.drop.pop(),
gl.edit.recode.pop(),
gl.fbm.cleanup(),
gl.fbm2gen(),
gl.gen2fbm(),
gl.impute(),
gl.join(),
gl.keep.ind(),
gl.keep.loc(),
gl.keep.pop(),
gl.make.recode.ind(),
gl.make.recode.pop(),
gl.merge.pop(),
gl.reassign.ind(),
gl.reassign.pop(),
gl.recode.ind(),
gl.recode.pop(),
gl.rename.pop(),
gl.sample(),
gl.sim.genotypes(),
gl.sort(),
gl.subsample.ind(),
gl.subsample.loc()
# SNP data
gl2 <- gl.subsample.loci(testset.gl, n=200, method='pic')
# Tag P/A data
gl2 <- gl.subsample.loci(testset.gs, n=100, method='random')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.