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)),
y=alt.Y("value", axis=alt.Axis(title="Count", format="s")),
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
def _build_tt_chart(stats, tt_ratio):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: CyberZHG/keras-bert
Commit Name: 2df9a66ac40d1017792b1c93f34e47e214726d7d
Time: 2019-03-18
Author: CyberZHG@gmail.com
File Name: demo/load_model/load_and_pool.py
Class Name:
Method Name:
Project Name: CyberZHG/keras-bert
Commit Name: 2df9a66ac40d1017792b1c93f34e47e214726d7d
Time: 2019-03-18
Author: CyberZHG@gmail.com
File Name: demo/load_model/load_and_extract.py
Class Name:
Method Name: