12-09-2019 05:30 AM - edited 12-09-2019 05:45 AM
Hi 😄 I have to compare two nucleotide sequence in different size. On output I have to receive index (of longer sequence) in which nucleotide are the same.
I need help and tips. On the beginning I was thinking that function Match Pattern will be enough but now I see that I have huge problem with this task.
Solved! Go to Solution.
12-09-2019 05:36 AM
Hi Girl,
so you want to search for one string inside another string? Use MatchPattern…
@Crazygirl wrote:
I need help and tips. On the beginning I was thinking that function Match Pattern will be enough but now I see that I have huge problem with this task.
Which problems do you encounter?
What is your current state of the VI?
Can you attach your VI with example strings and expected output?
Btw. putting your email address in public forums is begging for SPAM…
12-09-2019 05:58 AM
Seems you are looking for the Longest Common Subsequence.
Good news is, it's been done before.
Bad new is it isn't trivial.
I suppose it depends on the lengths of the sequences, for small strings you'd need less efficiency, and a naïve algorithm might work...
12-12-2019 12:43 PM
Hi everyone 🙂
I have to compare two nucleotide sequence in different size. On output I have to receive index (of longer sequence) in which nucleotide are the same.
I made it but this work only when this sequences are the same 😞
I would appreciate if someone help me.
12-12-2019 01:01 PM
Hi girl,
no need to start a new thread for the very same problem…
You forgot to include typical inputs in your "sequence" strings. Please provide typical inputs and the expected output for those inputs!
What purpose has that while loop?
Why is there an "default if unwired" tunnel in the case structure?
Why is the shift register not initialized?