Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#741): Pretty print #742

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c254b47
feat(pretty print): adding some experimental code for pretty printing…
andreasprlic May 13, 2024
8986d20
feat(pretty print): making sure we don't bloat the test cache.
andreasprlic May 13, 2024
e9fde79
feat(pretty print): making type py3.8 compatible
andreasprlic May 13, 2024
d3a5e6e
feat(pretty print): breaking up creation of each line in display into…
andreasprlic May 28, 2024
f2018df
feat(pretty print): breaking up creation of each line in display into…
andreasprlic May 29, 2024
2f7069b
feat(pretty print): feat(pretty print): improvements for RNA coding t…
andreasprlic Jun 1, 2024
27ae2cd
feat(repeat-detection): using fully justified representation.
andreasprlic Jun 3, 2024
b5b3d64
feat(repeat-detection): using fully justified representation.
andreasprlic Jun 3, 2024
2a72299
formatting
andreasprlic Jun 3, 2024
0dcab28
feat(prot-pos): now showing the protein (amino acid) positions more c…
andreasprlic Jun 6, 2024
e9f578a
feat(repeat-detection): now with better detection of repetitive units…
andreasprlic Jun 7, 2024
99a614f
feat(repeat-detection): hooking repeat detection improvements in pret…
andreasprlic Jun 7, 2024
da48e01
Merge branch 'main' into pretty_print
andreasprlic Jun 9, 2024
f1e9703
feat(pretty_print): now showing hgvs_p, making code more accessible f…
andreasprlic Jun 30, 2024
7ad7f0c
Merge branch 'main' of github.com:biocommons/hgvs into pretty_print
andreasprlic Jun 30, 2024
a31cd26
feat(ci): trying to get pytest to work again
andreasprlic Jun 30, 2024
30addf2
feat(cleanup): removing cache from test_repeats. They are creating to…
andreasprlic Jul 1, 2024
bc483b5
cleanup
andreasprlic Aug 13, 2024
cf22aae
#741 small refactoring to update directory structure, based on PR com…
andreasprlic Sep 2, 2024
d4f2ac4
Merge branch 'main' into pretty_print
andreasprlic Sep 2, 2024
d08f02d
#741 small refactoring to update directory structure, based on PR com…
andreasprlic Sep 2, 2024
401c5a3
#741 excluding data intensive tests from CI. They would create too mu…
andreasprlic Sep 6, 2024
336ea2c
trying to fix CI
andreasprlic Sep 6, 2024
d216bba
feat(repeats): found an issue with count_pattern_occurences, fixed an…
andreasprlic Sep 7, 2024
9d15a22
feat(repeats): adding examples from HGVS repeats recommendations page…
andreasprlic Sep 16, 2024
99f27bf
feat(repeats): adding an example of a large variant to make sure we d…
andreasprlic Sep 17, 2024
703efbf
feat(repeats): moving max repeat config to global config. Also a smal…
andreasprlic Sep 19, 2024
bb7eb3c
skipfeat(repeats): skipping more tests that are too data heavy.
andreasprlic Sep 19, 2024
fed5af4
feat(repeats): improvements in repeat check.
andreasprlic Sep 19, 2024
9a2e049
feat(reverse-strand): Now showing reverse strand transcript in 5'-3' …
andreasprlic Oct 3, 2024
b82ab35
feat(is_rna): moving the check if a transcript is RNA only to datacom…
andreasprlic Oct 3, 2024
cdd87a5
fix
andreasprlic Oct 3, 2024
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
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- name: Install dependencies
run: |
pip install -e .[dev]
pip install pytest pytest-cov

- name: Test with pytest
run: |
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ keywords = [
"hgvs",
"variation"
]
dynamic = ["version", "optional-dependencies"]
dynamic = ["version"]

dependencies=[
"attrs >= 17.4.0", # https://github.com/biocommons/hgvs/issues/473
Expand All @@ -45,6 +45,11 @@ dependencies=[
"six",
]

[project.optional-dependencies]
dev = [
"parameterized"
]

[project.urls]
"Homepage" = "https://github.com/biocommons/hgvs"
"Bug Tracker" = "https://github.com/biocommons/hgvs/issues"
Expand Down
2 changes: 2 additions & 0 deletions src/hgvs/easy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from hgvs.dataproviders.uta import connect
from hgvs.normalizer import Normalizer
from hgvs.parser import Parser
from hgvs.pretty_print import PrettyPrint
from hgvs.validator import Validator
from hgvs.variantmapper import VariantMapper

Expand Down Expand Up @@ -66,6 +67,7 @@
t_to_g = projector.t_to_g
t_to_p = projector.t_to_p
get_relevant_transcripts = am38.relevant_transcripts
pretty = PrettyPrint(hdp, useColor=True, showLegend=True)

# <LICENSE>
# Copyright 2018 HGVS Contributors (https://github.com/biocommons/hgvs)
Expand Down
2 changes: 1 addition & 1 deletion src/hgvs/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, grammar_fn=None, expose_all_rules=False):
self._logger = logging.getLogger(__name__)
self._expose_rule_functions(expose_all_rules)

def parse(self, v):
def parse(self, v) -> hgvs.sequencevariant.SequenceVariant:
"""parse HGVS variant `v`, returning a SequenceVariant

:param str v: an HGVS-formatted variant as a string
Expand Down
Loading
Loading