You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/analyses/phenotype-scores.rst
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,17 +121,19 @@ In this example, the point mutation is a mutation that meets the following condi
121
121
'((change length == 0 AND reference allele length == 1) AND MISSENSE_VARIANT on NM_001042681.2)'
122
122
123
123
124
-
For the loss of function predicate, the following variant effects are considered loss of function:
124
+
For the loss-of-function predicate, the following is a non-exhausting list
125
+
of variant effects considered as a loss-of-function:
125
126
126
127
>>> lof_effects = (
128
+
... VariantEffect.TRANSCRIPT_TRANSLOCATION,
127
129
... VariantEffect.TRANSCRIPT_ABLATION,
128
130
... VariantEffect.FRAMESHIFT_VARIANT,
129
131
... VariantEffect.START_LOST,
130
132
... VariantEffect.STOP_GAINED,
131
133
... )
132
134
>>> lof_mutation = anyof(variant_effect(eff, tx_id) for eff in lof_effects)
133
135
>>> lof_mutation.description
134
-
'(TRANSCRIPT_ABLATION on NM_001042681.2 OR FRAMESHIFT_VARIANT on NM_001042681.2 OR START_LOST on NM_001042681.2 OR STOP_GAINED on NM_001042681.2)'
136
+
'(TRANSCRIPT_TRANSLOCATION on NM_001042681.2 OR TRANSCRIPT_ABLATION on NM_001042681.2 OR FRAMESHIFT_VARIANT on NM_001042681.2 OR START_LOST on NM_001042681.2 OR STOP_GAINED on NM_001042681.2)'
135
137
136
138
137
139
The genotype predicate will bin the patient into two classes: a point mutation or the loss of function:
@@ -154,6 +156,26 @@ Phenotype score
154
156
This component is responsible for computing a phenotype score for an individual.
155
157
As far as GPSEA framework is concerned, the phenotype score must be a floating point number
156
158
or a `NaN` value if the score cannot be computed for an individual.
159
+
This is the essence of the :class:`~gpsea.analysis.pscore.PhenotypeScorer` class.
160
+
161
+
GPSEA ships with several builtin phenotype scorers which can be used as
0 commit comments