Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default motif check to False in seqops.isMotifInClip() #29

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/teloclip/seqops.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def isMotifInClip(samline, motifList, leftClip, rightClip, leftClipLen, rightCli
# Sam seq field
SAM_SEQ = 9

# Initialize leftcheck and rightcheck
leftcheck = False
rightcheck = False

# Search motif/s as regex in the clipped segment
if leftClip:
leftcheck = check_sequence_for_patterns(
Expand All @@ -149,4 +153,4 @@ def isMotifInClip(samline, motifList, leftClip, rightClip, leftClipLen, rightCli
)

# True if either clipped end sequence contains at least one instance of any motif.
return any(leftcheck, rightcheck)
return any([leftcheck, rightcheck])