Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gl.filter.secondaries

Filter loci that represent secondary SNPs in a genlight {adegenet} object


Description

SNP datasets generated by DArT include fragments with more than one SNP and record them separately with the same CloneID (=AlleleID). These multiple SNP loci within a fragment (secondaries) are likely to be linked, and so you may wish to remove secondaries.

Usage

gl.filter.secondaries(x, method = "random", verbose = NULL)

Arguments

x

– name of the genlight object containing the SNP data [required]

method

– method of selecting SNP locus to retain, best or random [random]

verbose

– verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2, unless specified using gl.set.verbosity]

Details

This script filters out all but the first sequence tag with the same CloneID after ordering the genlight object on based on repeatability, avgPIC in that order (method="best") or at random (method="random").

The filter has not been implemented for tag presence/absence data.

Value

The reduced genlight, plus a summary

Author(s)

Arthur Georges (Post to https://groups.google.com/d/forum/dartr)

Examples

gl.report.secondaries(testset.gl)
result <- gl.filter.secondaries(testset.gl)

dartR

Importing and Analysing SNP and Silicodart Data Generated by Genome-Wide Restriction Fragment Analysis

v1.9.6
GPL-2
Authors
Bernd Gruber [aut, cre], Arthur Georges [aut], Jose L. Mijangos [aut], Peter J. Unmack [ctb], Oliver Berry [ctb], Lindsay V. Clark [ctb], Floriaan Devloo-Delva [ctb]
Initial release
2021-04-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.