Skip to content

Commit

Permalink
tox lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseminbridges committed Mar 18, 2024
1 parent 0efd31e commit 1c0a980
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 24 deletions.
56 changes: 32 additions & 24 deletions src/pheval_phen2gene/prepare/prepare_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,20 +280,24 @@ def write_local_commands(
input_files = all_files(phenopacket_dir) if input_dir is None else all_files(input_dir)
command_writer = CommandWriter(command_file_path)
for input_file in input_files:
write_single_local_command(
path_to_phen2gene_dir=path_to_phen2gene_dir,
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
input_file_path=input_file,
data_dir=data_dir,
) if phenopacket_dir is None else write_single_local_command(
path_to_phen2gene_dir=path_to_phen2gene_dir,
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
phenopacket_path=input_file,
data_dir=data_dir,
(
write_single_local_command(
path_to_phen2gene_dir=path_to_phen2gene_dir,
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
input_file_path=input_file,
data_dir=data_dir,
)
if phenopacket_dir is None
else write_single_local_command(
path_to_phen2gene_dir=path_to_phen2gene_dir,
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
phenopacket_path=input_file,
data_dir=data_dir,
)
)
command_writer.close()

Expand All @@ -315,16 +319,20 @@ def write_docker_commands(
input_files = all_files(phenopacket_dir) if input_dir is None else all_files(input_dir)
command_writer = CommandWriter(command_file_path)
for input_file in input_files:
write_single_docker_command(
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
phenopacket_path=input_file,
) if input_dir is None else write_single_docker_command(
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
input_file_path=input_file,
(
write_single_docker_command(
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
phenopacket_path=input_file,
)
if input_dir is None
else write_single_docker_command(
output_dir=output_dir,
output_file_name=Path(input_file.stem),
command_writer=command_writer,
input_file_path=input_file,
)
)


Expand Down
1 change: 1 addition & 0 deletions src/pheval_phen2gene/runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Phen2Gene Runner"""

from dataclasses import dataclass
from pathlib import Path

Expand Down

0 comments on commit 1c0a980

Please sign in to comment.