Skip to content

Commit 672b549

Browse files
Add PhenotypeDataMixin: support phenotype data access in Ag3
1 parent a39a3c1 commit 672b549

2 files changed

Lines changed: 390 additions & 2 deletions

File tree

malariagen_data/ag3.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import dask
44
import pandas as pd # type: ignore
55
import plotly.express as px # type: ignore
6-
76
import malariagen_data
87
from .anopheles import AnophelesDataResource
8+
from .anoph.phenotypes import PhenotypeDataMixin
99

1010

1111
# silence dask performance warnings
@@ -78,7 +78,7 @@ def _setup_aim_palettes():
7878
}
7979

8080

81-
class Ag3(AnophelesDataResource):
81+
class Ag3(AnophelesDataResource, PhenotypeDataMixin):
8282
"""Provides access to data from Ag3.x releases.
8383
8484
Parameters
@@ -135,6 +135,7 @@ class Ag3(AnophelesDataResource):
135135

136136
_xpehh_gwss_cache_name = XPEHH_GWSS_CACHE_NAME
137137
_ihs_gwss_cache_name = IHS_GWSS_CACHE_NAME
138+
_phenotype_gcs_path_template = "gs://vo_agam_release_master_us_central1/v3.2/phenotypes/all/{sample_set}/phenotypes.csv"
138139

139140
def __init__(
140141
self,

0 commit comments

Comments
 (0)