Skip to content

Commit

Permalink
Add config option to analyze runs in reverse order (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika authored Sep 28, 2022
1 parent 76b073c commit 222d0b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto_cpo/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def find_fastq_dirs(config, check_symlinks_complete=True):
nextseq_run_id_regex = "\d{6}_VH\d{5}_\d+_[A-Z0-9]{9}"
fastq_by_run_dir = config['fastq_by_run_dir']
subdirs = os.scandir(fastq_by_run_dir)
if 'analyze_runs_in_reverse_order' in config and config['analyze_runs_in_reverse_order']:
subdirs = sorted(subdirs, key=lambda x: os.path.basename(x.path), reverse=True)
for subdir in subdirs:
run_id = subdir.name
matches_miseq_regex = re.match(miseq_run_id_regex, run_id)
Expand Down

0 comments on commit 222d0b7

Please sign in to comment.