This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,7 @@
|
||||
def gc_content(s: String) -> Float64:
|
||||
var count = 0
|
||||
for i in range(s.count_codepoints()):
|
||||
var c = String(s[codepoint=i])
|
||||
if c == "G" or c == "C":
|
||||
count = count + 1
|
||||
return Float64(count) / Float64(s.count_codepoints())
|
||||
Reference in new issue
Block a user