From 9ada4561be185205673c42cc1e54c9cc6af22d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Langer?= <61791748+bjlang@users.noreply.github.com> Date: Fri, 20 May 2022 18:48:40 +0200 Subject: [PATCH] Correct warning text --- Scoring_utilities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scoring_utilities.py b/Scoring_utilities.py index 65a5096..7f19503 100755 --- a/Scoring_utilities.py +++ b/Scoring_utilities.py @@ -161,7 +161,7 @@ def score_sequence_with_stubb(wtmxFile, window, seq_file=None, sequence=None, ba scores = [output[1]] except Exception as err: logging.warning("Error in score_sequence_with_stubb: %s"%err) - # Segmentation Fault occurs if number of N in window > length/2 wherase length is min(sequence length, window size) + # Segmentation Fault occurs if number of N in window > length/2 where length is min(sequence length, window size) return [float('nan')] else: if fitprobs_file: call = "stubb_fixedprobs_noPseudoCount %s %s %s 1 %s %s"%(seq_file, wtmxFile, window, fitprobs_file, arguments) @@ -171,7 +171,7 @@ def score_sequence_with_stubb(wtmxFile, window, seq_file=None, sequence=None, ba try: subprocess.check_call(call, shell=True, executable='/bin/bash') except subprocess.CalledProcessError as err: - logging.warning("Error occured while scoring sequence %s :\n %s"%(sequence, err)) + logging.warning("Error occured while scoring sequence file %s :\n %s"%(seq_file, err)) return [float('nan')] try: with open(seq_file + ".fen") as f: @@ -192,4 +192,4 @@ def score_sequence_with_stubb(wtmxFile, window, seq_file=None, sequence=None, ba scores = [list(map(float, output.strip().split()))[1]] if scrCrrMthd is not None: return [s - r_score for s in scores] - else: return scores \ No newline at end of file + else: return scores