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

override GOOD_SEQID and GOOD_COVERAGE with seqid and coverage if higher #1824

Merged
merged 2 commits into from
Feb 8, 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
4 changes: 2 additions & 2 deletions prody/proteins/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,8 @@ def mapChainOntoChain(mobile, target, **kwargs):
simple_target, simple_mobile)
_seqid, _cover = calcScores(n_match, n_mapped, len(simple_target))

trivial_seqid = GOOD_SEQID if pwalign else seqid
trivial_cover = GOOD_COVERAGE if pwalign else coverage
trivial_seqid = max(GOOD_SEQID, seqid) if pwalign else seqid
trivial_cover = max(GOOD_COVERAGE, coverage) if pwalign else coverage
if _seqid >= trivial_seqid and _cover >= trivial_cover:
LOGGER.debug('\tMapped: {0} residues match with {1:.0f}% '
'sequence identity and {2:.0f}% overlap.'
Expand Down
Loading