ここでの私の目標は、文字列のリストを int のリストと一致させようとすることです。
たとえば、文字列のリスト: wholelookup[uniprotID] = [A177T,I126T,M418T]
.
私のintのリスト: lookup[uniprotID] = [177,126,418]
.
一致する場合は、トークンを全体ルックアップで出力したいと思います。
これは私がこれまでに持っているものですが、結果として何も出力しませんでした:
for item in lookup[uniprotID]:
for names in wholelookup[uniprotID]:
if start <= item <= end and re.match(item, names) :
item, start, end = map(int, (item, start, end))
print names