Skip to content

Commit

Permalink
Switch to decompressed FASTA for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Jan 28, 2025
1 parent 483f0d1 commit b3075a7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ def fx_alignments_fasta(fx_data_cache):


@pytest.fixture
def fx_alignments_mafft_fasta():
def fx_alignments_mafft_fasta(fx_data_cache):
# This is bgzipped so we can access directly
return pathlib.Path("tests/data/alignments-mafft.fasta.gz")
cache_path = fx_data_cache / "alignments-mafft.fasta"
if not cache_path.exists():
with gzip.open("tests/data/alignments-mafft.fasta.gz") as src:
with open(cache_path, "wb") as dest:
shutil.copyfileobj(src, dest)
return cache_path


def encoded_alignments(path):
Expand Down

0 comments on commit b3075a7

Please sign in to comment.