zoukankan      html  css  js  c++  java
  • 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
    '''
  • 相关阅读:
    AtCoder ABC 129F Takahashi's Basics in Education and Learning
    AtCoder ABC 129E Sum Equals Xor
    UVA 511 Do You Know the Way to San Jose?
    UVA 12504 Updating a Dictionary
    [Poi2000] 病毒
    [loj10061] 最短母串
    [Poi2010] Antisymmetry
    校内集训20181003
    校内集训20181001
    校内集训20180925
  • 原文地址:https://www.cnblogs.com/tmmuyb/p/3776854.html
Copyright © 2011-2022 走看看