Skip to content

Commit

Permalink
always set unarchive=True if unarchive_only=True
Browse files Browse the repository at this point in the history
  • Loading branch information
jethror1 committed Jul 25, 2024
1 parent 9609ea5 commit b4d1dca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions resources/home/dnanexus/dias_batch/dias_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(self, **inputs) -> None:
self.check_assay()
self.check_assay_config_dir()
self.check_mode_set()
self.check_unarchive_set()
self.check_single_output_dir()
self.check_cnv_call_and_cnv_call_job_id_mutually_exclusive()
self.check_cnv_calling_for_cnv_reports()
Expand Down Expand Up @@ -167,6 +168,18 @@ def check_mode_set(self):
'Reports argument specified with no manifest file'
)

def check_unarchive_set(self):
"""
Checks that if unarchive_only specified that unarchive will
default to also being specified
"""
if self.inputs.get('unarchive_only') and not self.inputs.get('unarchive'):
print(
"-iunarchive_only specified but -unarchive not specified, "
"setting unarchive to True"
)
self.inputs['unarchive'] = True

def check_cnv_call_and_cnv_call_job_id_mutually_exclusive(self):
"""
Check that both cnv_call and cnv_call_job_id have not been
Expand Down Expand Up @@ -301,6 +314,9 @@ def main(
# assign single out dir in case of missing / output prefix to path
single_output_dir = check.inputs['single_output_dir']

# ensure unarchive is set from CheckInputs.check_unarchive_set
unarchive = check.inputs['unarchive']

# time of running for naming output folders
start_time = time_stamp()

Expand Down

0 comments on commit b4d1dca

Please sign in to comment.