Skip to content

Commit 218a38c

Browse files
committed
Minor fix for issue #102 with paired ended mode.
1 parent c91d19f commit 218a38c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/python-app.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: NEAT unit tests
55

66
on:
77
push:
8-
branches: [ "main", "develop" ]
8+
branches:
99
pull_request:
10-
branches: [ "main" ]
10+
branches:
1111

1212
jobs:
1313
build:

neat/read_simulator/utils/generate_reads.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,10 @@ def generate_reads(reference: SeqRecord,
430430

431431
final_sam_dict = {}
432432

433-
_LOG.debug(f"Paired percentage = {len(paired_reads)/len(sam_read_order)}")
433+
if len(sam_read_order) > 0:
434+
_LOG.debug(f"Paired percentage = {len(paired_reads) / len(sam_read_order)}")
435+
else:
436+
_LOG.debug("Paired percentage = 0 (no sam read orders)")
434437

435438
_LOG.debug("Writing fastq(s) and optional tsam, if indicated")
436439
with (

0 commit comments

Comments
 (0)