![]() |
|
#1
|
|||
|
|||
"Mapping algorithm" - Can anyone help me please ...???My output File is having the following data:
"MFITRWLFSTNHKDIGTLYLLFGAWAGMVGTALSLLIRAELGQPGTLLG DDQIYNVIVTA HAFVMIFFMVMPIMIGGFGNWLVPLMIGAPDMAFPRMNNMSFWLLPPSFL LLLASSTVEA GAGTGWTVYPPLAGNLAHAGASVDLAIFSLHLAGVSSILGAINFITTIIN MKPPALTQYQ TPLFVWSVMITAVLLLLSLPVLAAGITMLLTDRNLNTTFFDPAGGGDPIL YQHLFWFFGH PEVYILILPGFGMISHIVTYYSGKKEPFGYMGMVWAMMSIGFLGFIVWAH HMFTVGLDVD TRAYFTSATMIIAIPTGVKVFSWLATLHGGNIKWSPALLWALGFIFLFTI GGLTGIVLAN SSLDIVLHDTYYVVAHFHYVLSMGAVFAIMGGFVHWFPLFTGYTLNDLWA KIHFSIMFVG VNMTFFPQHFLGLSGMPRRYSDYPDAYTTWNIISSIGSFISLTAVILMVF IIWEAFASKR EVATVELTTTNIEWLYGCPPPYHTFEQPVFVKV MASTNTNLQKAIDLASKAAQEDKAGNYEEALQLYQHAVQYFLHVVKYEAQ GDKAKQSIRA KCTEYLDRAEKLKEYLKKKEKKPQKPVKEEQSGPVDEKGNDSDGEAESDD PEKKKLQNQL QGAIVIERPNVKWSDVAGLEGAKEALKEAVILPIKFPHLFTGKRTPWRGI LLFGPPGTGK SYLAKAVATEANNSTFFSISSSDLVSKWLGESEKLVKNLFQLARENKPSI IFIDEIDSLC GSRSENESEAARRIKTEFLVQMQGVGVDNDGILVLGATNIPWVLDSAIRR RFEKRIYIPL PEAHARAAMFRLHLGSTQNSLTEADFQELGRKTDGYSGADISIIVRDALM QPVRKVQSAT HFKKVRGPSRADPNCIVNDLLTPCSPGDPGAIEMTWMDVPGDKLLEPVVS MWDMLRSLSS TKPTVNEQDLLKLKKFTEDFGQEG" If u look carefully then u can see that there are two sequences. My code is as follows......what i am trying to do is, i already defined an array called: ngram [] = "FITRW".....when my code will run it should take my array and map with the first sequence.....if it gets any match then will print something and then after having done with the first one it will go to the second sequence and will do the same till my file ends....Can any one tell me in my code, where i am doing the mistake......Please help me....Regards !!! CPP / C++ / C Code:
----Faisal |
|
#2
|
|||
|
|||
Re: "Mapping algorithm" - Can anyone help me please ...???CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: "Mapping algorithm" - Can anyone help me please ...???Hi...L7Sqr....thanks a lot for ur reply. By the way i have done those changes which u did mention to me but then the output is coming as follows:
================================================== ==== E:\BlackBox\CS Research\C-Coding\Software>map MFITRWLFSTNHKDIGTLYLLFGAWAGMVGTALSLLIRAELGQPGTLLGD DQIYNVIVTA Found at 2 HAFVMIFFMVMPIMIGGFGNWLVPLMIGAPDMAFPRMNNMSFWLLPPSFL LLLASSTVEA GAGTGWTVYPPLAGNLAHAGASVDLAIFSLHLAGVSSILGAINFITTIIN MKPPALTQYQ TPLFVWSVMITAVLLLLSLPVLAAGITMLLTDRNLNTTFFDPAGGGDPIL YQHLFWFFGH PEVYILILPGFGMISHIVTYYSGKKEPFGYMGMVWAMMSIGFLGFIVWAH HMFTVGLDVD TRAYFTSATMIIAIPTGVKVFSWLATLHGGNIKWSPALLWALGFIFLFTI GGLTGIVLAN SSLDIVLHDTYYVVAHFHYVLSMGAVFAIMGGFVHWFPLFTGYTLNDLWA KIHFSIMFVG VNMTFFPQHFLGLSGMPRRYSDYPDAYTTWNIISSIGSFISLTAVILMVF IIWEAFASKR EVATVELTTTNIEWLYGCPPPYHTFEQPVFVKV MASTNTNLQKAIDLASKAAQEDKAGNYEEALQLYQHAVQYFLHVVKYEAQ GDKAKQSIRA KCTEYLDRAEKLKEYLKKKEKKPQKPVKEEQSGPVDEKGNDSDGEAESDD PEKKKLQNQL QGAIVIERPNVKWSDVAGLEGAKEALKEAVILPIKFPHLFTGKRTPWRGI LLFGPPGTGK SYLAKAVATEANNSTFFSISSSDLVSKWLGESEKLVKNLFQLARENKPSI IFIDEIDSLC GSRSENESEAARRIKTEFLVQMQGVGVDNDGILVLGATNIPWVLDSAIRR RFEKRIYIPL PEAHARAAMFRLHLGSTQNSLTEADFQELGRKTDGYSGADISIIVRDALM QPVRKVQSAT HFKKVRGPSRADPNCIVNDLLTPCSPGDPGAIEMTWMDVPGDKLLEPVVS MWDMLRSLSS TKPTVNEQDLLKLKKFTEDFGQEG ================================================== ==== If u see the output then will realize that it is just reading the lines, then whenever it is getting the first match then stoped.....and not implementing the mapping algo. to the rest of the sequences it is reading from the file..... Any idea what to do? -----> Faisal |
|
#4
|
|||
|
|||
Re: "Mapping algorithm" - Can anyone help me please ...???what mapping algorithm?
The string you are looking for only appears once within that file. You found it. Your code says to print and then find the next one. If there is no next one, you exit the program. |
|
#5
|
|||
|
|||
Re: "Mapping algorithm" - Can anyone help me please ...???Do u know what.....i am totally SUCKS today......
Thanks a lot....u r right......!!! I am doing the right thing but saying it is wrong......What the........i really heat this bullshit programming life Thanks again man.....it took my whole day.......!!! God bless u.... |
|
#6
|
|||
|
|||
Re: "Mapping algorithm" - Can anyone help me please ...???I don't understand where you got two sequences of the output.
Please explain. __________________
Linux is the best OS in the world. |
Recent GIDBlog
Toyota - 2008 August Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The