首页 > 代码库 > BioPython-1

BioPython-1

# -*- coding: utf-8 -*-
"""
Created on Sun Jun 08 21:36:24 2014

@author: cpycpp
"""

"""
BioPython(www.bipython.org)开始于1999年8月,发起者为Jeff Chang和Andrew Dalke。

同类模块BioPerl,是Bio*项目组之一(www.open-bio.org)。

错误追踪系统:bugzilla.open-bio.org

遵循的协议:BioPython License

BioPython组件
"""

import Bio.Alphabet

print Bio.Alphabet.ThreeLetterProtein.letters


‘‘‘
Output:
[‘Ala‘, ‘Asx‘, ‘Cys‘, ‘Asp‘, ‘Glu‘, ‘Phe‘, ‘Gly‘, ‘His‘, ‘Ile‘, ‘Lys‘, ‘Leu‘, ‘Met‘, ‘Asn‘, ‘Pro‘, ‘Gln‘, ‘Arg‘, ‘Ser‘, ‘Thr‘, ‘Sec‘, ‘Val‘, ‘Trp‘, ‘Xaa‘, ‘Tyr‘, ‘Glx‘]
‘‘‘

from Bio.Alphabet import IUPAC

print IUPAC.IUPACProtein.letters
‘‘‘
Output:
ACDEFGHIKLMNPQRSTVWY
‘‘‘

print IUPAC.unambiguous_dna.letters
‘‘‘
Output:
GATC
‘‘‘
   
‘‘‘
在BioPython中ambiguous_dna定义为有歧义的字母表,如S可能代表核算C或G,H可能代表A、C、T
‘‘‘
print IUPAC.ambiguous_dna.letters
‘‘‘
Output:
GATCRYWSMKHBVDN
‘‘‘

‘‘‘
在BioPython中ExtendedIUPACProtein定义为表示常见蛋白质中不常见的氨基酸的字典
‘‘‘
print IUPAC.ExtendedIUPACProtein.letters
‘‘‘
Output:
ACDEFGHIKLMNPQRSTVWYBXZJUO
‘‘‘

‘‘‘
在BioPython中ExtendedIUPACDNA定义为表示核苷酸的扩展库,允许字母带有修饰的碱基
‘‘‘
print IUPAC.ExtendedIUPACDNA.letters
‘‘‘
Output:
GATCBDSW
‘‘‘