Skip to content

Commit 67d9020

Browse files
authored
Merge branch 'master' into GH410_add_sample_query_options
2 parents ae8ba96 + 9f1db09 commit 67d9020

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

malariagen_data/anoph/fst.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ def plot_fst_gwss(
325325
toolbar_location="above",
326326
merge_tools=True,
327327
sizing_mode=sizing_mode,
328+
toolbar_options=dict(active_inspect=None),
328329
)
329330

330331
if show: # pragma: no cover

malariagen_data/anoph/g123.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ def plot_g123_gwss(
481481
toolbar_location="above",
482482
merge_tools=True,
483483
sizing_mode=sizing_mode,
484+
toolbar_options=dict(active_inspect=None),
484485
)
485486

486487
if show: # pragma: no cover

malariagen_data/anoph/h12.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ def plot_h12_gwss(
505505
toolbar_location="above",
506506
merge_tools=True,
507507
sizing_mode=sizing_mode,
508+
toolbar_options=dict(active_inspect=None),
508509
)
509510

510511
if show: # pragma: no cover

malariagen_data/anoph/h1x.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ def plot_h1x_gwss(
328328
toolbar_location="above",
329329
merge_tools=True,
330330
sizing_mode=sizing_mode,
331+
toolbar_options=dict(active_inspect=None),
331332
)
332333

333334
if show: # pragma: no cover

tests/anoph/test_pca.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_pca_plotting(fixture, api: AnophelesPca):
9696
n_snps = random.randint(4, n_snps_available)
9797
# PC3 required for plot_pca_coords_3d()
9898
assert min(n_samples, n_snps) > 3
99-
n_components = random.randint(3, min(n_samples, n_snps))
99+
n_components = random.randint(3, min(n_samples, n_snps, 10))
100100

101101
# Run the PCA.
102102
pca_df, pca_evr = api.pca(
@@ -184,7 +184,7 @@ def test_pca_exclude_samples(fixture, api: AnophelesPca):
184184
# PCA parameters.
185185
n_samples = ds.sizes["samples"] - n_samples_excluded
186186
n_snps_available = ds.sizes["variants"]
187-
n_snps = random.randint(1, n_snps_available)
187+
n_snps = random.randint(4, n_snps_available)
188188
n_components = random.randint(2, min(n_samples, n_snps, 10))
189189

190190
# Run the PCA.
@@ -245,7 +245,7 @@ def test_pca_fit_exclude_samples(fixture, api: AnophelesPca):
245245
# PCA parameters.
246246
n_samples = ds.sizes["samples"]
247247
n_snps_available = ds.sizes["variants"]
248-
n_snps = random.randint(1, n_snps_available)
248+
n_snps = random.randint(4, n_snps_available)
249249
n_components = random.randint(2, min(n_samples, n_snps, 10))
250250

251251
# Run the PCA.

0 commit comments

Comments
 (0)