Skip to content

Commit

Permalink
reduce whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian Jamasb committed Jul 8, 2024
1 parent 61ff468 commit 6e41d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biopandas/mmtf/pandas_mmtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def _seq1(seq, charmap: Dict[str, str], undef_code="X"):
onecode = {k.upper(): v for k, v in charmap.items()}
# add the given termination codon code and custom maps
onecode.update((k.upper(), v) for k, v in charmap.items())
seqlist = [seq[3 * i : 3 * (i + 1)] for i in range(len(seq) // 3)]
seqlist = [seq[3 * i:3 * (i + 1)] for i in range(len(seq) // 3)]
return "".join(onecode.get(aa.upper(), undef_code) for aa in seqlist)


Expand Down

0 comments on commit 6e41d7f

Please sign in to comment.