# 读取fasta
# 解析每条序列的长度
chr1_seq = ‘ATATATATAT‘
chr2_seq = ‘ATATATATATCGCGCGCGCG‘
chr3_seq = ‘ATATATATATCGCGCGCGCGATATATATAT‘
chr4_seq = ‘ATATATATATCGCGCGCGCGATATATATATCGCGCGCGCG‘
chr5_seq = ‘ATATATATATCGCGCGCGCGATATATATATCGCGCGCGCGATATATATAT‘
# 求和
total_len = len(chr1_seq) + len(chr2_seq) + len(chr3_seq) + len(chr4_seq) + len(chr5_seq)
# 输出结果
print(total_len)
原文地址:https://www.cnblogs.com/caicai2019/p/10784026.html
时间: 2024-10-11 09:37:56