bcm-uga / Loter

A software package for local ancestry inference and haplotype phasing
Other
38 stars 7 forks source link

How to get the introgressed segment #17

Closed silvewheat closed 4 years ago

silvewheat commented 4 years ago

Hi, I used the lc.loter_smooth to get the result. But the result is the classification of each single SNPs. How I can get the introgressed regions? By merging the consecutive SNPs belong to a same source? And how much exception (SNPs belong to another souce) we can tolerate to extend the introgressed segment?

Best wishes, Yudong

gdurif commented 4 years ago

Hi,

Loter gives you the ancestral origin at the SNP scale, but the algorithm does not consider SNPs independently, so chunks of consecutive SNPs from the same ancestral origin corresponds to introgressed regions.

lc.loter_smooth implements a smoothing step after the Loter core algorithm to correct for these exceptions that you mention, so you should be able to directly use the painting given in the output.

Obviously, there could be some errors in the inferred ancestry, Loter performance review (see [1]) shows that Loter results are very trustworthy when investigating recent admixture events. For older admixture events, the performance are quite good (up to the state-of-the-art) but you get more errors (as with any other local ancestry inference method).

Do not hesitate if you have further questions. Best,

[1] https://academic.oup.com/mbe/article/35/9/2318/5040668

silvewheat commented 4 years ago

Thanks so much for your careful and swiftly reply!

Best wishes, Yudong