From 145145720673c25210b517ca7ffdc1d34b665543 Mon Sep 17 00:00:00 2001 From: Hana Snow Date: Thu, 16 Jan 2025 11:20:21 -0500 Subject: [PATCH] update gcnv loading pedigree path --- seqr/utils/search/add_data_utils.py | 3 ++- seqr/views/apis/data_manager_api_tests.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/seqr/utils/search/add_data_utils.py b/seqr/utils/search/add_data_utils.py index 6fac5b5d5e..805f176239 100644 --- a/seqr/utils/search/add_data_utils.py +++ b/seqr/utils/search/add_data_utils.py @@ -178,4 +178,5 @@ def _upload_data_loading_files(projects: list[Project], user: User, file_path: s def _get_pedigree_path(pedigree_dir: str, genome_version: str, sample_type: str, dataset_type: str): - return f'{pedigree_dir}/{GENOME_VERSION_LOOKUP[genome_version]}/{dataset_type}/pedigrees/{sample_type}' + dag_dataset_type = _dag_dataset_type(sample_type, dataset_type) + return f'{pedigree_dir}/{GENOME_VERSION_LOOKUP[genome_version]}/{dag_dataset_type}/pedigrees/{sample_type}' diff --git a/seqr/views/apis/data_manager_api_tests.py b/seqr/views/apis/data_manager_api_tests.py index 537b880db6..6e700cda1e 100644 --- a/seqr/views/apis/data_manager_api_tests.py +++ b/seqr/views/apis/data_manager_api_tests.py @@ -1606,7 +1606,7 @@ def _trigger_error(self, url, body, dag_json, mock_open, mock_mkdir): response = self.client.post(url, content_type='application/json', data=json.dumps(body)) self._assert_expected_load_data_requests(trigger_error=True, dataset_type='GCNV', sample_type='WES') self._assert_trigger_error(response, body, dag_json) - self._has_expected_ped_files(mock_open, mock_mkdir, 'SV', sample_type='WES') + self._has_expected_ped_files(mock_open, mock_mkdir, 'GCNV', sample_type='WES') def _has_expected_ped_files(self, mock_open, mock_mkdir, dataset_type, sample_type='WGS', single_project=False): mock_open.assert_has_calls([