Skip to content

Commit

Permalink
clean error logs for non-compliant refdata
Browse files Browse the repository at this point in the history
  • Loading branch information
sigven committed Jun 19, 2024
1 parent 1a425fa commit b8fdbfe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pcgr/arg_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def verify_input_files(arg_dict):
# os.path.abspath(arg_dict["input_germline"]))

vep_dir = verify_vep_cache(arg_dict, logger)
refdata_assembly_dir = verify_refdata(arg_dict, logger, cpsr = True)
refdata_assembly_dir = verify_refdata(arg_dict, logger, cpsr = False)


input_data = {
Expand Down Expand Up @@ -439,12 +439,12 @@ def verify_refdata(arg_dict: dict, logger = None, cpsr = False):

if compliant_data_bundle == 0:
err_msg = (
f'The PCGR data bundle is not compliant with the software version - please download the '
f'latest software and data bundle (see https://github.com/sigven/cpsr for instructions)')
f'The PCGR/CPSR reference bundle is not compliant with the software version - please download the '
f'latest software and reference bundle (see https://sigven.github.io/pcgr/articles/installation.html for instructions)')
if cpsr is False:
err_msg = (
f'The PCGR data bundle is outdated - please download the latest data bundle ',
f'(see https://sigven.github.io/pcgr for instructions)'
f'The PCGR reference bundle is is not compliant with the software version - please download the ',
f'latest reference bundle - see https://sigven.github.io/pcgr/articles/installation.html for instructions)'
)
error_message(err_msg,logger)

Expand Down

0 comments on commit b8fdbfe

Please sign in to comment.