Skip to content

Commit

Permalink
rename transcripts subset file
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed Sep 11, 2023
1 parent 8ddb254 commit f0f8fad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htsinfer/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def subset_transcripts_by_organism(self) -> Path:
"""
LOGGER.debug(f"Subsetting transcripts for: {self.library_source}")

outfile = self.tmp_dir / f"{self.library_source}.fasta"
outfile = self.tmp_dir / "transcripts_subset.fasta"

def yield_filtered_seqs():
"""Generator yielding sequence records for specified sources.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_subset_transcripts_by_organism(self, tmpdir):
test_instance = Mapping(config=CONFIG)
results = test_instance.subset_transcripts_by_organism()
filtered_organisms_transcripts = \
tmpdir / f"{CONFIG.results.library_source}.fasta"
tmpdir / "transcripts_subset.fasta"
assert results == filtered_organisms_transcripts

def test_subset_transcripts_by_organism_file_problem(self, tmpdir):
Expand All @@ -111,7 +111,7 @@ def test_subset_transcripts_by_organism_invalid_fasta(self, tmpdir):
test_instance = Mapping(config=CONFIG)
results = test_instance.subset_transcripts_by_organism()
filtered_organisms_transcripts = \
tmpdir / f"{CONFIG.results.library_source}.fasta"
tmpdir / "transcripts_subset.fasta"
assert results == filtered_organisms_transcripts

def test_get_fasta_size(self, tmpdir):
Expand Down

0 comments on commit f0f8fad

Please sign in to comment.