Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonFreed committed Dec 10, 2024
1 parent 8488c5a commit 0998b86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sentieon_cli/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def add_job(self, job: Job, dependencies: Optional[Set[Job]] = None):
)

if isinstance(dependencies, set) and len(dependencies) > 0:
self.waiting_jobs[job] = dependencies
self.waiting_jobs[job] = dependencies.copy()
for dependency in dependencies:
downstream = self.planned_jobs.setdefault(dependency, [])
downstream.append(job)
Expand Down
6 changes: 4 additions & 2 deletions sentieon_cli/dnascope_longread.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,10 +926,12 @@ def dnascope_longread(
realign_jobs: Set[Job] = set()
if align:
sample_input, realign_jobs = align_inputs(**locals())
map(dag.add_job, realign_jobs)
for job in realign_jobs:
dag.add_job(job)
aligned_fastq, align_jobs = align_fastq(**locals())
sample_input.extend(aligned_fastq)
map(dag.add_job, align_jobs)
for job in align_jobs:
dag.add_job(job)

if not skip_mosdepth:
mosdpeth_jobs = mosdepth(**locals())
Expand Down

0 comments on commit 0998b86

Please sign in to comment.