-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTrack - undesired behavior when using transformation and windowing #90
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi there,
I'm loving Gviz - thanks for this package!
This isn't exactly a bug report - more a request to consider handling transformation/windowing a bit differently.
In
DataTrack
I can see that the data gets transformed BEFORE it gets windowed. If we use a transformation of log10, just to plot on a log scale, this leads to undesired outcomes (becauselog10(a) + log10(b) != log10(a+b)
). I think what most people would want is simply to have the same plot on a log scale, rather than a different-looking plot.I figured out a way to get what I want (using
aggregation=function(x) {log10(sum(x))}
) but maybe it would also make sense to change the underlying DataTrack code to transform AFTER aggregating over windows. Kind of depends on what typical use case for transformation is, but I would think this will be a very common one.Here's some example code to demonstrate is below.
What do you think?
thanks very much,
Janet Young
Fred Hutch Cancer Center
The text was updated successfully, but these errors were encountered: