Skip to content

Commit

Permalink
Merge pull request #71 from Clinical-Genomics/add_test_for_trgt_dot_mcs
Browse files Browse the repository at this point in the history
Add test for when TRGT `FORMAT.MC` is `.`
  • Loading branch information
dnil authored Jul 2, 2024
2 parents be4533c + 53be7cf commit 35138d5
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [unreleased]
### Fixed
- Use codecov badge and fix scout link on README page

- Added a test for TRGT MCs set to `.`

## [0.9.1]
### Added
Expand Down
1 change: 0 additions & 1 deletion stranger/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
parse_repeat_file,
update_decomposed_variant_format_fields,
)
from stranger.vcf_utils import print_headers

LOG = logging.getLogger(__name__)
LOG_LEVELS = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
Expand Down
20 changes: 0 additions & 20 deletions stranger/vcf_utils.py

This file was deleted.

6 changes: 6 additions & 0 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ def test_stranger_cli_zipped(vcf_zipped_path):
runner = CliRunner()
result = runner.invoke(cli, [vcf_zipped_path])
assert result.exit_code == 0


def test_stranger_trgt_dot_mc(vcf_trgt_path_dot_mc):
runner = CliRunner()
result = runner.invoke(cli, ["--trgt", vcf_trgt_path_dot_mc])
assert result.exit_code == 0
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

import pytest

from stranger.resources import repeats_path
Expand All @@ -15,6 +13,11 @@ def vcf_zipped_path():
return "tests/fixtures/643594.clinical.str.vcf.gz"


@pytest.fixture()
def vcf_trgt_path_dot_mc():
return "tests/fixtures/HG002_Revio.sort.vcf.gz"


@pytest.fixture()
def repeats_file_handle():
return open(repeats_path, "r")
Binary file added tests/fixtures/HG002_Revio.sort.vcf.gz
Binary file not shown.
Binary file added tests/fixtures/HG002_Revio.sort.vcf.gz.tbi
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from stranger.utils import get_repeat_info, parse_repeat_file
from stranger.utils import parse_repeat_file


def test_parse_repeat_file(repeats_file_handle):
Expand Down

0 comments on commit 35138d5

Please sign in to comment.