Hello LabView-Community, i have a question which is very easy for you i think. i have a sequence in a string, for example "ACGTAA". Now i want just to now how many A´s, C´s, G´s and T´s are in it. In this case A=3, C=1, G=1, T=1. Yes, you have right, i´m really a beginner 😉 Do you know a VI for it or have a info for me?
try using the match pattern function under the string palette. If you place this in a loop and search until the offset past match is -1 you will see how many iterations of the loop have executed and that will tell you how many letters you have. Hope this helps.
There's a simpler way to do it. Convert the string to a character array. Sort the array. Step through the array looking for changes (from one character to the next) and count the number of characters between the breaks. See the attached VI. Cheers.