Skip to content

Commit

Permalink
added additional tests for row dropping behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheww95 committed Dec 20, 2024
1 parent 1f4edcd commit d3643cf
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/data/data_empty_row.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Sample A1 A2 A3 A4
r1 1 1 1 0
r2 1 1 1 0
r3 1 1 1 0
r4 1 1 1 0
r5 2 2 2 0
r6 1 0 0 0
7 changes: 7 additions & 0 deletions tests/data/data_empty_row_q.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Sample A1 A2 A3 A4
r1 1 1 1 0
r2 1 1 1 0
r3 1 1 1 0
r4 1 1 1 0
r5 2 2 2 0
r6 1 ? ? ?
7 changes: 7 additions & 0 deletions tests/data/data_empty_row_space.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Sample A1 A2 A3 A4
r1 1 1 1 0
r2 1 1 1 0
r3 1 1 1 0
r4 1 1 1 0
r5 2 2 2 0
r6 1
7 changes: 7 additions & 0 deletions tests/data/data_empty_row_us.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Sample A1 A2 A3 A4
r1 1 1 1 0
r2 1 1 1 0
r3 1 1 1 0
r4 1 1 1 0
r5 2 2 2 0
r6 1 _ _ _
29 changes: 29 additions & 0 deletions tests/test_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,32 @@
- path: scaled/results.text
md5sum: 6eb56fbf3a925fa7b50f65b78febdad4

- name: Hamming Distance and drop empty columns
command: profile_dists -q tests/data/data.tsv -r tests/data/data.tsv -d hamming -o hamming_count_missing --missing_thresh 0.0
files:
- path: hamming_count_missing/results.text
md5sum: ab0b4f36fcb14e1f50722c52fee9f327

- name: Hamming Distance and drop row 0
command: profile_dists -q tests/data/data_empty_row.tsv -r tests/data/data_empty_row.tsv -d hamming -o hamming --sample_qual_thresh 0.70
files:
- path: hamming/results.text
md5sum: ab0b4f36fcb14e1f50722c52fee9f327

- name: Hamming Distance and drop row question mark
command: profile_dists -q tests/data/data_empty_row_q.tsv -r tests/data/data_empty_row_q.tsv -d hamming -o hamming --sample_qual_thresh 0.70
files:
- path: hamming/results.text
md5sum: ab0b4f36fcb14e1f50722c52fee9f327

- name: Hamming Distance and drop row underscore
command: profile_dists -q tests/data/data_empty_row_us.tsv -r tests/data/data_empty_row_us.tsv -d hamming -o hamming --sample_qual_thresh 0.70
files:
- path: hamming/results.text
md5sum: ab0b4f36fcb14e1f50722c52fee9f327

- name: Hamming Distance and drop space
command: profile_dists -q tests/data/data_empty_row_space.tsv -r tests/data/data_empty_row_space.tsv -d hamming -o hamming --sample_qual_thresh 0.70
files:
- path: hamming/results.text
md5sum: ab0b4f36fcb14e1f50722c52fee9f327

0 comments on commit d3643cf

Please sign in to comment.