Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
379e565
Use hgvs_position_model dataclass for HGVS position results
Feb 19, 2026
bbd38da
Add function to convert from tuple to HGVSPositionModel
Feb 19, 2026
5122c55
Refactor(locus):return dict position model and update test
Feb 20, 2026
836d7d3
Refactor(multi_locus):return dict position model and update test
Feb 20, 2026
89cdba7
Fix typo
Feb 20, 2026
2d4e2eb
Refactor(crossmapper): convert Genomic to dict-based position model
Feb 20, 2026
923cd9f
Refactor(crossmapper): convert NonCoding to dict-based position model
Feb 20, 2026
259481b
Refactor (locus, multi_locus): allow 'u', 'd' for UTR areas in hgvs m…
Feb 20, 2026
55fd346
Refactor test modules for Genomic and NonCoding
Feb 20, 2026
84127e5
Remove 'region' in locus position model
Feb 26, 2026
eb6ce9b
Refactor(multi_locus): replace tuple with dict
Feb 26, 2026
7d7bc9b
Refactor crossmapper and tests, allow ''/*/- in position model for Co…
Feb 26, 2026
0433303
Refactor(multi_locus): degenerate positions for multi_locus and tests
Feb 26, 2026
a583f00
Refactor(crossmapper): implement hgvs position model for protein and …
Feb 27, 2026
a57a3e6
Refactor(crossmapper): discard degenerate option
Mar 5, 2026
d245cd6
Change examples in README.
Mar 5, 2026
89559e4
Discard dataclass object for hgvs position model
Mar 6, 2026
08739ff
Refactor(crossmapper): allow degenerate option for 'u' and 'd' area
Mar 6, 2026
fecf026
Cleanup(locus)
Mar 9, 2026
54746ec
Cleanup(multi_locus)
Mar 9, 2026
5ba6a5a
Cleanup(multi_locus)
Mar 9, 2026
7f32afc
Format(multi locus test)
Mar 9, 2026
e23fe2a
Cleanup(crossmapper): on Genomic and NonCoding
Mar 9, 2026
8f05341
Cleanup
Mar 9, 2026
09f721f
Refactor degenerate tests
Mar 10, 2026
abead48
Add position model description for g.,n.,c.,and p.
Mar 10, 2026
b528f92
Format document
Mar 10, 2026
6c1b52e
Format document
Mar 10, 2026
b871601
Format document
Mar 10, 2026
9e91d1d
Format document in .rst style
Mar 10, 2026
35359b8
Format document in .rst style
Mar 10, 2026
d48f99d
Format and add an example
Mar 10, 2026
d16278b
Add table for Genomic positions and coordinate mapping
Mar 10, 2026
b29309a
Format table
Mar 10, 2026
d1c4c2f
Format table
Mar 10, 2026
7966a14
Format table
Mar 10, 2026
035c479
Add tables
Mar 10, 2026
f116376
Fix table syntax
Mar 10, 2026
89787e6
Fix table syntax
Mar 10, 2026
5e601dc
Fix table syntax
Mar 10, 2026
751bc3b
Fix table syntax
Mar 10, 2026
9d156c8
Fix table indent
Mar 10, 2026
ebbb90a
Update README.rst
XLIU-hub Mar 10, 2026
9ffa9bf
Make scrollable tables in README
XLIU-hub Mar 10, 2026
90f3d71
Update README.rst
XLIU-hub Mar 10, 2026
93f59ca
Update README.rst
XLIU-hub Mar 10, 2026
0ef6003
Format table
Mar 10, 2026
2704e52
Use code block for table
XLIU-hub Mar 10, 2026
78183fd
Update README.rst
XLIU-hub Mar 10, 2026
03309a8
Refactor: crossmapper and tests for degenerate option
Mar 10, 2026
fccc275
Add surpport for degenerate position model as input
Mar 11, 2026
00e98bd
Add degenerate tests
Mar 11, 2026
e281d64
Cleanup
Mar 11, 2026
925cb56
Cleanup
Mar 11, 2026
5f2bef7
Local copy before checkout
Mar 11, 2026
55fe797
Update table for Genomic and NonCoding classes in document
XLIU-hub Mar 11, 2026
a2003b3
Update table for Coding class in document
XLIU-hub Mar 11, 2026
4d9089a
Add HGVS column in coding table
XLIU-hub Mar 11, 2026
1542894
Fix sytax
XLIU-hub Mar 11, 2026
75a5cba
Update protein example in document
XLIU-hub Mar 11, 2026
b0ed66f
Add protein table in document
XLIU-hub Mar 12, 2026
16e9a62
Fix typo
XLIU-hub Mar 12, 2026
d6c868d
Add tests
Mar 13, 2026
9f24c53
Merge branch 'tuple_to_dataclass' of github.com:mutalyzer/crossmapper…
Mar 13, 2026
41bd3d5
Refactor crossmap
Mar 13, 2026
1752363
Cleanup
Mar 13, 2026
31f483a
Cleanup
Mar 13, 2026
eeacf85
Cleanup
Mar 13, 2026
bb8ee66
Cleanup
Mar 13, 2026
87f507d
Add missing tests
Mar 13, 2026
e5d7342
Add missing tests
Mar 13, 2026
53954d3
Refactor
Mar 13, 2026
6cb7d32
Cleanup
Mar 20, 2026
3e32bb9
Cleanup and add tests
Mar 20, 2026
186e2a6
Update tables in documentation
XLIU-hub Mar 20, 2026
617b126
Update README.rst
XLIU-hub Mar 20, 2026
4fddbc3
Use single quate for dictionary
Mar 20, 2026
2c7d005
Merge branch 'tuple_to_dataclass' of github.com:mutalyzer/crossmapper…
Mar 20, 2026
f85b25f
Delete table
XLIU-hub Mar 20, 2026
ca4379e
Update README.rst
XLIU-hub Mar 20, 2026
072719d
Update library, replace tuple with dictionary
Mar 20, 2026
69c81c2
Merge branch 'tuple_to_dataclass' of github.com:mutalyzer/crossmapper…
Mar 20, 2026
fba6b95
Use python code block in library.rst
XLIU-hub Mar 20, 2026
ca45f67
Update library.rst
XLIU-hub Mar 20, 2026
e4e1642
Update library.rst
XLIU-hub Mar 20, 2026
b630851
Update library.rst
XLIU-hub Mar 20, 2026
a0514c8
Update library.rst
XLIU-hub Mar 20, 2026
21ce8dd
Update library.rst
XLIU-hub Mar 20, 2026
6fc7709
Update library.rst
XLIU-hub Mar 20, 2026
1693bab
Update library.rst
XLIU-hub Mar 20, 2026
9bb4501
Add backticks
Mar 20, 2026
9ceea41
Merge branch 'tuple_to_dataclass' of github.com:mutalyzer/crossmapper…
Mar 20, 2026
691ec35
Cleanup
Mar 20, 2026
bcf7bd2
Cleanup, use '' in dictionary
Mar 20, 2026
2f167e0
Cleanup, use typings
Mar 20, 2026
ac0cd16
Cleanup
Mar 23, 2026
2ebf6c9
Cleanup
Mar 23, 2026
f2e8efa
Stop trackinhg local file
Mar 23, 2026
4e6443c
Delete tmp files from branch
Mar 23, 2026
8deedc1
Cleanup
Mar 23, 2026
f5f7a51
Refactor protein conversion
Mar 23, 2026
79cbcc0
Add degenerate tests
Mar 23, 2026
1459451
Add backticks for region in table
Mar 23, 2026
e92c78e
Cleanup
Mar 23, 2026
f810567
Discard normalize position model
Mar 25, 2026
c5d7732
Fix test
Mar 25, 2026
49ecb5f
Add degenerate for NonCoding
Mar 26, 2026
7849195
Add tests for degenerate in NonCoding
Mar 26, 2026
7c3cdde
Update document
Mar 26, 2026
651d170
Formatting
Mar 26, 2026
21f8458
Update library.rst
XLIU-hub Mar 26, 2026
34d0844
Fix typo
Mar 26, 2026
8873a77
Update .gitignore
XLIU-hub Mar 26, 2026
c9e58c6
Set upstream and downstream in multilocus as 0 based
Mar 27, 2026
783223d
Fix typing mistake
Mar 27, 2026
a7196f4
Use importlib instead of pkg_resources
XLIU-hub Mar 27, 2026
88ce74f
Fix typing and single quote
Mar 30, 2026
6d5e282
Fix doc string
Mar 30, 2026
8fba978
Update python version in setup
Mar 30, 2026
2867ea8
Rename multilocus positon model
Mar 30, 2026
12229cd
Remove unneccessary elif
Mar 30, 2026
c6455e9
Fix flake8 whitespace issues
Mar 30, 2026
12e8e1f
Fix whitespaces
Mar 30, 2026
e2f2a43
Add tests for protein positions from the reverse strand
Mar 30, 2026
50d50b5
Rename external (input/output) variable to pos_m and add test for a o…
Mar 31, 2026
73e2965
Fix typo and font
Mar 31, 2026
3ec8ab4
Update degenerate for noncoding and tests
Apr 1, 2026
ba091d5
Update degenerate for noncoding example in documentation
Apr 1, 2026
39d1d6b
Discard unneccessary functions for coding
Apr 1, 2026
915e845
Cleanup
Apr 1, 2026
69eb985
Fix error for inverted coding
Apr 1, 2026
c08b52b
Treat upstream and downstream as introns.
May 7, 2026
87818ca
Local change before swith branch
May 8, 2026
917d509
Local change before swith branch
May 8, 2026
e205144
Implement changes in upstream and downstream, degenerate option; add …
May 11, 2026
07c537b
Update documentation for upstream and downstream regions
May 11, 2026
3f18bdb
Reshape outputs from downstream regions and add tests.
May 12, 2026
f73893c
Add tests for degenerate return in small UTR regions
May 13, 2026
6cc6f5a
Formatting according to pylint
May 26, 2026
ebd0cd3
Formatting.
May 26, 2026
562d7b8
Remove git conflict.
May 26, 2026
136bb18
Discard local variable for degenerate and handle '*' explicitly.
May 26, 2026
327c7dd
Fix typo in tests.
May 26, 2026
67f7242
Formatting locus module.
May 27, 2026
b4f3f84
Formatting and renaming local variables.
May 27, 2026
d4aea66
Crossmapper:Formatting and renaming local variables.
May 27, 2026
935bbdb
Rename function to_position to to_point and add whitespace around = i…
May 29, 2026
a20096d
Undo rename from to_position to to_point and update format.
May 29, 2026
910c291
Formatting
May 29, 2026
d8e7834
Add genomic, noncoding, coding and protein dataclasses
Jun 12, 2026
34d0c9a
Remove tests values for noncoding degenerate.
Jun 12, 2026
ff5c8b5
Add dataclass internally.
Jun 19, 2026
cfb9107
Update error raise, add dataclass serialization and use single quate.
Jun 19, 2026
dc93f87
Update to use dataclass, add a return in Coding class to avoid interm…
Jun 19, 2026
5cc99a8
Use dataclass point as the basic unit.
Jun 19, 2026
4be2bc3
Update tests to use dataclass.
Jun 19, 2026
157b92f
Formatting.
Jun 19, 2026
dc418ee
Update docstring.
Jun 23, 2026
132533b
multi_locus: update docstring for dataclass usage.
Jun 23, 2026
c8b4e66
test_models: Add tests for dataclass models.
Jun 23, 2026
a6d8393
Update models and use Point dataclass when use locus/multilocus modules.
Jun 23, 2026
b4aae45
Move dataclass from models to locus and crossmapper.
Jun 24, 2026
1ac6274
Correct import.
Jun 24, 2026
7bbabe4
Fix typing error and add test in CI.
Jun 25, 2026
08f2261
Test importlib_metadata to avoid mypy error from python v3.10 and v3.11.
Jun 25, 2026
a9fdf97
Discard redundant checking and overwrite serialization for ProteinPoint.
Jul 1, 2026
a912455
Use back metadata in importlib.
Jul 7, 2026
cc65a7b
Multi_locus: Add checks to validate input coordinate and input point.
Jul 7, 2026
d2200e3
Locus.py: Add checks.
Jul 17, 2026
d10f1b8
Add checks in locus module.
Aug 14, 2026
7aa63cc
Add checks in multi_locus module.
Aug 14, 2026
b0f40c6
Move checks from checker to locus module.
Aug 18, 2026
af7f7f7
Cleanup.
Aug 18, 2026
315c9e3
Delete checker module and place checks parsely.
Aug 18, 2026
692b9bd
Change locus length to one based.
Aug 18, 2026
c432129
Add checks in multi_locus module and its tests.
Aug 18, 2026
c3c4984
Rephrase error message.
Aug 18, 2026
a188472
Add Coord, multi_locus Point dataclass.
Aug 19, 2026
30a2bb1
Update documentation.
Aug 19, 2026
e9a99a5
Move Corrd into locus.
Aug 19, 2026
e748ef5
WIP: Add checks in crossmaper and tests.
Aug 19, 2026
374ae43
WIP: Add checks in crossmaper and tests.
Aug 19, 2026
eff9152
Fix test.
Aug 19, 2026
8f47500
Fix test.
Aug 19, 2026
d109d17
Fix typings.
Aug 19, 2026
d997766
Fix use PackageMetadata indexing instead of get.
Aug 21, 2026
ede43a4
Remove --strict from mypy.
Aug 21, 2026
fe5c132
Add checks for upstream and downstream region.
Aug 24, 2026
47e721b
Add type checks in locus and implement tests for checks in multi locu…
Aug 25, 2026
452856d
Add tests for checks in noncoding and coding.
Aug 26, 2026
946e7c4
Fix offset checks in upstream and downstream.
Aug 26, 2026
57ae3cc
Fix offset checks in upstream and downstream.
Aug 26, 2026
8f0fdfb
test_locus: Detailed error message.
Aug 27, 2026
c8e07ac
Locus: Update docstring.
Aug 27, 2026
3ca68c2
terst_locus: style according to flake8 formatting.
Aug 27, 2026
875d324
test_multi_locus: Detailed error message.
Aug 28, 2026
92d9c56
test_crossmapper: Detailed error message.
Aug 28, 2026
f673099
Fix typings and use -offset for negative offset instead of absolute v…
Aug 31, 2026
3aa854e
Fix typing.
Aug 31, 2026
26680c5
Multi_locus:Discard of absolute when validate point.
Aug 31, 2026
4ce9772
Discard absolute in crossmapper module and add test for protein datac…
Aug 31, 2026
0778fea
Discard absolute in crossmapper module and add test for protein datac…
Aug 31, 2026
127b46b
Use '' for string.
Aug 31, 2026
68c5718
Style according to PEP8.
Aug 31, 2026
f84410e
Style according to pylint.
Aug 31, 2026
85a5003
Style according to pylint.
Aug 31, 2026
69205d8
Update error message.
Aug 31, 2026
7736997
Style according to pylint.
Sep 1, 2026
2d113c0
Fix typings.
Sep 1, 2026
f371e05
Use '' for string.
Sep 2, 2026
e4b1859
Use '' in string in tests.
Sep 2, 2026
7d99daf
Remove redundant object inheritance.
mihailefter Sep 2, 2026
193373b
Add explicit exception chaining.
mihailefter Sep 2, 2026
0880ed4
Allow half-open location ends to equal reference length.
mihailefter Sep 4, 2026
8eed9dc
Validate length as a positive integer only.
mihailefter Sep 4, 2026
25dda81
Fix downstream boundary validation when the 3' UTR is missing.
mihailefter Sep 4, 2026
3f06bbf
Export Coord and Point from the package root.
mihailefter Sep 4, 2026
4976c30
Drop the unused pytest-pep8 configuration and dependency.
mihailefter Sep 4, 2026
6b2b792
Swaph the length and inverted parameters.
mihailefter Sep 4, 2026
03adc65
Correct degenerate also in protein to coordinate.
mihailefter Sep 5, 2026
73d9827
Distinguish out of order loci from overlapping ones.
mihailefter Sep 5, 2026
58f3f0f
Remove the Coord dataclass and switch back to plain integers for coor…
mihailefter Sep 6, 2026
0a1dbdd
Reject negative coordinates and document the locus module.
mihailefter Sep 6, 2026
43c5ccb
Document the multi locus module and remove types from docstrings.
mihailefter Sep 8, 2026
7daf35b
Remove types from docs.
mihailefter Sep 9, 2026
faf89df
Document the crossmapper module.
mihailefter Sep 9, 2026
1fda7b8
Reject unsupported types for the orientation and the position in codon.
mihailefter Sep 9, 2026
5326b00
Be more specific when checking the CDS.
mihailefter Sep 10, 2026
c789c96
Accept downstream position 1 only when it can be converted.
mihailefter Sep 10, 2026
aa4a78a
Report a degenerate position beyond the sequence as written.
mihailefter Sep 10, 2026
36ae407
No more reference.
mihailefter Sep 10, 2026
57cf6da
Fix the documentation examples and run them automatically.
mihailefter Sep 10, 2026
98846c4
Let each class in the hierarchy check only what it owns.
mihailefter Sep 10, 2026
165c7bf
Stop recomputing what Locus already does.
mihailefter Sep 10, 2026
a0ffafc
Simplify multi locus point validation.
mihailefter Sep 10, 2026
ca6df6a
Ask the MultiLocus for its length instead of deriving it.
mihailefter Sep 11, 2026
36d24e4
Specify allowed position values in upstream.
Sep 15, 2026
192f829
Fix typing error.
Sep 15, 2026
d7f6782
Cleanup.
Sep 15, 2026
b57871a
Assign constant value in downstream regardless of missing 3'UTR.
Sep 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: build
on:
push:
branches:
branches:
- master
pull_request:
branches:
Expand Down Expand Up @@ -30,6 +30,10 @@ jobs:
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test typings
run: |
pip install mypy
mypy mutalyzer_crossmapper
- name: Test with pytest
run: |
pytest
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2

build:
os: ubuntu-24.04
tools:
python: "3.12"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
85 changes: 24 additions & 61 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,79 +27,42 @@ HGVS position crossmapper
This library provides an interface to convert (cross map) between different
HGVS numbering_ systems.

Converting between the transcript oriented c. or n. and the genomic oriented g.
Converting between the transcript oriented ``c.`` or ``n.`` and the genomic oriented ``g.``
numbering systems can be difficult, especially when the transcript in question
resides on the complement strand.
resides on the complement strand. This library provides functions to convert between any HGVS
numbering system to standard (0-based) coordinates and vice versa.

**Features:**

- Support for genomic positions to standard coordinates and vice versa.
- Support for noncoding positions to standard coordinates and vice versa.
- Support for coding positions to standard coordinates and vice versa.
- Support for protein positions to standard coordinates and vice versa.
- Basic classes for loci that can be used for genomic loci other than genes.
- Support for genomic (``g.``, ``m.``, ``o.``) positions to standard coordinates and vice versa.
- Support for noncoding (``n.``, ``r.``) positions to standard coordinates and vice versa.
- Support for coding (``c.``) positions to standard coordinates and vice versa.
- Support for protein (``p.``) positions to standard coordinates and vice versa.
- Basic classes that can be used for loci other than genes or transcripts.

Please see ReadTheDocs_ for the latest documentation.


Quick start
-----------

The ``Genomic`` class provides an interface to conversions between genomic
positions and coordinates.

.. code:: python

>>> from mutalyzer_crossmapper import Genomic
>>> crossmap = Genomic()
>>> crossmap.coordinate_to_genomic(0)
1
>>> crossmap.genomic_to_coordinate(1)
0

On top of the functionality provided by the ``Genomic`` class, the
``NonCoding`` class provides an interface to conversions between noncoding
positions and coordinates.

.. code:: python

>>> from mutalyzer_crossmapper import NonCoding
>>> exons = [(5, 8), (14, 20), (30, 35), (40, 44), (50, 52), (70, 72)]
>>> crossmap = NonCoding(exons)
>>> crossmap.coordinate_to_noncoding(35)
(14, 1, 0)
>>> crossmap.noncoding_to_coordinate((14, 1))
35

Add the flag ``inverted=True`` to the constructor when the transcript resides
on the reverse complement strand.

On top of the functionality provided by the ``NonCoding`` class, the ``Coding``
class provides an interface to conversions between coding positions and
coordinates as well as conversions between protein positions and coordinates.
The ``Coding`` class converts zero-based sequence coordinates to HGVS coding
points and back. Exon locations and the CDS are given as zero-based half-open
intervals.

.. code:: python

>>> from mutalyzer_crossmapper import Coding
>>> cds = (32, 43)
>>> crossmap = Coding(exons, cds)
>>> crossmap.coordinate_to_coding(31)
(-1, 0, -1, 0)
>>> crossmap.coding_to_coordinate((-1, 0, -1))
31

Again, the flag ``inverted=True`` can be used for transcripts that reside on
the reverse complement strand.

Conversions between protein positions and coordinates are done as follows.

.. code:: python

>>> crossmap.coordinate_to_protein(41)
(2, 2, 0, 0, 0)
>>> crossmap.protein_to_coordinate((2, 2, 0, 0))
41


.. _numbering: http://varnomen.hgvs.org/bg-material/numbering/
>>> exons = [(5, 8), (11, 14)]
>>> crossmap = Coding(exons, cds=(6, 12))
>>> point = crossmap.coordinate_to_coding(11)
>>> point
CodingPoint(position=3, offset=0, region='')
>>> crossmap.coding_to_coordinate(point)
11

See the |library| for other numbering systems, intronic offsets, and
reverse complement transcripts.

.. _numbering: https://hgvs-nomenclature.org/stable/background/numbering/
.. _ReadTheDocs: https://mutalyzer-crossmapper.readthedocs.io
.. |library| replace:: `library <https://mutalyzer-crossmapper.readthedocs.io/en/latest/library.html>`__
1 change: 1 addition & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ API documentation
api/location
api/locus
api/multi_locus
api/point
2 changes: 2 additions & 0 deletions docs/api/crossmap.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Crossmapper
===========

.. automodule:: mutalyzer_crossmapper.crossmapper

.. autoclass:: mutalyzer_crossmapper.crossmapper.Genomic
:members:

Expand Down
3 changes: 3 additions & 0 deletions docs/api/locus.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Locus
=====

See :class:`~mutalyzer_crossmapper.locus.Point` for the point fields.

.. automodule:: mutalyzer_crossmapper.locus
:members:
:exclude-members: Point
3 changes: 3 additions & 0 deletions docs/api/multi_locus.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
MultiLocus
==========

See :class:`~mutalyzer_crossmapper.multi_locus.Point` for the point fields.

.. automodule:: mutalyzer_crossmapper.multi_locus
:members:
:exclude-members: Point
30 changes: 30 additions & 0 deletions docs/api/point.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Point
=====

The following point classes encode the HGVS numbering systems and use a
one-based ``position`` field.

.. autoclass:: mutalyzer_crossmapper.crossmapper.GenomicPoint
:inherited-members:
:members:

.. autoclass:: mutalyzer_crossmapper.crossmapper.NonCodingPoint
:inherited-members:
:members:

.. autoclass:: mutalyzer_crossmapper.crossmapper.CodingPoint
:inherited-members:
:members:

.. autoclass:: mutalyzer_crossmapper.crossmapper.ProteinPoint
:inherited-members:
:members:

The internal point classes use zero-based positions relative to a locus or
concatenated loci.

.. autoclass:: mutalyzer_crossmapper.locus.Point
:members:

.. autoclass:: mutalyzer_crossmapper.multi_locus.Point
:members:
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
release = _get_metadata('Version')

autoclass_content = 'both'
extensions = ['sphinx.ext.autodoc']
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx'
]
master_doc = 'index'
5 changes: 5 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.. Use an internal guide link in place of the README's external link.

.. include:: ../README.rst
:end-before: .. |library| replace::

.. |library| replace:: :doc:`library <library>`

.. toctree::
:maxdepth: 2
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ interface that is able to convert from any HGVS numbering system to a
conventional *coordinate* system and back.


.. _numbering: http://varnomen.hgvs.org/bg-material/numbering/
.. _numbering: https://hgvs-nomenclature.org/stable/background/numbering/
Loading
Loading