I know this question has been asked and I have read through them but I still can't get this to work.
I want to do the following:
bigDict={'AABAA':{'00500':4, '00110':1, '00001':1}, 'AAAAA':{'03300':15, '03110':10, '00401':1}, 'BBBBB':{'11500':1, '11110':1, '11111':1}}
the numbers WITHOUT quotes, 4,1,1,15,10,1,1,1,1 are the COUNTS of those strings which are part of the larger string.
Is this possible in python using nested dictionary? Thank you
I use a sliding window move along a string like AAAABBBBBBLLLLLLAAA and once I find the 5 seq length string for example AABAA, I take that and find the corresponding "number" seq '00500', if I encounter another AABAA then I extract the number seq for that, and if that is again 00500, I now increase the counter for 00500 to 2 from 1