Skip to content

Commit 895953b

Browse files
committed
Revert public functions in fst.py, h1x.py to accept positional args
1 parent 9bfedb8 commit 895953b

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

malariagen_data/anoph/fst.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def _fst_gwss(
104104
)
105105
def fst_gwss(
106106
self,
107-
*,
108107
contig: base_params.contig,
109108
window_size: fst_params.window_size,
110109
cohort1_query: base_params.sample_query,
@@ -126,7 +125,7 @@ def fst_gwss(
126125
) -> Tuple[np.ndarray, np.ndarray]:
127126
# Change this name if you ever change the behaviour of this function, to
128127
# invalidate any previously cached data.
129-
name = "fst_gwss_v3"
128+
name = "fst_gwss_v2"
130129

131130
params = dict(
132131
contig=contig,
@@ -164,7 +163,6 @@ def fst_gwss(
164163
)
165164
def plot_fst_gwss_track(
166165
self,
167-
*,
168166
contig: base_params.contig,
169167
window_size: fst_params.window_size,
170168
cohort1_query: base_params.sample_query,
@@ -271,7 +269,6 @@ def plot_fst_gwss_track(
271269
)
272270
def plot_fst_gwss(
273271
self,
274-
*,
275272
contig: base_params.contig,
276273
window_size: fst_params.window_size,
277274
cohort1_query: base_params.sample_query,
@@ -358,7 +355,6 @@ def plot_fst_gwss(
358355
)
359356
def average_fst(
360357
self,
361-
*,
362358
region: base_params.region,
363359
cohort1_query: base_params.sample_query,
364360
cohort2_query: base_params.sample_query,
@@ -428,7 +424,6 @@ def average_fst(
428424
)
429425
def pairwise_average_fst(
430426
self,
431-
*,
432427
region: base_params.region,
433428
cohorts: base_params.cohorts,
434429
sample_sets: Optional[base_params.sample_sets] = None,

malariagen_data/anoph/h1x.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def _h1x_gwss(
102102
)
103103
def h1x_gwss(
104104
self,
105-
*,
106105
contig: base_params.contig,
107106
window_size: h12_params.window_size,
108107
cohort1_query: base_params.sample_query,
@@ -123,7 +122,7 @@ def h1x_gwss(
123122
) -> Tuple[np.ndarray, np.ndarray]:
124123
# Change this name if you ever change the behaviour of this function, to
125124
# invalidate any previously cached data.
126-
name = "h1x_gwss_v2"
125+
name = "h1x_gwss_v1"
127126

128127
params = dict(
129128
contig=contig,
@@ -163,7 +162,6 @@ def h1x_gwss(
163162
)
164163
def plot_h1x_gwss_track(
165164
self,
166-
*,
167165
contig: base_params.contig,
168166
window_size: h12_params.window_size,
169167
cohort1_query: base_params.cohort1_query,
@@ -272,7 +270,6 @@ def plot_h1x_gwss_track(
272270
)
273271
def plot_h1x_gwss(
274272
self,
275-
*,
276273
contig: base_params.contig,
277274
window_size: h12_params.window_size,
278275
cohort1_query: base_params.cohort1_query,

0 commit comments

Comments
 (0)