我目前正在研究分析偏斜差异的脚本。不幸的是,我的问题是,当字符串的长度增加时,运行时间变得太长,我似乎无法计算出我的答案。 def SkewGC(file):
countG = 0
countC = 0
diffGtoC = ""
# first, we need to find number of G's.
# the idea is, if G
我想从这里http://rosalind.info/problems/cons/ 我的剧本充满计数器列表和输出相同长度的字符串共识解决这个问题。我不认为有数学或指标错误发生,并且遇到了困难。我的代码: with open('C:/users/steph/downloads/rosalind_cons (3).txt') as f:
seqs = f.read().splitlines()