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

move CDS warning to debug #196

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
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: 3 additions & 3 deletions big_scape/genbank/cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ def parse(
not correct_translation
and not parent_gbk.source_type == SOURCE_TYPE.MIBIG
):
logging.warning(
logging.debug(
"CDS (%s, %s) from %s:"
" translation provided by antiSMASH and generated by biopython"
" do not match, consider checking if there is something"
" special with this CDS",
" do not match, likely due to fuzzy starts/ends."
" Consider checking if there is something special with this CDS",
nt_start,
nt_stop,
parent_gbk.path,
Expand Down
2 changes: 1 addition & 1 deletion test/genbank/test_cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def test_parse_translation_antismash_larger_mismatch(self):
"GADYGLCRVYRNEPWHFELRPEAIEHGCPPLYADPSHDPXXXX"
]

with self.assertLogs(level=logging.INFO) as cm:
with self.assertLogs(level=logging.DEBUG) as cm:
logging.info("nonsense")
CDS.parse(feature, parent_gbk)

Expand Down
Loading