bb8db448470551c15c9b0ddab573a0c8e2e6303a,deepvariant/vcf_stats_vis.py,,_build_type_chart,#Any#,85
Before Change
def _build_type_chart(stats):
Create a chart of the counts of each variant type.
type_labels = ["Insertion", "Deletion", "SNV", "Complex"]
type_data = stats[stats["label"].isin(type_labels)]
type_chart = alt.Chart(type_data).mark_bar().encode(
x=alt.X(
"label", title=None, sort=type_labels, axis=alt.Axis(labelAngle=0)),
After Change
legend=None,
sort=ordered_variant_type_labels,
scale=alt.Scale(scheme="set1")))
labels = alt.Chart(variant_type_counts).mark_text(dy=-5).encode(
x="label", y="value", text=alt.Text("value", format=".4s"))
type_chart = (bars + labels).properties(
width=400, height=200, title="Variant types")
return type_chart
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: google/deepvariant
Commit Name: bb8db448470551c15c9b0ddab573a0c8e2e6303a
Time: 2019-09-18
Author: cym@google.com
File Name: deepvariant/vcf_stats_vis.py
Class Name:
Method Name: _build_type_chart
Project Name: hanxiao/bert-as-service
Commit Name: 5a50af91cec0fa12b8259abb44606b7b336ed620
Time: 2018-11-08
Author: hanhxiao@tencent.com
File Name: client_example.py
Class Name:
Method Name:
Project Name: asyml/texar
Commit Name: 80e9e26deca028ef6b1b51c307b61bb305dc9b1c
Time: 2017-09-04
Author: zhitinghu@gmail.com
File Name: txtgen/data/embedding_test.py
Class Name: EmbeddingTest
Method Name: test_load_glove