leafcutter icon indicating copy to clipboard operation
leafcutter copied to clipboard

How group PSIs in effect_sizes.txt are calculated?

Open smshuai opened this issue 5 years ago • 1 comments

Hello,

I am wondering how PSIs reported in effect_sizes.txt are calculated for each group?

In my understanding, this is the mean intron ratios per cluster per group. However, I did calculation myself based on perind_numers.counts.gz but the value is different from what's in effect_sizes.txt.

As an example, for a cluster with 4 introns, PSI for intron3 reported by leafcutter for groupA is 0.648. The count matrix looks like:

   Sample1 Sample2 Sample3 Sample4 Sample5 Sample6
1:       0       0       0       0       0       0
2:       0       1       6       0       0       1
3:      11      40       0       1       0     176
4:       0       0       7       0       0       0

Thus intron ratios for intron3 is like:

3: 1.00 0.98 0.00 1.00 0.97 0.99

The mean ratio is then 0.98498 (my understanding of group PSI).

Can you point out what's my misunderstanding here? Thanks in advance!

smshuai avatar Apr 21 '20 10:04 smshuai

Hello,

I am wondering how PSIs reported in effect_sizes.txt are calculated for each group?

In my understanding, this is the mean intron ratios per cluster per group. However, I did calculation myself based on perind_numers.counts.gz but the value is different from what's in effect_sizes.txt.

As an example, for a cluster with 4 introns, PSI for intron3 reported by leafcutter for groupA is 0.648. The count matrix looks like:

   Sample1 Sample2 Sample3 Sample4 Sample5 Sample6
1:       0       0       0       0       0       0
2:       0       1       6       0       0       1
3:      11      40       0       1       0     176
4:       0       0       7       0       0       0

Thus intron ratios for intron3 is like:

3: 1.00 0.98 0.00 1.00 0.97 0.99

The mean ratio is then 0.98498 (my understanding of group PSI).

Can you point out what's my misunderstanding here? Thanks in advance!

Have you solved this, my friend? I cannot repeat the effect size neither. I must miss something, e.g. normalization. Thanks!

shixianhu avatar Dec 23 '24 03:12 shixianhu