Is it possible to do a list comprehension expression on the following?
end_pieces = ['ATCGCTGCAATG', 'CCTACGGCATGG', 'AGTACTTTATTA', 'TAACAGTTCTTC']
genome_ht = {'ATCGCTGCAATG': [18], 'CCTACGGCATGG': [30], 'AGTACTTTATTA': [42]}
start_positions = []
count = 0
for read_piece in end_pieces:
for index in genome_ht[read_piece]:
start_positions.append(index-(count*KEY_LENGTH))
count +=1
>>> print start_positions
[18, 18, 18]