View source: R/gl.make.recode.ind.r
gl.make.recode.ind | R Documentation |
Renaming individuals may be required when there have been errors in labeling arising in the process from sample to sequencing files. There may be occasions where renaming individuals is required for preparation of figures.
gl.make.recode.ind(
x,
out.recode.file = "default_recode_ind.csv",
outpath = tempdir(),
verbose = NULL
)
x |
Name of the genlight object [required]. |
out.recode.file |
File name of the output file (including extension) [default default_recode_ind.csv]. |
outpath |
Path where to save the output file [default tempdir(), mandated by CRAN]. |
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]. |
This function facilitates the construction of a recode table by producing a proforma file with current individual (=specimen) names in two identical columns. Edit the second column to reassign individual names. Use keyword 'Delete' to delete an individual.
When caution needs to be exercised because of the potential for breaking the 'chain of evidence' associated with the samples, recoding individuals using a recode table (csv) can provide a clear record of the changes.
Use outpath=getwd() or when calling this function to direct output files to your working directory.
The function works with both genlight objects containing SNP genotypes and Tag P/A data (SilicoDArT).
Apply the recoding using gl.recode.ind().
A vector containing the new individual names.
Custodian: Arthur Georges – Post to https://groups.google.com/d/forum/dartr
Other dartR-base:
gl.drop.ind()
,
gl.drop.loc()
,
gl.drop.pop()
,
gl.edit.recode.ind()
,
gl.edit.recode.pop()
,
gl.keep.loc()
,
gl.read.dart()
,
gl.recode.ind()
,
gl.recode.pop()
,
gl.set.verbosity()
result <- gl.make.recode.ind(testset.gl, out.recode.file ='Emmac_recode_ind.csv',outpath=tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.