From 96aaf28589767a6a48444e47471fe39dc70a522f Mon Sep 17 00:00:00 2001 From: ChocoParrot Date: Sun, 12 Sep 2021 21:17:10 +0800 Subject: [PATCH] [critica] protein fix 5' to 3' reverse complement --- orffinder/orffinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orffinder/orffinder.py b/orffinder/orffinder.py index 521c6b0..acb522f 100644 --- a/orffinder/orffinder.py +++ b/orffinder/orffinder.py @@ -215,7 +215,7 @@ def getORFProteins (sequence, translation_table=1, return_loci=False, **kwargs): locus["protein"] = Seq(forward[locus["start"] - 1 : locus["end"] - 1 - difference]).translate() else: - locus["protein"] = Seq(reverse[sequence_length - locus["start"] - 1 : sequence_length - locus["end"] - 1 - difference]).translate() + locus["protein"] = Seq(reverse[sequence_length - locus["start"] + 1 : sequence_length - locus["end"] + 1 - difference]).translate() proteins.append(locus["protein"])