Details
Description
Example:
>s1
aaaaMMMMMMMMMMMaaa
Using the following code fragment:
af = new jalview.io.FileLoader().LoadFileWaitTillLoaded("s1 aaaaaaMMMMMMMMMMMMMMMaaaa",jalview.io.FormatAdapter.PASTE)
f = new jalview.analysis.Finder(af.getViewport().getAlignment(),null)
f.setFindAll(true)
f.find("M+")
println f.getSearchResults().toString()
Results in output:
[6MMMMMMMMMMMMMMM7MMMMMMMMMMMMMM8MMMMMMMMMMMMM9MMMMMMMMMMMM10MMMMMMMMMMM11MMMMMMMMMM12MMMMMMMMM13MMMMMMMM14MMMMMMM15MMMMMM16MMMMM17MMMM18MMM19MM20M]
For a run of matches, a match is produced at each point where the pattern still matches. Similarly, using the same pattern in the find dialog and hitting 'Find next' steps through the run of Ms. Find should only report the longest of these matches.
>s1
aaaaMMMMMMMMMMMaaa
Using the following code fragment:
af = new jalview.io.FileLoader().LoadFileWaitTillLoaded("s1 aaaaaaMMMMMMMMMMMMMMMaaaa",jalview.io.FormatAdapter.PASTE)
f = new jalview.analysis.Finder(af.getViewport().getAlignment(),null)
f.setFindAll(true)
f.find("M+")
println f.getSearchResults().toString()
Results in output:
[6MMMMMMMMMMMMMMM7MMMMMMMMMMMMMM8MMMMMMMMMMMMM9MMMMMMMMMMMM10MMMMMMMMMMM11MMMMMMMMMM12MMMMMMMMM13MMMMMMMM14MMMMMMM15MMMMMM16MMMMM17MMMM18MMM19MM20M]
For a run of matches, a match is produced at each point where the pattern still matches. Similarly, using the same pattern in the find dialog and hitting 'Find next' steps through the run of Ms. Find should only report the longest of these matches.