Skip to content

Commit

Permalink
Fix hamlet_table tests for old version of HAMLET
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmar-van-den-Berg committed Sep 19, 2023
1 parent 3753463 commit ebe7081
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
6 changes: 4 additions & 2 deletions test/test_hamlet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,16 @@
# Test the hamlet_table.py utility script
- path: variant.tsv
contains:
- "sample\tgene\tCHROM"
- "sample\tgene\tCHROM\tPOS"
- "SRR8615409\tFLT3\tchr13\t28034117"
- path: fusion.tsv
contains:
- "sample\tbreakpoint1\tbreakpoint2"
- "SRR8615409\tchr22:23290413\tchr9:130854064"
- path: itd_flt3.tsv
contains:
- "sample\tboundary_type\tfuzziness"

- "SRR8615409\tfuzzy-end\t1"


- name: lint-hamlet
Expand Down
29 changes: 8 additions & 21 deletions test/test_utilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@
- utilities
command: >
python3 utilities/hamlet_table.py
--version v1
variant
test/data/output/v1/SRR8615409.summary.json
stdout:
contains:
# The variant table headers
- "sample\tGene\tCHROM\tPOS"
- "SRR8615409\tNRAS\tchr1\t114716123"
# Some of the variant table headers
- "sample_id"
- "CHROM"
- "HGVSc"
# Corresponding table values
- "SRR8615409"
- "chr1"
- "ENST00000369535.5:c.38G>T"

- name: test-fusion-table
tags:
- functional
- utilities
command: >
python3 utilities/hamlet_table.py
--version v1
fusion
test/data/output/v1/SRR8615409.summary.json
stdout:
Expand All @@ -29,22 +32,6 @@
- "SRR8615409\t33\tSFPQ--ZFP36L1"
- "SRR8615409\t15\tSFPQ--ZFP36L1"

- name: test-overexpression-table
tags:
- functional
- utilities
command: >
python3 utilities/hamlet_table.py
--version v1
overexpression
test/data/output/v1/SRR8615409.summary.json
stdout:
contains:
# The variant table headers
- "sample\texon\tdivisor_gene"
- "SRR8615409\tMECOM:169146722-169147734\tHMBS"


- name: test-reference-files-dry-run
tags:
- dry-run
Expand Down

0 comments on commit ebe7081

Please sign in to comment.