New "Plot Style" control, with a "By Study Day" option that shows lab values on a selected day, with an option to animate change in values over the course of the study. Approach is modeled loosely off of this example from @mbostock.
Improved R Ratio functionality including:
A new R Ratio over time part has been added to the participant profile that is shown when a participant point is clicked.
Option to set point size based on R Ratio added
R ratio values are shown when mousing over the snake plot
[x] Confirm that changing the plot style control shows/hides the study day slider under the chart.
[x] Confirm that changing the plot style control causes the the scatter plot points to update. Using the participants details view, confirm that the point position is correct. Selecting "Max Values" should show the point using max values across all visits, while selecting "By Study Day" should show the points using the most recent values collected on or before the selected study day.
[x] Confirm the study day slider defaults to the first non-negative study day in the data.
[x] Confirm that clicking a different value on the study day slider changes the position of the points
[x] Confirm that clicking a different value on the study day slider changes the position of the points.
[x] Confirm that all controls (filters, point size, etc) and the participant profile (clicking a point) works in the expected way on the "By Study Day" view
[x] Confirm that clicking the play button starts an animation from the currently selected study day until the end of the study.
[x] Confirm that while the animation is running, a square stop icon is shown instead of the triangular play button. Confirm that clicking the stop button stops the animation on the current day
[x] Confirm that if the last study is selected on the study day slider, the play button changes to a circular "replay" arrow, and that clicking that button plays the animation from the first study day until the end of the study.
[x] Confirm that any user interaction involving control changes and point clicks while the animation is running, interrupt the animation and cause it to stop on the current date.
[x] Confirm that small points are shown during the animation when the study day is before or after a given participant's study enrollment (as described by the figures footnote).
[x] Confirm that footnotes regarding point size and fill change appropriately when changing plot style
[x] Confirm that point size changes appropriately over the course of the animation when an option other than "Uniform" is selected
R Ratio tests
[x] Confirm that 'rRatio' has been added as an option under points size, and that the points are sized appropriately when it is clicked.
[x] Confirm that a new 'R Ratio by Visit' chart is visible in the participant details when the point is clicked. The chart should have the following features:
[x] Reference lines at 2 and 5, which should always be visible even when no R Ratio values >2 are present
[x] Exact Study day and r ratio values shown on point mouseover.
Filter to id = 5090-02 and confirm that R ratio values (shown on point mouseover) are correct for each plot type. Use the clinical-trials\renderer-specific\allQuads.csv dataset and this settings object:
{
"max_width": 600,
"value_col": "LBORRES",
"measure_col": "TESTNAM",
"visit_col": "VISIT",
"studyday_col": "STUDYDAY",
"normal_col_low": "LBORRESLO",
"normal_col_high": "LBORRESHI",
"id_col": "SUBJID",
"group_cols": [
"TRTA",
"SEX"
],
"filters": [
{
"value_col": "TRTA",
"label": "Treatment"
},
{
"value_col": "SEX",
"label": "Sex"
},
{
"value_col": "SUBJID",
"label": "ID"
}
],
"measure_values": {
"ALT": "ALT (SGPT)",
"AST": "AST (SGOT)",
"TB": "Total Bilirubin",
"ALP": "Alkaline Phosphatase"
},
"baseline": {
"value_col": "STUDYDAY",
"values": [
1
]
}
}
[x] R ratio should be calculated based on the selected study day for the "by study day" view. Using the "R Ratio by Visit" chart as a guide, confirm that the R ratio value updates when study day changes.
[x] R ratio should be calculated using the timepoint when AST is maximized on the "max values view". This can be confirmed using id = 5090-02 in \example 2. For that participant, the summary R Ratio value (shown hovering over the point) should be 6.09 - from study day 84, when max ALT occurred. Note that this is not the maximal R Ratio, which was 9.12 from study day 14.
Regression Tests
Chart
[x] Confirm that you can drag horizontal and vertical dotted reference lines, and that the Quadrant table below the chart, the percentages in the annotations in the corners of the chart, and the Reference Line controls update according to the new placement of the chart lines
[x] Confirm that hovering on a data point brings up a (1) tooltip that displays participant details (ID, Visit milestones, r ratio) and (2) small ticks on the x- and y-axis representing the participants measures at each visit. The circle shows the maximum value across all visits should be positioned accordingly relative to the ticks.
[x] Confirm that clicking on a data point makes the circle bold and draws a line between one or more points, depending on how many visits the participant has completed. Each new point has it’s own tool tip with visit-level details.
[x] Confirm that there is a button in the upper left corner, beside the Safety eDish header, labeled Raw Data; and that clicking the button allows you to download the dataset used for the chart
[x] Confirm that boxplots summarizing the distribution of the are drawn to the top and right of the chart, and that hovering over each boxplot shows a tooltip with details.
Participant Details
[x] Confirm that clicking a data point in the chart opens the Participant Details for the selected participant. Three new sections should appear:
Participant Details – horizontal text-based list or participant characteristics
Standardized Lab Values by Visit – Line chart showing key measures
Raw Lab Values Summary Table – Table with small charts summarizing lab values
R Ratio by Visit - Line chart showing R Ratio values for Study Day
[x] Confirm that the Standardized Lab Values by Visit chart has a Select Labs filter that is a multi-select box of labs. Confirm that all labs are selected by default and you can control click to select or deselect labs. Confirm that the chart only shows lines that correspond to the selected labs in the filter.
[x] Confirm that there is a Y-axis Display Type filter that is a drop down that allows you to select between different baseline or upper limit y-axis values.
[x] Confirm that hovering over a line in the Standardized Lab Values by Visit chart displays a reference line for that lab as a dotted line in the chart.
[x] Confirm that each measure in the Raw Lab Values Summary Table section has a sparkline (small chart) that can be clicked on to see an expanded view.
[x] Confirm that clicking the Clear button at the top of the Participant Details section closes the Participant Details view and the Quadrant table is again shown below the main chart.
[ ] Using example 3, confirm that an exposure timeline is shown under the "Standardized Lab Values by Visit" chart when data is provided.
Messages
[x] Confirm that there is a Message section at the top left of the chart, just under the header and download Raw Data button.
[x] Confirm that any relevant messages, such as a Caution message about how many rows were removed from the dataset sue to missing or non-numeric data; or a general caution message against using the chart as the sole determiner for clinical recommendations.
[x] Confirm that shorter summaries for each message are shown by default and that clicking the 3 white dots expands to show the whole message.
[x] Confirm that links to download csv data in messages indicating that data was excluded from the chart work as expected.
[x] Confirm that there is a Clear button that allows the user to clear the messages from display.
Features
[x] Confirm that there is a filter for R Ratio that includes minimum and maximum values along with a reset button.
[x] Confirm that the range is initially set between 0 and the maximum value found in the data.
[x] Confirm that increasing or decreasing the numbers in the boxes updates the chart accordingly to only display points that match the filter.
[x] Confirm that the values automatically sort when entering a min value greater than the max value (or vice versa)
[x] Confirm that the reset button returns the values to the default.
[x] Confirm that an warning is displayed in place of the chart when no participants are selected (e.g. when setting both values greater than the default max)
[x] Confirm that additional data-driven filters appear as specified, and show-hide points as expected.
[x] Confirm that the participant count (“xxx of xxx participants shown”) in the Filters header updates as expected.
[x] Confirm that the Filters section appears on the left side of the chart, below the Messages section
Settings
[x] Confirm that the Settings section appears on the left side of the chart, below the Filters section
[x] Confirm that there is a Group setting dropdown that allows you to change the grouping variable for the chart. When changed, the legend and point color should update accordingly. When ‘None’ is selected, all points should be the same color and the legend above the chart should be removed. (can use the settings object { "group_cols": "SEX" })
[x] Confirm there is a Display Type setting, to set Relative or absolute axes, using a dropdown field that allows for the selection of either “Upper limit of normal adjusted (eDish)” (this is the default) or Baseline adjusted (mDish). Changing this setting should update the chart accordingly (test using settings object {
"baseline": {
"value_col": "VISIT",
"values": [
"Visit 1"
]
}
} ).
[x] Confirm there is an X-axis Measure setting dropdown field that allows the selection of either ALT, AST, or ALP, with each selection updating the x-axis of the chart, as well as the data points shown in the chart.
[x] Confirm there is are “[measure] Reference Line” settings where [measure] is set to one of the key variables (typically TB, ALT, AST, or ASP) depending on the current variables used for the x- and y-axes. Confirm that this field is a box with a number that can be adjusted either by changing the number in the box, or by dragging the x-axis reference dotted line in the chart itself. Changing the number in the box should shift the line in the chart to the appropriate new spot on the x-axis, dragging the line in the chart should update the number in the box to show the axis point to which you dragged the line.
[x] Confirm there is a Point Size setting drop down field that allows for the selection of different measures in the chart to have a larger point radius to make them more visible. The default selection should be Uniform, with the other options being ALT, ASP, ALP, TB.
[x] Confirm there is an Axis Type setting drop down field that allows you to change the chart between linear or log Axes. The default selection should be linear.
[x] Confirm there is a Highlight Points Based on Timing setting number field that updates the chart’s fill points with max values less than X days apart. As you increase the setting number, you should see more points fill in in the chart. Confirm that the footnote regarding timing is shown below the main chart and that it updates when the control is changed (including good grammar for 0 and 1 days).
[x] Confirm there is a Reset Chart button at the bottom of the Settings section that resets the chart to its default view and default Filters and Settings.
Plot Style
[x] Confirm that changing the plot style control shows/hides the study day slider under the chart.
[x] Confirm that changing the plot style control causes the the scatter plot points to update. Using the participants details view, confirm that the point position is correct. Selecting "Max Values" should show the point using max values across all visits, while selecting "By Study Day" should show the points using the most recent values collected on or before the selected study day.
[x] Confirm the study day slider defaults to the first non-negative study day in the data.
[x] Confirm that clicking a different value on the study day slider changes the position of the points
[x] Confirm that all controls (filters, point size, etc) and the participant profile (clicking a point) works in the expected way on the "By Study Day" view
[x] Confirm that clicking the play button starts an animation from the currently selected study day until the end of the study.
[x] Confirm that while the animation is running, a square stop icon is shown instead of the triangular play button.
[x] Confirm that clicking the stop button stops the animation on the current day
[x] Confirm that if the last study is selected on the study day slider, the play button changes to a circular "replay" arrow, and that clicking that button plays the animation from the first study day until the end of the study.
[x] Confirm that any user interaction involving control changes and point clicks while the animation is running, interrupt the animation and cause it to stop on the current date.
[x] Confirm that small points are shown during the animation when the study day is before or after a given participant's study enrollment (as described by the figures footnote).
[x] Confirm that footnotes regarding point size and fill change appropriately when changing plot style
[x] Confirm that point size changes appropriately over the course of the animation when an option other than "Uniform" is selected
R Ratio
[x] Confirm that 'rRatio' has been added as an option under points size, and that the points are sized appropriately when it is clicked.
[x] Confirm that a new 'R Ratio by Visit' chart is visible in the participant details when the point is clicked. The chart should have the following features:
[x] Reference lines at 2 and 5, which should always be visible even when no R Ratio values >2 are present
[x] Exact Study day and r ratio values shown on point mouseover.
Filter to id = 5090-02 and confirm that R ratio values (shown on point mouseover) are correct for each plot type. Use the clinical-trials\renderer-specific\allQuads.csv dataset and this settings object: { "max_width": 600, "value_col": "LBORRES", "measure_col": "TESTNAM", "visit_col": "VISIT", "studyday_col": "STUDYDAY", "normal_col_low": "LBORRESLO", "normal_col_high": "LBORRESHI", "id_col": "SUBJID", "group_cols": [ "TRTA", "SEX" ], "filters": [ { "value_col": "TRTA", "label": "Treatment" }, { "value_col": "SEX", "label": "Sex" }, { "value_col": "SUBJID", "label": "ID" } ], "measure_values": { "ALT": "ALT (SGPT)", "AST": "AST (SGOT)", "TB": "Total Bilirubin", "ALP": "Alkaline Phosphatase" }, "baseline": { "value_col": "STUDYDAY", "values": [ 1 ] } }
[x] R ratio should be calculated based on the selected study day for the "by study day" view. Using the "R Ratio by Visit" chart as a guide, confirm that the R ratio value updates when study day changes.
[x] R ratio should be calculated using the timepoint when AST is maximized on the "max values view". This can be confirmed using id = 5090-02 in \example 2. For that participant, the summary R Ratio value (shown hovering over the point) should be 6.09 - from study day 84, when max ALT occurred. Note that this is not the maximal R Ratio, which was 9.12 from study day 14.
I vote to add it. Researchers might see changes over time that they would miss in the static view. This is a quick way to see the time course. Plus it's really cool. Mike Bostock rocks!
Release summary
New features in v1.1:
Test Notes
Plot Style Control Tests
R Ratio tests
clinical-trials\renderer-specific\allQuads.csv
dataset and this settings object: { "max_width": 600, "value_col": "LBORRES", "measure_col": "TESTNAM", "visit_col": "VISIT", "studyday_col": "STUDYDAY", "normal_col_low": "LBORRESLO", "normal_col_high": "LBORRESHI", "id_col": "SUBJID", "group_cols": [ "TRTA", "SEX" ], "filters": [ { "value_col": "TRTA", "label": "Treatment" }, { "value_col": "SEX", "label": "Sex" }, { "value_col": "SUBJID", "label": "ID" } ], "measure_values": { "ALT": "ALT (SGPT)", "AST": "AST (SGOT)", "TB": "Total Bilirubin", "ALP": "Alkaline Phosphatase" }, "baseline": { "value_col": "STUDYDAY", "values": [ 1 ] } }\example 2
. For that participant, the summary R Ratio value (shown hovering over the point) should be 6.09 - from study day 84, when max ALT occurred. Note that this is not the maximal R Ratio, which was 9.12 from study day 14.Regression Tests
Chart
Participant Details
[x] Confirm that clicking a data point in the chart opens the Participant Details for the selected participant. Three new sections should appear:
[x] Confirm that the Standardized Lab Values by Visit chart has a Select Labs filter that is a multi-select box of labs. Confirm that all labs are selected by default and you can control click to select or deselect labs. Confirm that the chart only shows lines that correspond to the selected labs in the filter.
[x] Confirm that there is a Y-axis Display Type filter that is a drop down that allows you to select between different baseline or upper limit y-axis values.
[x] Confirm that hovering over a line in the Standardized Lab Values by Visit chart displays a reference line for that lab as a dotted line in the chart.
[x] Confirm that each measure in the Raw Lab Values Summary Table section has a sparkline (small chart) that can be clicked on to see an expanded view.
[x] Confirm that clicking the Clear button at the top of the Participant Details section closes the Participant Details view and the Quadrant table is again shown below the main chart.
[ ] Using example 3, confirm that an exposure timeline is shown under the "Standardized Lab Values by Visit" chart when data is provided.
Messages
Features
Settings
Plot Style
R Ratio
[x] Confirm that 'rRatio' has been added as an option under points size, and that the points are sized appropriately when it is clicked.
[x] Confirm that a new 'R Ratio by Visit' chart is visible in the participant details when the point is clicked. The chart should have the following features:
[x] Reference lines at 2 and 5, which should always be visible even when no R Ratio values >2 are present
[x] Exact Study day and r ratio values shown on point mouseover.
Filter to id = 5090-02 and confirm that R ratio values (shown on point mouseover) are correct for each plot type. Use the clinical-trials\renderer-specific\allQuads.csv dataset and this settings object: { "max_width": 600, "value_col": "LBORRES", "measure_col": "TESTNAM", "visit_col": "VISIT", "studyday_col": "STUDYDAY", "normal_col_low": "LBORRESLO", "normal_col_high": "LBORRESHI", "id_col": "SUBJID", "group_cols": [ "TRTA", "SEX" ], "filters": [ { "value_col": "TRTA", "label": "Treatment" }, { "value_col": "SEX", "label": "Sex" }, { "value_col": "SUBJID", "label": "ID" } ], "measure_values": { "ALT": "ALT (SGPT)", "AST": "AST (SGOT)", "TB": "Total Bilirubin", "ALP": "Alkaline Phosphatase" }, "baseline": { "value_col": "STUDYDAY", "values": [ 1 ] } }
[x] R ratio should be calculated based on the selected study day for the "by study day" view. Using the "R Ratio by Visit" chart as a guide, confirm that the R ratio value updates when study day changes.
[x] R ratio should be calculated using the timepoint when AST is maximized on the "max values view". This can be confirmed using id = 5090-02 in \example 2. For that participant, the summary R Ratio value (shown hovering over the point) should be 6.09 - from study day 84, when max ALT occurred. Note that this is not the maximal R Ratio, which was 9.12 from study day 14.