Skip to content

Commit

Permalink
Update tests due to data change
Browse files Browse the repository at this point in the history
  • Loading branch information
zhx828 committed Jun 23, 2021
1 parent 08ac330 commit 8e0d7ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions AnnotatorCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ def process_genomic_change(maffilereader, outf, maf_headers, ncols, nannotationc
queries.append(query)
rows.append(row)

if len(queries) == POST_QUERIES_THRESHOLD_GC_HGVSG:
annotations = pull_genomic_change_info(queries,annotatehotspots)
append_annotation_to_file(outf, ncols+nannotationcols, rows, annotations)
queries = []
Expand Down
8 changes: 4 additions & 4 deletions test_Annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ def test_check_hgvsg():
assert len(annotation) == 22
assert annotation[MUTATION_EFFECT_INDEX] == 'Gain-of-function'
assert annotation[ONCOGENIC_INDEX] == 'Oncogenic'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_3A'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_1'

annotation = annotations[1]
assert len(annotation) == 22
assert annotation[MUTATION_EFFECT_INDEX] == 'Gain-of-function'
assert annotation[ONCOGENIC_INDEX] == 'Oncogenic'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_3A'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_1'

annotation = annotations[2]
assert len(annotation) == 22
Expand All @@ -168,13 +168,13 @@ def test_check_genomic_change():
assert len(annotation) == 22
assert annotation[MUTATION_EFFECT_INDEX] == 'Gain-of-function'
assert annotation[ONCOGENIC_INDEX] == 'Oncogenic'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_3A'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_1'

annotation = annotations[1]
assert len(annotation) == 22
assert annotation[MUTATION_EFFECT_INDEX] == 'Gain-of-function'
assert annotation[ONCOGENIC_INDEX] == 'Oncogenic'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_3A'
assert annotation[HIGHEST_LEVEL_INDEX] == 'LEVEL_1'

annotation = annotations[2]
assert len(annotation) == 22
Expand Down

0 comments on commit 8e0d7ad

Please sign in to comment.