SunPengChuan / wgdi

WGDI: A user-friendly toolkit for evolutionary analyses of whole-genome duplications and ancestral karyotypes
https://wgdi.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
114 stars 22 forks source link

PeaksFit do not show two peaks #44

Closed amvarani closed 8 months ago

amvarani commented 9 months ago

Hi there, I have the following pattern showing two peaks.

image

However, when I try to plot the PeaksFit, I have got this:

image

How to get two (or more) sets of Gaussian curves?

I was not able to follow the solution found in: https://github.com/SunPengChuan/wgdi/issues/14

SunPengChuan commented 9 months ago

The most precise approach involves using the -c parameter in WGDI to partition the synteny blocks for various events, subsequently acquiring the ks peaks. In your context, you can directly utilize the area parameter of the -pf subroutine in WGDI. You can set it to 0.1,0.5 and 1,2 respectively to capture two peak values in two separate instances.

amvarani commented 9 months ago

Hi there! Thanks, but what I can do when I got weird things like that ? image

SunPengChuan commented 9 months ago

In this scenario, you should consider the results from both the -d and -bk options, and then filter the blocks accordingly. Modify the ‘homo’ and ‘multiple’ parameters in the C subroutine for more effective filtering.

amvarani commented 9 months ago

Ok! Perfect, I am addressing that now. Another question: While reviewing our manuscript and documents, I noticed the tandem parameter. According to the manuscript, when enabled in kspeaks, the tandem parameter may reveal peaks not necessarily originating from WGD events, but from tandem duplications or other processes that generate non-syntenic paralogs. Is that correct?

The above image was generated with 'tandem=true' in kspeaks. In the image below, the tandem was set to false. Does this mean the first peak in the above image might not represent a WGD event?

image

SunPengChuan commented 9 months ago

you are right.