mortazavilab / swan_vis

A Python library to visualize and analyze long-read transcriptomes
https://freese.gitbook.io/swan/
MIT License
57 stars 11 forks source link

Differential isoform usage multiple conditions #20

Open rsalz opened 2 years ago

rsalz commented 2 years ago

Hey Fairlie, me again... I would like to measure DIE between multiple conditions. At the moment only 2 conditions are allowed for the obs_conditions argument. In theory, the method you use for DIE from Joglekar et al should allow for the comparison of more than 2 conditions. At the moment I can compare each of my 4 conditions with control and looking at the overlap, but that is noisy and a worse approach than just comparing the all conditions to each other simultaneously...

fairliereese commented 2 years ago

Hi there,

To clarify, are you referring to running a comparison like (condition 1 + condition 2) vs *(condition 3 + condition 4) (which would still be pairwise), or like condition 1 vs condition 2 vs condition 3 vs condition 4 (which would be a multi-way test).

The former is easily done in the current framework; you just need to make an additional metadata column. I'm afraid that the latter is more difficult and am not entirely sure if the current algorithm would be compatible with it.