Skip to content

Commit 14b5846

Browse files
committed
fix errors
1 parent 6935966 commit 14b5846

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

malariagen_data/anoph/hapclust.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
from .snp_data import AnophelesSnpData
2020
from .snp_frq import AA_CHANGE_QUERY, _make_snp_label_effect
2121
from .hap_data import AnophelesHapData
22+
from .dipclust import AnophelesDipClustAnalysis
2223

2324

24-
class AnophelesHapClustAnalysis(AnophelesHapData, AnophelesSnpData):
25+
class AnophelesHapClustAnalysis(
26+
AnophelesHapData, AnophelesSnpData, AnophelesDipClustAnalysis
27+
):
2528
def __init__(
2629
self,
2730
**kwargs,
@@ -342,9 +345,9 @@ def plot_haplotype_clustering_advanced(
342345
self,
343346
region: base_params.regions,
344347
analysis: hap_params.analysis = base_params.DEFAULT,
345-
snp_transcript: dipclust_params.snp_transcript = None,
346-
snp_colorscale: plotly_params.snp_colorscale = "Greys",
347-
snp_filter_min_maf: dipclust_params.snp_filter_min_maf = 0.05,
348+
snp_transcript: Optional[dipclust_params.snp_transcript] = None,
349+
snp_colorscale: Optional[plotly_params.color_continuous_scale] = "Greys",
350+
snp_filter_min_maf: float = 0.05,
348351
snp_query=AA_CHANGE_QUERY,
349352
sample_sets: Optional[base_params.sample_sets] = None,
350353
sample_query: Optional[base_params.sample_query] = None,
@@ -368,7 +371,7 @@ def plot_haplotype_clustering_advanced(
368371
show: plotly_params.show = True,
369372
renderer: plotly_params.renderer = None,
370373
render_mode: plotly_params.render_mode = "svg",
371-
leaf_y: plotly_params.leaf_y = 0,
374+
leaf_y: clustering_params.leaf_y = 0,
372375
marker_size: plotly_params.marker_size = 5,
373376
line_width: plotly_params.line_width = 0.5,
374377
line_color: plotly_params.line_color = "black",

0 commit comments

Comments
 (0)