@@ -39,10 +39,10 @@ This is a non-parametric test that compares the medians of the two classes to de
3939>>> r = stats.mannwhitneyu(x = class1, y = class2, alternative = ' two-sided' )
4040>>> p_value = r.pvalue
4141>>> float (p_value)
42- 6.348081479150902e -06
42+ 6.348081479150...e -06
4343
4444
45- p value of `6.348081479150901e -06 ` suggests a significant difference between the classes.
45+ p value of `6.348081479150e -06 ` suggests a significant difference between the classes.
4646
4747
4848****************
@@ -73,7 +73,7 @@ from a `JSON file <https://github.com/monarch-initiative/gpsea/tree/main/docs/co
7373The cohort was prepared from phenopackets as described in :ref: `create-a-cohort ` section,
7474and then serialized as a JSON file following the instructions in :ref: `cohort-persistence ` section.
7575
76- ..
76+ ..
7777 Prepare the JSON file by running the tests in `tests/tests/test_generate_doc_cohorts.py`.
7878
7979>>> import json
@@ -99,8 +99,8 @@ Genotype predicate
9999------------------
100100
101101*Jordan et al. * compare phenotype of individuals harboring point mutations
102- with the individuals carrying loss of function mutations.
103- Let's create a predicate for testing if the variant
102+ with the individuals carrying loss of function mutations.
103+ Let's create a predicate for testing if the variant
104104is a point mutation or a loss of function mutation.
105105
106106In this example, the point mutation is a mutation that meets the following conditions:
@@ -158,7 +158,7 @@ As far as GPSEA framework is concerned, the phenotype score must be a floating p
158158or a `NaN ` value if the score cannot be computed for an individual.
159159This is the essence of the :class: `~gpsea.analysis.pscore.PhenotypeScorer ` class.
160160
161- GPSEA ships with several builtin phenotype scorers which can be used as
161+ GPSEA ships with several builtin phenotype scorers which can be used as
162162
163163+------------------------------------------------------------+---------------------------------------------+
164164| Name | Description |
@@ -189,7 +189,7 @@ from the following 5 categories:
189189
190190For example, an individual with a congenital heart defect would be assigned a score of `1 `,
191191an individual with congenital heart defect and a renal anomaly would be assigned a score of `2 `,
192- and so on. If an individual had two heart defects (e.g., atrial septal defect and ventricular septal defect),
192+ and so on. If an individual had two heart defects (e.g., atrial septal defect and ventricular septal defect),
193193a score of 1 (not 2) would be assigned for the heart defect category.
194194
195195The :class: `~gpsea.analysis.pscore.CountingPhenotypeScorer ` automatizes this scoring method
@@ -245,7 +245,7 @@ We will put the final analysis together into :class:`~gpsea.analysis.pscore.Phen
245245
246246>>> from gpsea.analysis.pscore import PhenotypeScoreAnalysis
247247>>> score_analysis = PhenotypeScoreAnalysis(
248- ... score_statistic= score_statistic,
248+ ... score_statistic= score_statistic,
249249... )
250250
251251
@@ -265,8 +265,8 @@ In case of the *RERE* cohort, the analysis shows a significant difference
265265between the number of structural defects in individuals
266266with point vs. loss-of-function mutations.
267267
268- >>> result.pval
269- 0.012074957610483744
268+ >>> result.pval # doctest: +ELLIPSIS
269+ 0.0120749576...
270270
271271
272272To explore further, we can access a data frame with genotype categories and phenotype counts:
0 commit comments