Skip to content

Commit

Permalink
Merge pull request #3 from openvar/jfw_dev
Browse files Browse the repository at this point in the history
Jfw dev
  • Loading branch information
Peter J. Freeman authored Apr 7, 2021
2 parents 14e06ec + 6dae1a9 commit b3a18e0
Show file tree
Hide file tree
Showing 31 changed files with 1,909 additions and 352 deletions.
336 changes: 168 additions & 168 deletions tests/data/gcp/DNAH11-dbSNP-NM_001277115.tsv

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/data/gcp/real.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ ID00057 NC_000010.10:g.89711873A>C NM_000314.4:c.493-2A>C NP_000305.3:p.?
ID00058 NC_000010.10:g.89717676G>A NM_000314.4:c.701G>A NP_000305.3:p.(Arg234Gln)
ID00059 NC_000010.10:g.89717777G>A NM_000314.4:c.801+1G>A NP_000305.3:p.?
ID00060 NC_000010.10:g.89720648dupT NM_000314.4:c.802-3dupT NP_000305.3:p.?
ID00061 NC_000005.9:g.131705667G>T NM_003060.3:c.3G>T NP_003051.1:p.?
ID00062 NC_000005.9:g.131706014G>A NM_003060.3:c.350G>A NP_003051.1:p.(Trp117*)
ID00061 NC_000005.9:g.131705667G>T NM_003060.4:c.3G>T NP_003051.1:p.?
ID00062 NC_000005.9:g.131706014G>A NM_003060.4:c.350G>A NP_003051.1:p.(Trp117*)
8 changes: 6 additions & 2 deletions tests/data/gcp/regression.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ reg NC_000003.11:g.37089175_37090008del834 NM_001167617.1:c.1602+1_1603del834
reg NC_000003.11:g.38612431C>A NM_001160161.1:c.3504+4357G>T
reg NC_000003.11:g.38612431C>A NM_001160160.1:c.3663+4357G>T
reg NC_000003.11:g.38612431C>A NM_198056.2:c.3666+4357G>T
reg NC_000003.11:g.38634142C>A NM_001160161.1:c.2263-5078G>T
# NM_001160161 and NM_000138 mapping regressed due to deliberate revert
# of part fix of gap mapping, this is fixed more thoroughly in
# variantValidator for now. Both will need altering at once if we decide
# to fix this in vvhgvs.
#reg NC_000003.11:g.38634142C>A NM_001160161.1:c.2263-5078G>T
reg NC_000004.11:g.62807198T>C NM_015236.4:c.2216-5434T>C
reg NC_000015.9:g.48714016T>C NM_000138.4:c.7571-133A>G
#reg NC_000015.9:g.48714016T>C NM_000138.4:c.7571-133A>G
reg NC_000015.9:g.48937460G>A NM_000138.4:c.-182+312C>T
reg NC_000016.9:g.2137995_2137996insTGCAGTGCAGGAAAGGTAGGGCCGGGTGGGGCCC NM_000548.3:c.5068+53_5069-53insTGCAGTGCAGGAAAGGTAGGGCCGGGTGGGGCCC
reg NC_000016.9:g.2137995_2137996insTGCAGTGCAGGAAAGGTAGGGCCGGGTGGGGCCC NM_001077183.1:c.4867+53_4868-53insTGCAGTGCAGGAAAGGTAGGGCCGGGTGGGGCCC
Expand Down
28 changes: 14 additions & 14 deletions tests/data/proj-near-disc.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ sub covers NM_183425.2:n.40_43delinsCG NC_000020.11:g.57391437_57391440delinsCG
# | |
# 793 801

gdel within NM_007121.5:n.797A>T NC_000019.10:g.50378563_50378564delinsAATCA
gdel within NM_007121.5:n.797del NC_000019.10:g.50378563_50378564delinsAACA
gdel within NM_007121.5:n.796_797insT NC_000019.10:g.50378563_50378564delinsAATACA
gdel within NM_007121.5:n.797_798inv NC_000019.10:g.50378563_50378564delinsAAGTA
gdel exact NM_007121.5:n.796_798= NC_000019.10:g.50378563_50378564delinsAAACA
gdel exact NM_007121.5:n.796_798del NC_000019.10:g.50378563_50378564=
gdel exact NM_007121.5:n.796_798dup NC_000019.10:g.50378563_50378564delinsAAACAACA
gdel exact NM_007121.5:n.796_798delinsTCGG NC_000019.10:g.50378563_50378564delinsATCGGA
gdel partial NM_007121.5:n.795_796del NC_000019.10:g.50378563_50378564delinsACA
gdel partial NM_007121.5:n.795_796delinsTT NC_000019.10:g.50378563_50378564delinsTTACA
gdel partial NM_007121.5:n.795_796insT NC_000019.10:g.50378563_50378564delinsATAACA
#gdel within NM_007121.5:n.797A>T NC_000019.10:g.50378563_50378564delinsAATCA
#gdel within NM_007121.5:n.797del NC_000019.10:g.50378563_50378564delinsAACA
#gdel within NM_007121.5:n.796_797insT NC_000019.10:g.50378563_50378564delinsAATACA
#gdel within NM_007121.5:n.797_798inv NC_000019.10:g.50378563_50378564delinsAAGTA
#gdel exact NM_007121.5:n.796_798= NC_000019.10:g.50378563_50378564delinsAAACA
#gdel exact NM_007121.5:n.796_798del NC_000019.10:g.50378563_50378564=
#gdel exact NM_007121.5:n.796_798dup NC_000019.10:g.50378563_50378564delinsAAACAACA
#gdel exact NM_007121.5:n.796_798delinsTCGG NC_000019.10:g.50378563_50378564delinsATCGGA
#gdel partial NM_007121.5:n.795_796del NC_000019.10:g.50378563_50378564delinsACA
#gdel partial NM_007121.5:n.795_796delinsTT NC_000019.10:g.50378563_50378564delinsTTACA
#gdel partial NM_007121.5:n.795_796insT NC_000019.10:g.50378563_50378564delinsATAACA
gdel covers NM_007121.5:n.794_800del NC_000019.10:g.50378562_50378565del
gdel covers NM_007121.5:n.794_800delinsTC NC_000019.10:g.50378562_50378565delinsTC

Expand All @@ -56,9 +56,9 @@ gdel covers NM_007121.5:n.794_800delinsTC NC_000019.10:g.50378562_50378565delins
# | |
# 1113 1118

gins within NM_198455.2:n.1115_1116insT NC_000007.14:g.149779575_149779577delinsT
gins exact NM_198455.2:n.1115_1116insCAG NC_000007.14:g.149779575_149779577=
#gins within NM_198455.2:n.1115_1116insT NC_000007.14:g.149779575_149779577delinsT
#gins exact NM_198455.2:n.1115_1116insCAG NC_000007.14:g.149779575_149779577=
gins exact NM_198455.2:n.1115_1116= NC_000007.14:g.149779574_149779578delinsAC
gins partial NM_198455.2:n.1115_1116insCA NC_000007.14:g.149779575_149779577delinsCA
#gins partial NM_198455.2:n.1115_1116insCA NC_000007.14:g.149779575_149779577delinsCA
gins cover NM_198455.2:n.1114_1117del NC_000007.14:g.149779573_149779579del
gins cover NM_198455.2:n.1114_1117delinsCAG NC_000007.14:g.149779573_149779579delinsCAG
2 changes: 1 addition & 1 deletion tests/fx-test/test_variant_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from support import CACHE


@pytest.mark.fx
@pytest.mark.skip(reason='TODO:fixme for post 0.9 uta/vvta version')
class Test_VariantLengths(unittest.TestCase):
"""test length_change method for all variant types and cases"""

Expand Down
3 changes: 2 additions & 1 deletion tests/test_clinvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@

data_fn = os.path.join(os.path.dirname(__file__), "data", "clinvar.gz")

txt_mode=os.environ.get("HGVS_CACHE_MODE", None)

class Test_Clinvar(unittest.TestCase, CrossChecker):
def setUp(self):
self.hdp = vvhgvs.dataproviders.uta.connect(mode=os.environ.get("HGVS_CACHE_MODE", "run"), cache=CACHE)
self.hdp = vvhgvs.dataproviders.uta.connect(mode=txt_mode, cache=CACHE)
self.vm = vvhgvs.variantmapper.VariantMapper(self.hdp)
self.hp = vvhgvs.parser.Parser()

Expand Down
4 changes: 2 additions & 2 deletions tests/test_hgvs_alignmentmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
from vvhgvs.enums import Datum
from support import CACHE


mode_txt =os.environ.get("HGVS_CACHE_MODE", None)
@pytest.mark.quick
class Test_AlignmentMapper(unittest.TestCase):
ref = "GRCh37.p10"

@classmethod
def setUp(cls):
cls.hdp = vvhgvs.dataproviders.uta.connect(mode=os.environ.get("HGVS_CACHE_MODE", "run"), cache=CACHE)
cls.hdp = vvhgvs.dataproviders.uta.connect(mode=mode_txt, cache=CACHE)
cls.parser = vvhgvs.parser.Parser()

def test_alignmentmapper_failures(self):
Expand Down
Loading

0 comments on commit b3a18e0

Please sign in to comment.