2022-09-16 ROSALIND_1: Counting

2022-09-16  本文已影响0人  小孟在充电
# ----ROSALIND_1: ----
# Counting DNA Nucleotides

with open("1_rosalind_dna.txt") as file_object:
    seq = file_object.readlines()
    seq = [x.strip("\n") for x in seq]

def get_count(seq):
    seq = str(seq)
    base = "ACTG"
    for i in base:
        print(seq.count(i), end = " ")   
上一篇下一篇

猜你喜欢

热点阅读