Skip to content

Commit e14538f

Browse files
authored
Merge pull request #386 from monarch-initiative/release-0.9.1
Make release `0.9.1`
2 parents a78077a + 0248f6f commit e14538f

File tree

5 files changed

+24
-14
lines changed

5 files changed

+24
-14
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# The short X.Y version.
6464
version = u'0.9'
6565
# The full version, including alpha/beta/rc tags.
66-
release = u'0.9.0'
66+
release = u'0.9.1'
6767

6868
# The language for content autogenerated by Sphinx. Refer to documentation
6969
# for a list of supported languages.

docs/tutorial.rst

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ The diagram also highlights the protein features (domains, repeats, etc.).
216216
Summarize all variant alleles
217217
-----------------------------
218218

219-
We can prepare a table of all variant alleles that occurr in the cohort.
219+
We can prepare a table of all variant alleles that occur in the cohort.
220220

221221
Each table row corresponds to a single allele and lists the variant key,
222222
the predicted effect on the transcript (*cDNA*) and protein of interest,
@@ -240,11 +240,25 @@ with one or more variant alleles (*Count*):
240240
Partition the cohort by genotype and phenotype
241241
==============================================
242242

243-
To test for genotype-phenotype associations, we need to divide the cohort into classes.
244-
In GPSEA, we always assign a cohort member into a genotype class,
245-
where each individual is assigned into a single class and the classes do not overlap.
246-
The phenotype is then used to either assign an individual into a class,
247-
or to calculate a numeric score or survival.
243+
Testing for a genotype-phenotype association uses genotype and phenotype as variables.
244+
In GPSEA, the variable value for an individual is computed
245+
either by a :class:`~gpsea.analysis.clf.Classifier`
246+
or by a :class:`~gpsea.analysis.pscore.PhenotypeScorer`.
247+
A `Classifier` assigns the individual into a class,
248+
whereas a `PhenotypeScorer` computes a continuous score.
249+
The classifiers and scorers are applied on all individuals of the cohort
250+
and the resulting variable distributions are then assessed by a statistical test.
251+
252+
In GPSEA, genotype is always treated as a class
253+
and a genotype `Classifier` is a prerequisite for each analysis.
254+
However, there is much more flexibility on the phenotype part,
255+
where either a `Classifier` or a `PhenotypeScorer` can be used to compute the values,
256+
depending on the analysis goals.
257+
258+
In this tutorial section, we first configure a `Classifier` for assigning
259+
the individuals into a genotype class,
260+
and we follow with generating classifiers for testing the presence or exclusion
261+
of HPO terms in the individuals.
248262

249263

250264
Partition by genotype

docs/user-guide/analyses/partitioning/phenotype/hpo_predicate.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function cuts down the tedium.
7171
Example
7272
-------
7373

74-
For a phenopacket collection (e.g. 156 patients with mutations in *WWOX* gene included in Phenopacket Store version `0.1.18`)
74+
For a phenopacket collection (e.g. 156 patients with mutations in *TBX5* gene included in Phenopacket Store version `0.1.18`)
7575

7676
>>> from ppktstore.registry import configure_phenopacket_registry
7777
>>> registry = configure_phenopacket_registry()

src/gpsea/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
GPSEA is a library for finding genotype-phenotype associations.
33
"""
44

5-
__version__ = "0.9.0"
5+
__version__ = "0.9.1"
66

77
_overwrite = False
88
"""

src/gpsea/view/_protein_visualizer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,7 @@ def draw_axes(ax, x_ticks, x_ticks_relative, y_ticks, max_marker_count,
510510
"# Variants", y_axis_x - 0.05, (y_axis_min_y + y_axis_max_y) / 2,
511511
fontsize=font_size, ha='center', va='center', rotation=90,
512512
)
513-
draw_string( # x axis label
514-
ax,
515-
"# Codons", (x_axis_min_x + x_axis_max_x) / 2, x_axis_y - 0.05,
516-
fontsize=font_size, ha='center', va='center', rotation=0,
517-
)
513+
# Note that we do not label the X-axis, the meaning will be obvious to users (amino acid residues)
518514
# draw y ticks
519515
draw_line( # 0 tick
520516
ax,

0 commit comments

Comments
 (0)