Skip to content

Commit

Permalink
removing specification for output format types
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseminbridges committed Sep 20, 2023
1 parent 4bbc666 commit 98b5cb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ gene_analysis: False
disease_analysis: False
tool_specific_configuration_options:
svanna_jar_executable: svanna-cli-1.0.3/svanna-cli-1.0.3.jar
output_formats: tsv # could be csv,tsv,vcf,html
post_process:
sort_order: descending
15 changes: 3 additions & 12 deletions src/pheval_svanna/run/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import subprocess
from pathlib import Path

Expand All @@ -16,24 +15,16 @@ def prepare_svanna_commands(
tool_specific_configurations: SvAnnaToolSpecificConfigurations,
):
"""Write commands to run SvAnna."""
phenopacket_dir = Path(testdata_dir).joinpath(
[
directory
for directory in os.listdir(str(testdata_dir))
if "phenopacket" in str(directory)
][0]
)
vcf_dir = Path(testdata_dir).joinpath(
[directory for directory in os.listdir(str(testdata_dir)) if "vcf" in str(directory)][0]
)
phenopacket_dir = Path(testdata_dir).joinpath("phenopackets")
vcf_dir = Path(testdata_dir).joinpath("vcf")
prepare_commands(
svanna_jar_file=input_dir.joinpath(tool_specific_configurations.svanna_jar_executable),
output_dir=tool_input_commands_dir,
file_prefix=Path(testdata_dir).name,
phenopacket_dir=phenopacket_dir,
vcf_dir=vcf_dir,
results_dir=raw_results_dir,
output_format=tool_specific_configurations.output_formats.split(","),
output_format="tsv",
input_data=input_dir,
)

Expand Down
1 change: 0 additions & 1 deletion src/pheval_svanna/tool_specific_configuration_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ class PostProcessing(BaseModel):

class SvAnnaToolSpecificConfigurations(BaseModel):
svanna_jar_executable: Path = Field(...)
output_formats: str = Field(...)
post_process: PostProcessing = Field(...)

0 comments on commit 98b5cb5

Please sign in to comment.