Skip to content

Commit b67d3e5

Browse files
committed
Change wording, fix pc_relate signature
1 parent 78e1244 commit b67d3e5

File tree

6 files changed

+22
-23
lines changed

6 files changed

+22
-23
lines changed

sgkit/stats/aggregation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ def variant_stats(
256256
:func:`sgkit.create_genotype_call_dataset`.
257257
call_genotype
258258
Input variable name holding call_genotype.
259-
As defined by :data:`sgkit.variables.call_genotype`.
259+
Defined by :data:`sgkit.variables.call_genotype`.
260260
call_genotype_mask
261261
Input variable name holding call_genotype_mask.
262-
As defined by :data:`sgkit.variables.call_genotype_mask`
262+
Defined by :data:`sgkit.variables.call_genotype_mask`
263263
variant_allele_count
264264
Optional name of the input variable holding variant_allele_count,
265265
as defined by :data:`sgkit.variables.variant_allele_count`.

sgkit/stats/association.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ def gwas_linear_regression(
138138
Dataset containing necessary dependent and independent variables.
139139
dosage
140140
Name of genetic dosage variable.
141-
As defined by :data:`sgkit.variables.dosage`.
141+
Defined by :data:`sgkit.variables.dosage`.
142142
covariates
143143
Names of covariate variables (1D or 2D).
144-
As defined by :data:`sgkit.variables.covariates`.
144+
Defined by :data:`sgkit.variables.covariates`.
145145
traits
146146
Names of trait variables (1D or 2D).
147-
As defined by :data:`sgkit.variables.traits`.
147+
Defined by :data:`sgkit.variables.traits`.
148148
add_intercept
149149
Add intercept term to covariate set, by default True.
150150
merge

sgkit/stats/hwe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ def hardy_weinberg_test(
146146
(in that order) across all samples for a variant.
147147
call_genotype
148148
Input variable name holding call_genotype.
149-
As defined by :data:`sgkit.variables.call_genotype`.
149+
Defined by :data:`sgkit.variables.call_genotype`.
150150
call_genotype_mask
151151
Input variable name holding call_genotype_mask.
152-
As defined by :data:`sgkit.variables.call_genotype_mask`
152+
Defined by :data:`sgkit.variables.call_genotype_mask`
153153
merge
154154
If True (the default), merge the input dataset and the computed
155155
output variables into a single dataset, otherwise return only

sgkit/stats/pc_relate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def _collapse_ploidy(
3434

3535
def pc_relate(
3636
ds: xr.Dataset,
37-
maf: float = 0.01,
3837
*,
38+
maf: float = 0.01,
3939
call_genotype: str = "call_genotype",
4040
call_genotype_mask: str = "call_genotype_mask",
4141
sample_pcs: str = "sample_pcs",
@@ -82,13 +82,13 @@ def pc_relate(
8282
The default value is 0.01. Must be between (0.0, 0.1).
8383
call_genotype
8484
Input variable name holding call_genotype.
85-
As defined by :data:`sgkit.variables.call_genotype`.
85+
Defined by :data:`sgkit.variables.call_genotype`.
8686
call_genotype_mask
8787
Input variable name holding call_genotype_mask.
88-
As defined by :data:`sgkit.variables.call_genotype_mask`
88+
Defined by :data:`sgkit.variables.call_genotype_mask`
8989
sample_pcs
9090
Input variable name holding sample_pcs.
91-
As defined by :data:`sgkit.variables.sample_pcs`
91+
Defined by :data:`sgkit.variables.sample_pcs`
9292
merge
9393
If True (the default), merge the input dataset and the computed
9494
output variables into a single dataset, otherwise return only

sgkit/stats/popgen.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def diversity(
3030
Genotype call dataset.
3131
call_genotype
3232
Input variable name holding call_genotype.
33-
As defined by :data:`sgkit.variables.call_genotype`.
33+
Defined by :data:`sgkit.variables.call_genotype`.
3434
allele_counts
3535
allele counts to use or calculate, as defined by
3636
:data:`sgkit.variables.variant_allele_count`
@@ -73,7 +73,7 @@ def divergence(
7373
Genotype call dataset.
7474
call_genotype
7575
Input variable name holding call_genotype.
76-
As defined by :data:`sgkit.variables.call_genotype`.
76+
Defined by :data:`sgkit.variables.call_genotype`.
7777
allele_counts
7878
allele counts to use or calculate, as defined by
7979
:data:`sgkit.variables.variant_allele_count`
@@ -123,7 +123,7 @@ def Fst(
123123
Genotype call dataset.
124124
call_genotype
125125
Input variable name holding call_genotype.
126-
As defined by :data:`sgkit.variables.call_genotype`.
126+
Defined by :data:`sgkit.variables.call_genotype`.
127127
allele_counts
128128
allele counts to use or calculate, as defined by
129129
:data:`sgkit.variables.variant_allele_count`
@@ -155,15 +155,14 @@ def Tajimas_D(
155155
Genotype call dataset.
156156
call_genotype
157157
Input variable name holding call_genotype.
158-
As defined by :data:`sgkit.variables.call_genotype`.
158+
Defined by :data:`sgkit.variables.call_genotype`.
159159
allele_counts
160160
allele counts to use or calculate, as defined by
161161
:data:`sgkit.variables.variant_allele_count`
162162
163163
Returns
164164
-------
165165
Tajimas' D value.
166-
167166
"""
168167
if allele_counts not in ds:
169168
variables.validate(ds, {call_genotype: variables.call_genotype})

sgkit/stats/regenie.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -755,16 +755,16 @@ def regenie(
755755
----------
756756
dosage
757757
Name of genetic dosage variable.
758-
As defined by :data:`sgkit.variables.dosage`.
758+
Defined by :data:`sgkit.variables.dosage`.
759759
covariates
760760
Names of covariate variables (1D or 2D).
761-
As defined by :data:`sgkit.variables.covariates`.
761+
Defined by :data:`sgkit.variables.covariates`.
762762
traits
763763
Names of trait variables (1D or 2D).
764-
As defined by :data:`sgkit.variables.traits`.
764+
Defined by :data:`sgkit.variables.traits`.
765765
variant_contig
766766
Name of the variant contig input variable.
767-
As definied by :data:`sgkit.variables.variant_contig`.
767+
Definied by :data:`sgkit.variables.variant_contig`.
768768
variant_block_size
769769
Number of variants in each block.
770770
If int, this describes the number of variants in each block
@@ -808,17 +808,17 @@ def regenie(
808808
A dataset containing the following variables:
809809
810810
- `base_prediction` (blocks, alphas, samples, outcomes): Stage 1
811-
predictions from ridge regression reduction. As defined by
811+
predictions from ridge regression reduction. Defined by
812812
:data:`sgkit.variables.base_prediction`.
813813
814814
- `meta_prediction` (samples, outcomes): Stage 2 predictions from
815815
the best meta estimator trained on the out-of-sample Stage 1
816-
predictions. As defined by :data:`sgkit.variables.meta_prediction`.
816+
predictions. Defined by :data:`sgkit.variables.meta_prediction`.
817817
818818
- `loco_prediction` (contigs, samples, outcomes): LOCO predictions
819819
resulting from Stage 2 predictions ignoring effects for variant
820820
blocks on held out contigs. This will be absent if the
821-
data provided does not contain at least 2 contigs. As defined by
821+
data provided does not contain at least 2 contigs. Defined by
822822
:data:`sgkit.variables.loco_prediction`.
823823
824824
Raises

0 commit comments

Comments
 (0)