Skip to content

Commit

Permalink
fixup! [r] Support for AnVIL duos_id (#6620)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirho-ucsc committed Nov 22, 2024
1 parent 16ae9bc commit 7b0b646
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/azul/plugins/repository/tdr_anvil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,12 @@ def _supplementary_bundle(self, bundle_fqid: TDRAnvilBundleFQID) -> TDRAnvilBund
def _duos_bundle(self, bundle_fqid: TDRAnvilBundleFQID) -> TDRAnvilBundle:
assert not bundle_fqid.is_batched, bundle_fqid
duos_info = self.tdr.get_duos(bundle_fqid.source)
duos_id = None if duos_info is None else one(duos_info['consentGroups'])['datasetIdentifier']
description = None if duos_info is None else duos_info.get('studyDescription')
if duos_info is None:
duos_id = None
description = None
else:
duos_id = one(duos_info['consentGroups'])['datasetIdentifier']
description = duos_info.get('studyDescription')
ref, row = self._get_dataset(bundle_fqid.source.spec)
expected_entity_id = change_version(bundle_fqid.uuid,
self.bundle_uuid_version,
Expand Down

0 comments on commit 7b0b646

Please sign in to comment.