Skip to content

Commit

Permalink
Fix subcellular location output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
javfg committed Nov 19, 2024
1 parent e38f256 commit 8eab117
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ontoform"
version = "24.1.0-alpha.3"
version = "24.1.0-alpha.4"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
Expand Down
2 changes: 1 addition & 1 deletion src/ontoform/steps/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
transformations=[
FileTransformation(
src_path='input/target-inputs/hpa/subcellular_location.tsv.zip',
dst_path=lambda _, f: f'input/target-inputs/hpa/subcellular_locations.{extension(f)}',
dst_path='input/target-inputs/hpa/subcellular_location.tsv.gz',
transformer=SubcellularLocationTransformer,
),
FileTransformation(
Expand Down
4 changes: 2 additions & 2 deletions src/ontoform/transformers/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def transform(self, src: BinaryIO, dst: BinaryIO, output_format: Format) -> None


class SubcellularLocationSSLTransformer:
def transform(self, src: BinaryIO, dst: BinaryIO, format: Format) -> None:
def transform(self, src: BinaryIO, dst: BinaryIO, output_format: Format) -> None:
# just change output format
df = pl.read_csv(src, has_header=True, separator='\t')
write_format(df, dst, format)
write_format(df, dst, output_format)


class EssentialityMatricesTransformer:
Expand Down

0 comments on commit 8eab117

Please sign in to comment.