Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean disk space of the repo #6

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

846,976 changes: 0 additions & 846,976 deletions tests/data/chr22.fa

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/chr22.fa.fai

This file was deleted.

15 changes: 10 additions & 5 deletions tests/preprocessing_raw_test.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
import gzip
import os
import shutil
import pytest
import tempfile
from dress.datasetgeneration.os_utils import open_fasta
from dress.datasetgeneration.preprocessing.utils import tabular_file_to_genomics_df
from dress.datasetgeneration.preprocessing.gtf_cache import (
extractGeneStructure,
generate_pipeline_input,
)

raw_data = "tests/data/raw_data.tsv"
cache_dir = "tests/data"
genome_c = "tests/data/chr22.fa.gz"
genome = genome_c.replace(".gz", "")

abs_path = os.path.dirname(os.path.abspath(__file__))
raw_data = os.path.join(abs_path,"data/raw_data.tsv")
cache_dir = os.path.join(abs_path,"data")
genome_c = os.path.join(abs_path, "data/chr22.fa.gz")
level = 2

with gzip.open(genome_c, "rb") as f_in:
tmp_f = tempfile.NamedTemporaryFile()
genome = tmp_f.name
with open(genome, "wb") as f_out:
shutil.copyfileobj(f_in, f_out)

Expand Down Expand Up @@ -214,4 +219,4 @@ def test_trimmed_sequence(self, initial_setup):
donor = int(donor)

assert seq[acceptor - 2 : acceptor] == "AG"
assert seq[donor + 1 : donor + 3] == "GT"
assert seq[donor + 1 : donor + 3] == "GT"