modernatx / seqlike

Unified biological sequence manipulation in Python
https://modernatx.github.io/seqlike
Apache License 2.0
207 stars 21 forks source link

Standard keyword arguments for translate in .aa() #25

Closed ndousis closed 2 years ago

ndousis commented 2 years ago

As implemented currently, the SeqLike method aa passes kwargs to SeqRecord.translate, and so the default call to .aa() loses SeqRecord attributes like id and name. I propose that we keep SeqLike.translate(**kwargs), but remove these optional arguments from aa and make .translate return a new SeqRecord with the input SeqRecord attributes.