Skip to content
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

interval_method option for statistical summaries #7

Closed
wants to merge 4 commits into from
Closed

interval_method option for statistical summaries #7

wants to merge 4 commits into from

Conversation

tjparnell
Copy link

These are the modifications that were discussed with Lincoln several weeks ago regarding adding an interval_method option when working with statistical_summaries from BigWig datasets when drawing wiggle_xyplots. This allows the user to report the mean, sum, minimum, or maximum score for each interval. The default is mean, the same as pre-existing behavior.

Changes have been made to wiggle_xyplot (wiggle_data), hybrid_plot, and vista_plot glyphs to support this. Documentation have been added to wiggle_xyplot.

Also included are fixes for bad behavior with sparse variableStep data from bigWig, most visible when using the line graph_type. The default return value for each interval in the data array was 0 when the statistical_summary reported a validCount of 0, resulting in the line bouncing from real values to 0, unlike the behavior with wib files, which draws a line from real value to next available real value.

The fix is to change the default return value to undef, and then toss those undefined values when preparing the parts for rendering.

@ghost ghost assigned lstein Jun 19, 2013
@tjparnell tjparnell closed this Jul 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants