I am still working on my same project and have run into another little problem. I have created a flat file with data from a server, each line looks like this:
BLAT Search Results
ACTIONS QUERY SCORE START END QSIZE IDENTITY CHRO STRAND START END SPAN
---------------------------------------------------------------------------------------------------
browser details Musmusculuslet-7g 21 1 21 21 100.0% 22 + 46884872 46884892 21
browser details Musmusculuslet-7i 21 1 21 21 100.0% 5 + 50605174 50605194 21
My original input looked like this:
>Musmusculuslet-7g
UGAGGUAGUAGUUUGUACAGU
>Musmusculuslet-7i
UGAGGUAGUAGUUUGUGCUGU
As you can see, the original RNA codes were deleted in the reply. Also, my replies are sorted differently and have multiple matches in some cases, so I want to create a library that has all of my matches, and then feed in the above file and add the RNA codes whenever it finds the matching Musmusculus statements. I have the following code, but it just matches an exact string:
Expand|Select|Wrap|Line Numbers
- DictionaryMaker ( filename ):
- dict = {}
- for i in dict.keys(practice):
- if i == string:
- print 'Yes there is a match!'
- string = string + ' ' + practice[i]
Any help would be appreciated!
Mark