Skip to content

Commit

Permalink
'info' command: add bases mask & flow cell mode, and trap for bad dir…
Browse files Browse the repository at this point in the history
…ectory.
  • Loading branch information
pjbriggs committed Dec 19, 2023
1 parent 79638d2 commit dce83d0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions auto_process_ngs/cli/auto_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,10 +1295,16 @@ def info(args):
if not analysis_dir:
analysis_dir = os.getcwd()
d = AutoProcess(analysis_dir,allow_save_params=False)
# Run ID
print("Run ID : %s" % d.run_id)
print("Platform : %s" % d.metadata.platform)
print("Sample sheet: %s" % d.params.sample_sheet)
# Check metadata and params were loaded
if not (d.metadata and d.params):
logger.fatal("Missing metadata and/or parameters")
sys.exit(1)
# Report information
print("Run ID : %s" % d.run_id)
print("Platform : %s" % d.metadata.platform)
print("Flow cell mode: %s" % d.metadata.flow_cell_mode)
print("Bases mask : %s" % d.metadata.default_bases_mask)
print("Sample sheet : %s" % d.params.sample_sheet)

def metadata(args):
"""
Expand Down

0 comments on commit dce83d0

Please sign in to comment.