e2eab73f998e1ba9d3c47f2c96aa84027ec58c17,deepvariant/vcf_stats_vis.py,,_build_indel_size_chart,#Any#,243
Before Change
def _build_indel_size_chart(vis_data):
Create the indel size chart.
indel_size_data = pd.DataFrame(
vis_data["indel_sizes"], columns=["size", "count"])
indel_size_data["type"] = np.where(indel_size_data["size"] > 0, "Insertions",
"Deletions")
// using "size" alone makes bars overlap slightly, so instead use bin_start and
// bin_end to force each bar to cover exactly one integer position:
After Change
height = 100
placeholder_height = (2 * height) + 20 // 2 charts, plus spacing
title = "Biallelic indel size distribution"
ordered_labels = ["Insertion", "Deletion"]
indel_size_data = _integer_counts_to_histogram(data)
indel_size_data["type"] = np.where(indel_size_data["s"] > 0, "Insertion",
"Deletion")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
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_indel_size_chart
Project Name: ClimbsRocks/auto_ml
Commit Name: 343a835a26b6fbf1b7bd62965b74ed2d688319a5
Time: 2016-12-08
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils_ensemble.py
Class Name: Ensemble
Method Name: get_summary_stats
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
Project Name: streamlit/streamlit
Commit Name: aa8a7efd83e323856ca48742cb44a2fcb84b6bea
Time: 2018-04-24
Author: adrien.g.treuille@gmail.com
File Name: examples/scratchpad.py
Class Name:
Method Name: