You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Save initial width in vEntry, then on updates check against. If no match throw error explaining issue. Also, add back region_n tracking. Use this for optional normalization later.
Eg "entry n (chr-start-end) is X bp. Expected Y bp. Ensure all regions are equal length."
The text was updated successfully, but these errors were encountered:
Hi but why bed regions must be of equal width ? I have bedfile with broad domains ranging from 5kbs to 20kbs. I want to make Vplot around such regions. what about scaling regions to the same length/width such as in deeptools ?
Hey, thanks for giving vplot a shot. To be honest, I have not found region size scaling to produce meaningfully interpretable results, especially when the regions have such a large size differential. For instance, how would you scale a 5kb region to 20kb and preserve meaningful fragment width information?
You could imagine however doing something like showing the largest region then aggregating all the signal into a matrix of that size, but then the signal will mostly be skewed by the number of regions at different sizes, and I don't know the best way to normalize for that. If you have ideas I'd be interested to hear them.
Practically, it is currently not implemented because the way vplot is working under the hood is to allocate a matrix equal to the size of the regions, so requiring equal sized regions for making aggregate plots just makes it easier, and for making separate matrices for each region it can reuse the same memory allocation by flushing the matrix with 0's between regions, which provides a significant speedup. That doesn't mean it can't change, that's just how it is currently implemented.
Save initial width in vEntry, then on updates check against. If no match throw error explaining issue. Also, add back region_n tracking. Use this for optional normalization later.
Eg "entry n (chr-start-end) is X bp. Expected Y bp. Ensure all regions are equal length."
The text was updated successfully, but these errors were encountered: