Skip to content

Commit 8ea1a61

Browse files
authored
Merge pull request #19 from artic-network/18-edge-case-with-non-paired-read-with-no-primers
Add check for paired reads
2 parents 3759381 + 19bb6eb commit 8ea1a61

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ share/python-wheels/
2525
.installed.cfg
2626
*.egg
2727
MANIFEST
28+
.DS_store
2829

2930
# PyInstaller
3031
# Usually these files are written by a python script from a template

align_trim/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ def handle_segments(
372372
)
373373

374374
if not p1 or not p2:
375-
segment = segment1 if segment1 else segment2
375+
if paired:
376+
segment = segment1 if segment1 else segment2
376377
if args.verbose:
377378
print(
378379
f"{segment.query_name}: skipped as no primer found for segment",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "align_trim"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
license = "MIT"
55
license-files = ["LICEN[CS]E*"]
66

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)