e2eab73f998e1ba9d3c47f2c96aa84027ec58c17,deepvariant/vcf_stats_vis.py,,_build_base_change_chart,#Any#,223

Before Change


def _build_base_change_chart(vis_data):
  Create the base change chart.
  base_change_data = pd.DataFrame(
      vis_data["base_changes"], columns=["ref", "alt", "Count"])

  bars = alt.Chart(base_change_data).mark_bar().encode(
      x=alt.X("alt", title="to alt"),

After Change



def _build_base_change_chart(data):
  Create the base change chart.
  width = 100
  height = 200
  placeholder_width = (4 * width) + 80  // 4 charts, plus constant spacing
  title = "Biallelic base changes from reference"
  base_change_data = pd.DataFrame(data, columns=["ref", "alt", "count"])

  base_change_chart = _placeholder_for_empty_chart(
      "No biallelic SNPs", width=placeholder_width, height=height, title=title)
  if not base_change_data.empty:
    bars = alt.Chart(base_change_data).mark_bar().encode(
        x=alt.X("alt", title="to alt"),
        y=alt.Y("count", title="Count", axis=alt.Axis(format="s")),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: google/deepvariant
Commit Name: e2eab73f998e1ba9d3c47f2c96aa84027ec58c17
Time: 2019-09-27
Author: marianattestad@google.com
File Name: deepvariant/vcf_stats_vis.py
Class Name:
Method Name: _build_base_change_chart


Project Name: google/deepvariant
Commit Name: e2eab73f998e1ba9d3c47f2c96aa84027ec58c17
Time: 2019-09-27
Author: marianattestad@google.com
File Name: deepvariant/vcf_stats_vis.py
Class Name:
Method Name: _build_qual_histogram


Project Name: google/deepvariant
Commit Name: e2eab73f998e1ba9d3c47f2c96aa84027ec58c17
Time: 2019-09-27
Author: marianattestad@google.com
File Name: deepvariant/vcf_stats_vis.py
Class Name:
Method Name: _build_indel_size_chart


Project Name: google/deepvariant
Commit Name: e2eab73f998e1ba9d3c47f2c96aa84027ec58c17
Time: 2019-09-27
Author: marianattestad@google.com
File Name: deepvariant/vcf_stats_vis.py
Class Name:
Method Name: _build_gq_histogram