pheval-exomiser 0.4.0__py3-none-any.whl → 0.4.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,6 +90,7 @@ class CommandCreator:
90
90
  ),
91
91
  raw_results_dir=Path(RAW_RESULTS_TARGET_DIRECTORY_DOCKER),
92
92
  output_formats=self.output_formats,
93
+ analysis_yaml=self.analysis_yaml,
93
94
  )
94
95
  elif self.environment == "local":
95
96
  return ExomiserCommandLineArguments(
@@ -98,6 +99,7 @@ class CommandCreator:
98
99
  output_options_file=output_options_file,
99
100
  raw_results_dir=self.results_dir,
100
101
  output_formats=self.output_formats,
102
+ analysis_yaml=self.analysis_yaml,
101
103
  )
102
104
  raise ValueError(f"Unknown environment: {self.environment}")
103
105
 
@@ -248,11 +250,14 @@ class CommandsWriter:
248
250
  self, command_arguments: ExomiserCommandLineArguments
249
251
  ) -> None:
250
252
  """Write a phenotype-only command out for exomiser ≥13.2.0 to run."""
251
- phenotype_only = (
252
- "phenotype-only"
253
- if version.parse(self.exomiser_version) < version.parse("15.0.0")
254
- else "phenotype_only"
255
- )
253
+ if command_arguments.analysis_yaml is None:
254
+ phenotype_only_statement = (
255
+ " --preset phenotype-only"
256
+ if version.parse(self.exomiser_version) < version.parse("15.0.0")
257
+ else " --preset phenotype_only"
258
+ )
259
+ else:
260
+ phenotype_only_statement = f" --analysis {str(command_arguments.analysis_yaml)}"
256
261
  self.file.write(
257
262
  "--sample "
258
263
  + str(command_arguments.sample)
@@ -260,8 +265,7 @@ class CommandsWriter:
260
265
  + str(command_arguments.raw_results_dir)
261
266
  + " --output-filename "
262
267
  + f"{Path(command_arguments.sample).stem}-exomiser"
263
- + " --preset "
264
- + phenotype_only
268
+ + phenotype_only_statement
265
269
  )
266
270
 
267
271
  def write_phenotype_only_command(self, command_arguments: ExomiserCommandLineArguments):
@@ -1,5 +1,5 @@
1
1
  from pathlib import Path
2
- from typing import List, Optional
2
+ from typing import List, Optional, Union
3
3
 
4
4
  from pydantic import BaseModel, Field
5
5
 
@@ -61,7 +61,7 @@ class ExomiserConfigurations(BaseModel):
61
61
 
62
62
  environment: str = Field(...)
63
63
  exomiser_software_directory: Path = Field(...)
64
- analysis_configuration_file: Path = Field(...)
64
+ analysis_configuration_file: Union[Path | None] = Field(...)
65
65
  max_jobs: int = Field(...)
66
66
  application_properties: ApplicationProperties = Field(...)
67
67
  output_formats: Optional[List[str]] = Field(None)
@@ -40,7 +40,11 @@ def prepare_batch_files(
40
40
  config.output_formats.append("JSON")
41
41
  create_batch_file(
42
42
  environment=config.environment,
43
- analysis=input_dir.joinpath(config.analysis_configuration_file),
43
+ analysis=(
44
+ input_dir.joinpath(config.analysis_configuration_file)
45
+ if config.analysis_configuration_file
46
+ else None
47
+ ),
44
48
  phenopacket_dir=Path(testdata_dir).joinpath("phenopackets"),
45
49
  vcf_dir=vcf_dir_name if variant_analysis else None,
46
50
  output_dir=tool_input_commands_dir,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pheval_exomiser
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary:
5
5
  Author: Yasemin Bridges
6
6
  Author-email: y.bridges@qmul.ac.uk
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
24
24
 
25
25
  # Exomiser Runner for PhEval
26
26
 
27
- This is the Exomiser plugin for PhEval. With this plugin, you can leverage the variant prioritisation tool, Exomiser, to run the PhEval pipeline seamlessly. Detailed documentation on how to set up and run the PhEval Makefile pipeline with the Exomiser runner can be found [here](https://monarch-initiative.github.io/pheval/exomiser_pipeline/). The setup process for running the full PhEval Makefile pipeline differs from setting up for a single run. The Makefile pipeline creates directory structures for corpora and configurations to handle multiple run configurations. Detailed instructions on setting up the appropriate directory layout, including the input directory and test data directory, can be found here.
27
+ This is the Exomiser plugin for PhEval. With this plugin, you can leverage the variant prioritisation tool, Exomiser, to run the PhEval pipeline seamlessly. Instructions for setting up the appropriate directory layout, including the input directory and test data directory for a single PhEval run, can be found here.
28
28
 
29
29
  ## Installation
30
30
 
@@ -5,13 +5,13 @@ pheval_exomiser/post_process/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
5
5
  pheval_exomiser/post_process/post_process.py,sha256=bGNLO0LlsG26oKtvL3mtlcBTDY5gynKh1BwNjmUaIgI,972
6
6
  pheval_exomiser/post_process/post_process_results_format.py,sha256=Y5Wi6zkBUaDoHVqFD5tmToGLSEqc86hN5s08edL4Tic,12287
7
7
  pheval_exomiser/prepare/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- pheval_exomiser/prepare/create_batch_commands.py,sha256=g3hTCWDldqD0oLmIoZeinLn9uS2ZX2Hm6jqTxvATf8I,18638
9
- pheval_exomiser/prepare/tool_specific_configuration_options.py,sha256=4gedZ9iadRXK6tF9P-ju-dhj8-F2-fhrXVhfYIsAxFQ,2922
8
+ pheval_exomiser/prepare/create_batch_commands.py,sha256=G-2pRboJalW8MeXDwSHR1ZAuhNdQJdHjJPxOo0KBgPM,18930
9
+ pheval_exomiser/prepare/tool_specific_configuration_options.py,sha256=pFzieoZogiPhSquN2p7THcXuCBrzqANwqbWO0e6BPu4,2943
10
10
  pheval_exomiser/prepare/write_application_properties.py,sha256=KmG7GvkQo8AhnhRyqohTFvqjfhEhbcs78UYYoigxJ3w,8933
11
11
  pheval_exomiser/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- pheval_exomiser/run/run.py,sha256=yyjjNgOOm1baDFWwQ2ENU4YeHtIOnvaQ7b3DmWtb7zY,7934
12
+ pheval_exomiser/run/run.py,sha256=n9cDv9E4d-NELCIY_v2UCrXqbWOo27TM2_9lPn-YOwI,8030
13
13
  pheval_exomiser/runner.py,sha256=RqVobVJlOwcPzbO5gLjDtkGaygWdFT9VrlIvOmyBQPw,2706
14
- pheval_exomiser-0.4.0.dist-info/METADATA,sha256=7fNZcLql69hJXVZr2XA3znjVp8O5s__FIHdCV6lu4A0,7692
15
- pheval_exomiser-0.4.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
16
- pheval_exomiser-0.4.0.dist-info/entry_points.txt,sha256=lbZMu-x7ns8UrFveWSqEQ1UB5l33TbRMomqBUyGYIwI,131
17
- pheval_exomiser-0.4.0.dist-info/RECORD,,
14
+ pheval_exomiser-0.4.2.dist-info/METADATA,sha256=vTvN9EASW_2YxWqZ4hQhWGIRIJtRMq_vTsEhTHR7h8g,7294
15
+ pheval_exomiser-0.4.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
16
+ pheval_exomiser-0.4.2.dist-info/entry_points.txt,sha256=lbZMu-x7ns8UrFveWSqEQ1UB5l33TbRMomqBUyGYIwI,131
17
+ pheval_exomiser-0.4.2.dist-info/RECORD,,