I want additional python codes that will help me generate the second column (the column with numbers) of the output under the
codes. The codes here only generate the first column
by breaking the sequence in cds into threes. Thank you.
>>> cds = "atgagtgaacgtct gagcattaccccgct ggggccgtatatcgg cgcacaataa"
>>> for i in range(0,len(cds ),3):
... print cds[i:i+3],
...
Atg 1
Agt 2
Gaa 3
Cgt 4
Ctg 5
Agc 6
Att 7
Acc 8
Ccg 9
Ctg 10
Ggg 11
Ccg 12
Tat 13
Atc 14
Ggc 15
Gca 16
Caa 17
Taa 18
Taa 19
codes. The codes here only generate the first column
by breaking the sequence in cds into threes. Thank you.
>>> cds = "atgagtgaacgtct gagcattaccccgct ggggccgtatatcgg cgcacaataa"
>>> for i in range(0,len(cds ),3):
... print cds[i:i+3],
...
Atg 1
Agt 2
Gaa 3
Cgt 4
Ctg 5
Agc 6
Att 7
Acc 8
Ccg 9
Ctg 10
Ggg 11
Ccg 12
Tat 13
Atc 14
Ggc 15
Gca 16
Caa 17
Taa 18
Taa 19
Comment