Skip to content

Commit

Permalink
fix: allow varfish upload without SV effects (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jul 17, 2023
1 parent c1eb9c8 commit 4aead65
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions varfish_cli/case/create_case_import.py
Expand Up @@ -475,11 +475,8 @@ def _split_files_by_role(self): # noqa
issues = []
if not self.path_ped:
issues.append("no PED file given")
if len(self.paths_genotype_sv) != len(self.paths_effect_sv):
issues.append(
"different number of SV genotypes (%d)/effects (%d)"
% (len(self.paths_genotype_sv), len(self.paths_effect_sv))
)
if len(self.paths_effect_sv):
logging.info("Will ignore any SV effect files")
if not self.paths_genotype and not self.paths_genotype_sv:
issues.append("neither small nor SVs given")
if len(self.paths_genotype) > 1:
Expand Down Expand Up @@ -785,18 +782,6 @@ def _upload_files(self, case_import_info: models.CaseImportInfo):
)
for path in self.paths_genotype_sv
]
good_md5s += [
self._perform_file_upload(
path=path.path,
api_list_func=api.effects_file_list,
func_uuid_arg="variant_set_import_info_uuid",
uuid_value=variant_set_import_info.sodar_uuid,
obj_type="effects file",
file_type=EffectsFile,
api_create_func=api.effects_file_upload,
)
for path in self.paths_effect_sv
]
good_md5s += [
self._perform_file_upload(
path=path.path,
Expand Down

0 comments on commit 4aead65

Please sign in to comment.