Sub convert_mut_string( input As List) As List
Dim output As List
Dim mutstring As List
Dim mutpercent As List
output.Initialize
mutstring.Initialize
mutpercent.Initialize
mutstring = input.Get(0)
mutpercent = input.Get(1)
For Each S As String In mutstring
Dim b, b2, b3, b4, b5 As List 'buffers
b.Initialize 'used for
b2.Initialize
b3.Initialize
b.AddAll(Regex.Split("/", S)) 'result can only be 2 strings.
b2.AddAll( Regex.Split("_", Regex.Split(" ; ", b.Get(0)))) 'this is everything before the / sign
b3.AddAll( Regex.Split("_", Regex.Split(" ; ", b.Get(1)))) 'this is everything after the / sign
Log(b2)
Msgbox(b2, "Output")
Log(b3)
Msgbox(b3, "Output")
'loop through both lists and create new textstring
For i =0 To b2.Size -1
Log (b2.Get(i) &"/"& b3.Get(i))
Select check_visual(b2.Get(i), b3.Get(i)) 'true for visual/DF, false for split/SF, none for Not mutated, intermediate for recombinations
Case "true"
Case "false"
Case "none"
Case "intermediate"
End Select
Next
Next
End Sub