Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions pyhgvs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ class HGVSRegex(object):
for regex in CDNA_ALLELE]

# Peptide syntax
PEP = "([A-Z]([a-z]{2}))+"
PEP = "(([A-Z]([a-z]{2}))|([GAVLIMFWPSTCYNQDEKRH\*]))+"
PEP_REF = "(?P<ref>" + PEP + ")"
PEP_REF2 = "(?P<ref2>" + PEP + ")"
PEP_ALT = "(?P<alt>" + PEP + ")"

PEP_EXTRA = "(?P<extra>(|=|\?)(|fs))"
PEP_EXTRA = "(?P<extra>(|=|\?)(|fs((Ter|\*)\d+)?))"

# Peptide allele syntax
PEP_ALLELE = [
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/env python

from setuptools import setup
from pip.req import parse_requirements
from pip.download import PipSession
try: # pip 9 or earlier
from pip.req import parse_requirements
from pip.download import PipSession
except ImportError: # pip 10 or later
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
import sys

description = ("This library provides a simple to use Python API for parsing, "
Expand Down