Skip to content

Commit

Permalink
Merge pull request #8 from VariantEffect/dict-dev
Browse files Browse the repository at this point in the history
add target validation and variant creation from dicts
  • Loading branch information
afrubin committed Jan 6, 2021
2 parents e296fc4 + 7edd9ff commit 9b2929b
Show file tree
Hide file tree
Showing 5 changed files with 484 additions and 188 deletions.
7 changes: 6 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx.ext.intersphinx", "sphinx.ext.autosectionlabel",]
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.intersphinx",
"sphinx.ext.autosectionlabel",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
4 changes: 2 additions & 2 deletions mavehgvs/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class VariantPosition:
"""

__fullmatch = re.compile(pos_with_groups, flags=re.ASCII).fullmatch
fullmatch = re.compile(pos_with_groups, flags=re.ASCII).fullmatch
"""Callable[[str, int, int], Optional[Match[str]]]: fullmatch callable for parsing positions
Returns an :py:obj:`re.Match` object if the full string matches one of the position groups in :py:data:`pos_extended`.
Expand All @@ -53,7 +53,7 @@ def __init__(self, pos_str: str) -> None:
"""
try:
gdict = VariantPosition.__fullmatch(pos_str).groupdict()
gdict = VariantPosition.fullmatch(pos_str).groupdict()
except AttributeError:
raise MaveHgvsParseError(f"invalid variant position string '{pos_str}'")

Expand Down
Loading

0 comments on commit 9b2929b

Please sign in to comment.