diff --git a/src/dug/core/parsers/dbgap_parser.py b/src/dug/core/parsers/dbgap_parser.py index 1cb63b22..9cb46921 100644 --- a/src/dug/core/parsers/dbgap_parser.py +++ b/src/dug/core/parsers/dbgap_parser.py @@ -73,8 +73,9 @@ def __call__(self, input_file: InputFile) -> List[Indexable]: # Create DBGaP links as study/variable actions elem.collection_action = utils.get_dbgap_study_link(study_id=elem.collection_id) - elem.action = utils.get_dbgap_var_link(study_id=elem.collection_id, - variable_id=elem.id.split(".")[0].split("phv")[1]) + if "phv" in elem.id: + elem.action = utils.get_dbgap_var_link(study_id=elem.collection_id, + variable_id=elem.id.split(".")[0].split("phv")[1]) # Add to set of variables logger.debug(elem) elements.append(elem)