我想将excel中一列由三个字母组成的氨基酸转换为一个字母,并将一个字母的氨基酸打印到excel文件中相应的每一行。我知道我可以用biopython
来做这个
我所尝试的:
import Bio
from Bio.SeqUtils import seq1
seq1("MetAlaIleValMetGlyArgTrpLysGlyAlaArgTer")
'MAIVMGRWKGAR*'
但我希望大家理解,我不能为python转换字符串。我需要在excel中阅读一整列,然后按转换后的1个字母顺序打印一个新列。供参考的图片:
Tags:
对于旧的xls文件,我在下面的托管代码中使用了保存副本的示例 您的文件的新列。我知道pandas库可以更好地管理xlx和更新版本。让我知道它对你有用
相关问题 更多 >
编程相关推荐