pheval-exomiser 0.3.0__tar.gz → 0.3.2__tar.gz

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.
Files changed (16) hide show
  1. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/PKG-INFO +4 -1
  2. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/README.md +3 -0
  3. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/pyproject.toml +1 -1
  4. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/post_process/post_process_results_format.py +1 -1
  5. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/prepare/create_batch_commands.py +8 -2
  6. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/__init__.py +0 -0
  7. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/cli.py +0 -0
  8. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/constants.py +0 -0
  9. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/post_process/__init__.py +0 -0
  10. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/post_process/post_process.py +0 -0
  11. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/prepare/__init__.py +0 -0
  12. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/prepare/tool_specific_configuration_options.py +0 -0
  13. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/prepare/write_application_properties.py +0 -0
  14. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/run/__init__.py +0 -0
  15. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/run/run.py +0 -0
  16. {pheval_exomiser-0.3.0 → pheval_exomiser-0.3.2}/src/pheval_exomiser/runner.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pheval_exomiser
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary:
5
5
  Author: Yasemin Bridges
6
6
  Author-email: y.bridges@qmul.ac.uk
@@ -162,6 +162,9 @@ e.g.,
162
162
     └── vcf
163
163
  ```
164
164
 
165
+ > [!IMPORTANT]
166
+ > If a `vcf` directory is not found in the testdata directory then the path to the VCF will be taken from the phenopacket if `variant_analysis` is set to True.
167
+
165
168
  ## Run command
166
169
 
167
170
  Once the testdata and input directories are correctly configured for the run, the `pheval run` command can be executed.
@@ -139,6 +139,9 @@ e.g.,
139
139
     └── vcf
140
140
  ```
141
141
 
142
+ > [!IMPORTANT]
143
+ > If a `vcf` directory is not found in the testdata directory then the path to the VCF will be taken from the phenopacket if `variant_analysis` is set to True.
144
+
142
145
  ## Run command
143
146
 
144
147
  Once the testdata and input directories are correctly configured for the run, the `pheval run` command can be executed.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pheval_exomiser"
3
- version = "0.3.0"
3
+ version = "0.3.2"
4
4
  description = ""
5
5
  authors = ["Yasemin Bridges <y.bridges@qmul.ac.uk>",
6
6
  "Julius Jacobsen <j.jacobsen@qmul.ac.uk>",
@@ -136,7 +136,7 @@ def create_standardised_results(
136
136
  ):
137
137
  sort_order = SortOrder.ASCENDING if sort_order.lower() == "ascending" else SortOrder.DESCENDING
138
138
  for exomiser_json_result_path in files_with_suffix(result_dir, ".json"):
139
- exomiser_json_result = pl.read_json(exomiser_json_result_path)
139
+ exomiser_json_result = pl.read_json(exomiser_json_result_path, infer_schema_length=None)
140
140
  if gene_analysis:
141
141
  gene_results = extract_gene_results_from_json(exomiser_json_result, score_name)
142
142
  generate_gene_result(
@@ -100,8 +100,14 @@ class CommandCreator:
100
100
  )
101
101
 
102
102
  def add_variant_analysis_arguments(self, vcf_dir: Path) -> ExomiserCommandLineArguments:
103
- vcf_file_data = PhenopacketUtil(self.phenopacket).vcf_file_data(
104
- self.phenopacket_path, vcf_dir
103
+ vcf_file_data = (
104
+ PhenopacketUtil(self.phenopacket).vcf_file_data(self.phenopacket_path, vcf_dir)
105
+ if vcf_dir.exists()
106
+ else [
107
+ file
108
+ for file in self.phenopacket.files
109
+ if file.file_attributes["fileFormat"] == "vcf"
110
+ ][0]
105
111
  )
106
112
  output_options_file = self.assign_output_options_file()
107
113
  if self.environment == "local":