Skip to content

Commit

Permalink
update gcnv loading pedigree path
Browse files Browse the repository at this point in the history
  • Loading branch information
hanars committed Jan 16, 2025
1 parent 01899fa commit 1451457
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion seqr/utils/search/add_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
2 changes: 1 addition & 1 deletion seqr/views/apis/data_manager_api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 1451457

Please sign in to comment.