# 读取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)
posted on 2019-04-28 14:59  caicai2019  阅读(238)  评论(0编辑  收藏  举报