Skip to content

Commit

Permalink
[critica] protein fix 5' to 3' reverse complement
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocoParrot committed Sep 12, 2021
1 parent 4ccd90e commit 96aaf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orffinder/orffinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit 96aaf28

Please sign in to comment.