1 SNP per fragment

32 views
Skip to first unread message

Antonio Varas Myrik

unread,
Jan 25, 2023, 12:40:13 PM1/25/23
to dartR
Hi friends:

I want to retain only one SNP per fragment to avoid LD in a landscape genomic study. Some idea of how do it?

Thanks in advance
Antonio

Arthur Georges

unread,
Jan 25, 2023, 5:33:04 PM1/25/23
to da...@googlegroups.com
Hi Antonio,

Use

gl <- gl.filter.secondaries(gl,verbose=3)

Filters loci that represent secondary SNPs in a genlight 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.

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.

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' [default '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].


A

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/90aaa6cf-1037-443f-910a-708a53499af7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages