2022-09-16 ROSALIND_1: Counting DNA Nucleotides

# ----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 = " ")   

你可能感兴趣的:(2022-09-16 ROSALIND_1: Counting DNA Nucleotides)