BioPython 字母汤
Biopython noob 这里,我正在尝试创建一个程序,该程序使用 Biopython 包 Alphabet 和字母表模块 IUPAC 将列出的类的字母写出到名为 AlphabetSoupOuput.txt 的文件中。
- ThreeLetterProtein
- IUPACProtein
- unambiguously_dna
- ambigously_dna
- Extended IUPACProtein
- Extended IUPACDNA
每组字母应写入输出文件中的单行,并且字母应以逗号分隔。每组字母之前的行应包含一个描述字母的标签,并在该行的第一个位置有一个 #,例如
三字母蛋白质
Ala、Asx、Cys、...、Glx
蛋白质字母 A、C、D、E、...、Y
我该怎么做?
Biopython noob here, I'm trying to create a program that uses the Biopython package Alphabet and alphabet module IUPAC to write out the letters of the classes listed to a file called alphabetSoupOuput.txt.
- ThreeLetterProtein
- IUPACProtein
- unambiguous_dna
- ambiguous_dna
- ExtendedIUPACProtein
- ExtendedIUPACDNA
Each group of letters should be written to its single line in the output file and the letters should be separated by commas. The line before each group of letters should contain a label that describes the letters and has a # in the first position of that line, e.g.
Three Letter Protein
Ala, Asx, Cys, ..., Glx
Protein Letters
A, C, D, E, ..., Y
How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BioStar StackExchange 上对此进行了回答:
http://biostar.stackexchange.com /questions/8370/working-with-alphabet-soup
http://biostar.stackexchange.com/questions/8371/extracting-data-from-classes-in-python
This was answered on the BioStar StackExchange:
http://biostar.stackexchange.com/questions/8370/working-with-alphabet-soup
http://biostar.stackexchange.com/questions/8371/extracting-data-from-classes-in-python