File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,11 @@ def variant_stats(ds: Dataset, merge: bool = True) -> Dataset:
228
228
Genotype call dataset such as from
229
229
`sgkit.create_genotype_call_dataset`.
230
230
merge : bool, optional
231
- If True (the default), merge the input dataset and the computed variables into
232
- a single dataset, otherwise return only the computed variables.
231
+ If True (the default), merge the input dataset and the computed
232
+ output variables into a single dataset. Output variables will
233
+ overwrite any input variables with the same name, and a warning
234
+ will be issued in this case.
235
+ If False, return only the computed output variables.
233
236
234
237
Returns
235
238
-------
@@ -252,4 +255,4 @@ def variant_stats(ds: Dataset, merge: bool = True) -> Dataset:
252
255
allele_frequency (ds ),
253
256
]
254
257
)
255
- return ds . merge ( new_ds ) if merge else new_ds
258
+ return merge_datasets ( ds , new_ds ) if merge else new_ds
You can’t perform that action at this time.
0 commit comments