Skip to content

Commit 1dabb04

Browse files
Issue 191: Align readthedocs with VRS and VA-Spec style of one concept per page (#195)
* Initial refactor * Added Categorical Variant class to Data Model index * Hid table of contents from homepage, like VRS does * Added line break in the data model page * Moved Constraint to concepts root * Added Adjacency and Gene Fusion * Removed raw html elements * Removed duplicate entries in imported/index, subclasses automatically shown * Removed extra exclaimations
1 parent b3e61ca commit 1dabb04

22 files changed

+511
-524
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _CategoricalVariant:
2+
3+
Categorical Variant
4+
!!!!!!!!!!!!!!!!!!!
5+
6+
The Categorical Variant class is the primary class in Cat-VRS. It
7+
depends on one or more :ref:`Constraint <constraints>` elements to create a complete
8+
description of a categorical variant.
9+
10+
.. include:: ../def/cat-vrs/CategoricalVariant.rst
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. _constraint:
2+
3+
Constraint
4+
!!!!!!!!!!
5+
6+
The *Constraint* class is an abstract class that is the parent of all other :ref:`Constraint classes <constraints>`. A constraint is a rule or set of rules that a variant must satisfy to qualify as a valid member of the :ref:`Categorical Variant <CategoricalVariant>`. Constraint subclasses are only used in Categorical Variant objects.
7+
8+
.. include:: ../def/cat-vrs/Constraint.rst
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.. _AdjacencyConstraint:
2+
3+
Adjacency Constraint
4+
!!!!!!!!!!!!!!!!!!!!
5+
6+
Definition and Information Model
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
9+
.. include:: ../../def/cat-vrs/AdjacencyConstraint.rst
10+
11+
Examples
12+
@@@@@@@@
13+
The following are example implementations of AdjacencyConstraint:
14+
15+
.. collapse:: BCR(ncbi:613)::ABL1(ncbi:25)
16+
17+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_adjacencyFusion-ex1
18+
:language: json
19+
:lines: 42-75
20+
21+
.. collapse:: v::NTRK1(hgnc:8031)
22+
23+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_adjacencyFusion-ex2
24+
:language: json
25+
:lines: 15-37
26+
27+
.. collapse:: ?::ZNF384(ncbi:171017)
28+
29+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_adjacencyFusion-ex3
30+
:language: json
31+
:lines: 15-37
32+
33+
.. collapse:: FGFR2(hgnc:3689)::v
34+
35+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_adjacencyFusion-ex4
36+
:language: json
37+
:lines: 15-88
38+
39+
Implementation Guidance
40+
@@@@@@@@@@@@@@@@@@@@@@@
41+
The Adjacency Constraint is similar to `VRS' Adjacency class <https://vrs.ga4gh.org/en/stable/concepts/MolecularVariation/Adjacency.html>`_, except that the `adjoinedElements` field supports data types in addition to :ref:`iriReference` and :ref:`Location`.
42+
43+
We recommend following the `Variant Interpretation for Cancer Consortium's Gene Fusion Specification <https://fusions.cancervariants.org/en/latest/>`_ when modeling a :ref:`GeneFusion` using this constraint. Specifically by:
44+
45+
* Representing `Named Gene Components <https://fusions.cancervariants.org/en/latest/nomenclature.html#named-gene-component>`_ as a :ref:`MappableConcept` with the `conceptType` field set to "Gene"; the `Gene Normalizer <https://gene-normalizer.readthedocs.io>`_ can help.
46+
* Representing `Multiple Possible Gene Components <https://fusions.cancervariants.org/en/latest/nomenclature.html#multiple-possible-gene-component>`_ as a :ref:`UnspecifiedElement` within the Adjacency Constraint. An exhaustive or non-exhaustive list of possible elements can be included as an :ref:`Extension`. We recommend setting the value to be a :ref:`ConceptSet` with the `membershipOperator` field set to "OR".
47+
* Representing an `Unknown Gene Component <https://fusions.cancervariants.org/en/latest/nomenclature.html#unknown-gene-component>`_ as a :ref:`UnspecifiedElement`.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. _CopyChangeConstraint:
2+
3+
Copy Change Constraint
4+
!!!!!!!!!!!!!!!!!!!!!!
5+
6+
Definition and Information Model
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
9+
.. include:: ../../def/cat-vrs/CopyChangeConstraint.rst
10+
11+
Examples
12+
@@@@@@@@
13+
The following are example implementations of Copy Change Constraint:
14+
15+
.. collapse:: Gain
16+
17+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_categoricalCnv-ex2
18+
:language: json
19+
:lines: 43-46
20+
21+
.. collapse:: Loss
22+
23+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_tp53-copy-loss
24+
:language: json
25+
:lines: 99-102
26+
27+
Implementation Guidance
28+
@@@@@@@@@@@@@@@@@@@@@@@
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. _CopyCountConstraint:
2+
3+
Copy Count Constraint
4+
!!!!!!!!!!!!!!!!!!!!!!
5+
6+
Definition and Information Model
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
9+
.. include:: ../../def/cat-vrs/CopyCountConstraint.rst
10+
11+
Examples
12+
@@@@@@@@
13+
The following are example implementations of CopyCountConstraint:
14+
15+
.. collapse:: 3 copies
16+
17+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_categoricalCnv-ex3
18+
:language: json
19+
:lines: 21-24
20+
21+
Implementation Guidance
22+
@@@@@@@@@@@@@@@@@@@@@@@
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.. _DefiningAlleleConstraint:
2+
3+
Defining Allele Constraint
4+
!!!!!!!!!!!!!!!!!!!!!!!!!!
5+
6+
Definition and Information Model
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
9+
.. include:: ../../def/cat-vrs/DefiningAlleleConstraint.rst
10+
11+
Examples
12+
@@@@@@@@
13+
The following are example implementations of DefiningAlleleConstraint:
14+
15+
.. collapse:: NM_004958.4(MTOR):c.5992_5993del (p.Met1998fs)
16+
17+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_canonicalAllele-ex1
18+
:language: json
19+
:lines: 83-172
20+
21+
.. collapse:: NC_000001.11:g.1699974C>G
22+
23+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_canonicalAllele-ex2
24+
:language: json
25+
:lines: 37-112
26+
27+
.. collapse:: EGFR L858R
28+
29+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_proteinSequenceConsequence-ex1
30+
:language: json
31+
:lines: 99-150
32+
33+
.. collapse:: NM_007294.4(BRCA1):c.5558dup (p.Tyr1853Ter)
34+
35+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_proteinSequenceConsequence-ex2
36+
:language: json
37+
:lines: 69-132
38+
39+
Implementation Guidance
40+
@@@@@@@@@@@@@@@@@@@@@@@
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.. _DefiningLocationConstraint:
2+
3+
Defining Location Constraint
4+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5+
6+
Definition and Information Model
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
9+
.. include:: ../../def/cat-vrs/DefiningLocationConstraint.rst
10+
11+
Examples
12+
@@@@@@@@
13+
The following are example implementations of DefiningLocationConstraint:
14+
15+
.. collapse:: GRCh38/hg38 7p22.1(chr7:5905831-6014161)x3
16+
17+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_categoricalCnv-ex1
18+
:language: json
19+
:lines: 47-102
20+
21+
.. collapse:: GRCh38 Xp22.31(chrX:6978350-7594949)x3
22+
23+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_categoricalCnv-ex3
24+
:language: json
25+
:lines: 25-79
26+
27+
.. collapse:: BRAF V600
28+
29+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_braf-v600
30+
:language: json
31+
:lines: 29-68
32+
33+
Implementation Guidance
34+
@@@@@@@@@@@@@@@@@@@@@@@
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.. _FeatureContextConstraint:
2+
3+
Feature Context Constraint
4+
!!!!!!!!!!!!!!!!!!!!!!!!!!
5+
6+
Definition and Information Model
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
9+
.. include:: ../../def/cat-vrs/FeatureContextConstraint.rst
10+
11+
Examples
12+
@@@@@@@@
13+
The following are example implementations of FeatureContextConstraint:
14+
15+
.. collapse:: Gene: TP53
16+
17+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_tp53-copy-loss
18+
:language: json
19+
:lines: 74-98
20+
21+
.. collapse:: Gene: NRAS
22+
23+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_functionVariant-ex1
24+
:language: json
25+
:lines: 10-26
26+
27+
.. collapse:: Gene: BRCA2
28+
29+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_functionVariant-ex2
30+
:language: json
31+
:lines: 10-26
32+
33+
.. collapse:: Gene: PIK3CA
34+
35+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_functionVariant-ex3
36+
:language: json
37+
:lines: 68-83
38+
39+
Implementation Guidance
40+
@@@@@@@@@@@@@@@@@@@@@@@
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.. _FunctionConstraint:
2+
3+
Function Constraint
4+
!!!!!!!!!!!!!!!!!!!!!!
5+
6+
Definition and Information Model
7+
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
8+
9+
.. include:: ../../def/cat-vrs/FunctionConstraint.rst
10+
11+
Examples
12+
@@@@@@@@
13+
The following are example implementations of FunctionConstraint:
14+
15+
.. collapse:: NRAS functionally normal variants
16+
17+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_functionVariant-ex1
18+
:language: json
19+
:lines: 27-43
20+
21+
.. collapse:: BRCA2 loss of function variants
22+
23+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_functionVariant-ex2
24+
:language: json
25+
:lines: 27-43
26+
27+
.. collapse:: PIK3CA p.R38H
28+
29+
.. literalinclude:: ../../../../schema/cat-vrs/json/example_functionVariant-ex3
30+
:language: json
31+
:lines: 84-100
32+
33+
Implementation Guidance
34+
@@@@@@@@@@@@@@@@@@@@@@@
35+
The `functionConsequence` attribute is a :ref:`MappableConcept`, meaning that it should be represented using an externally defined ontology term. We recommend using one of the following defined terms from `The Sequence Ontology <http://www.sequenceontology.org>`_:
36+
37+
* **dominant negative variant** (`SO:0002052 <http://www.sequenceontology.org/browser/current_release/term/SO:0002052>`_ - dominant_negative_variant): A variant where the mutated gene product adversely affects the other (wild type) gene product.
38+
* **functionally normal** (`SO:0002219 <http://www.sequenceontology.org/browser/current_release/term/SO:0002219>`_ - functionally_normal): A sequence variant in which the function of a gene product is retained with respect to a reference.
39+
* **gain of function** (`SO:0002053 <http://www.sequenceontology.org/browser/current_release/term/SO:0002053>`_ - gain_of_function_variant): A sequence variant whereby new or enhanced function is conferred on the gene product.
40+
* **loss of function** (`SO:0002054 <http://www.sequenceontology.org/browser/current_release/term/SO:0002054>`_ - loss_of_function_variant): A sequence variant whereby the gene product has diminished or abolished function.
41+
* **loss of heterozygosity** (`SO:0001786 <http://www.sequenceontology.org/browser/current_release/term/SO:0001786>`_ - loss_of_heterozygosity): A functional variant whereby the sequence alteration causes a loss of function of one allele of a gene.
42+
* **polypeptide partial loss of function** (`SO:0001561 <http://www.sequenceontology.org/browser/current_release/term/SO:0001561>`_ - polypeptide_partial_loss_of_function): A sequence variant that causes some but not all loss of polypeptide function with respect to a reference sequence.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _constraints:
2+
3+
Constraints
4+
!!!!!!!!!!!
5+
6+
Constraints define rules or sets of rules that a :ref:`Categorical Variant <CategoricalVariant>` must satisfy to qualify as a valid member of the Categorical Variant.
7+
8+
See :ref:`Constraint` for the abstract base class.
9+
10+
**Subclasses**
11+
12+
.. toctree::
13+
:titlesonly:
14+
15+
AdjacencyConstraint
16+
CopyChangeConstraint
17+
CopyCountConstraint
18+
DefiningAlleleConstraint
19+
DefiningLocationConstraint
20+
FeatureContextConstraint
21+
FunctionConstraint

0 commit comments

Comments
 (0)