• ch l
    了解作者
  • Python
    开发工具
  • 1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 3
    下载次数
  • 2018-12-01 17:35
    上传日期
基于Python统计一条氨基酸序列中每个氨基酸出现次数
统计各氨基酸出现次数.zip
  • 统计各氨基酸出现次数.py
    1.6KB
内容介绍
# 统计一段蛋白质序列中20种氨基酸出现的次数 list1 = [] seq = '''mpraprcrav rsllrshyre vlplatfvrr lgpqgwrlvq rgdpaafral vaqclvcvpw darpppaaps frqvsclkel varvlqrlce rgaknvlafg falldgargg ppeafttsvr sylpntvtda lrgsgawgll lrrvgddvlv hllarcalfv lvapscayqv cgpplyqlga atqarpppha sgprrrlgce rawnhsvrea gvplglpapg arrrggsasr slplpkrprr gaapepertp vgqgswahpg rtrgpsdrgf cvvsparpae eatslegals gtrhshpsvg rqhhagppst srpprpwdtp cppvyaetkh flyssgdkeq lrpsfllssl rpsltgarrl vetiflgsrp wmpgtprrlp rlpqrywqmr plflellgnh aqcpygvllk thcplraavt paagvcarek pqgsvaapee edtdprrlvq llrqhsspwq vygfvraclr rlvppglwgs rhnerrflrn tkkfislgkh aklslqeltw kmsvrdcawl rrspgvgcvp aaehrlreei lakflhwlms vyvvellrsf fyvtettfqk nrlffyrksv wsklqsigir qhlkrvqlre lseaevrqhr earpalltsr lrfipkpdgl rpivnmdyvv gartfrrekr aerltsrvka lfsvlnyera rrpgllgasv lglddihraw rtfvlrvraq dpppelyfvk vdvtgaydti pqdrltevia siikpqntyc vrryavvqka ahghvrkafk shvstltdlq pymrqfvahl qetsplrdav vieqssslne assglfdvfl rfmchhavri rgksyvqcqg ipqgsilstl lcslcygdme nklfagirrd glllrlvddf llvtphltha ktflrtlvrg vpeygcvvnl rktvvnfpve dealggtafv qmpahglfpw cgllldtrtl evqsdyssya rtsirasltf nrgfkagrnm rrklfgvlrl kchslfldlq vnslqtvctn iykilllqay rfhacvlqlp fhqqvwknpt fflrvisdta slcysilkak nagmslgakg aagplpseav qwlchqafll kltrhrvtyv pllgslrtaq tqlsrklpgt tltaleaaan palpsdfkti ld''' for i in 'acdefghiklmnpqrstvwy': num = seq.count(i) print(i,num) list1.append(num) print(max(list1))
评论
    相关推荐