Skip to content

Commit

Permalink
test: update reference path
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Oct 21, 2024
1 parent b9cedd8 commit f1440f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions modos/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ class MODO:
['sample/sample1']
# List files in the archive
>>> files = sorted(demo.list_files())
>>> assert Path('data/ex/demo1.cram') in files
>>> assert Path('data/ex/reference1.fa') in files
>>> files = [str(x) for x in demo.list_files()]
>>> assert 'data/ex/demo1.cram' in files
>>> assert 'data/ex/reference.fa' in files
"""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_stream_genomics_region(test_modo):
seq = test_modo.stream_genomics(
file_path=file_path[0],
region="BA000007.3",
reference_filename="data/ex/reference1.fa",
reference_filename="data/ex/reference.fa",
)
assert isinstance(seq, Iterator)
assert isinstance(next(seq), pysam.AlignedSegment)

0 comments on commit f1440f3

Please sign in to comment.