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 9032559 commit f9f87ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/azul/plugins/repository/tdr_anvil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import uuid

import attrs
from docutils.nodes import description
from more_itertools import (
one,
)
Expand Down Expand Up @@ -457,8 +458,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 f9f87ff

Please sign in to comment.