in reply to Merging Two Strings
How would you want to resolve the following pairs?my $str3 = 'ATGATG'; my $str4 = 'ATGATG'; $merged_result34 = 'ATGATG';
There are probably other "boundary condition" cases that I can't think of... Anyway, I would highly recommend that you do a careful study of Algorithm::Diff -- there's a reasonble chance that you can use it to good effect here. It supports any degree of intricate and detailed tweaking of the basic "diff"-style comparison of two strings; very cool and very powerful.ATGGTAC # match on GTA, or on ATG? CCGTAATG ACTGACTCGACT # match on ACTG or GACT? CAGACTGCC
And I hope some of the monks who work actively in the BioMed area will point you to the specific modules and web sites for this sort of stuff. If not, try a SuperSearch for that (I know I've seen references to such things here) and/or go to cpan.org and just put "Bio" in the search window there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Merging Two Strings
by monkfan (Curate) on Oct 27, 2005 at 06:47 UTC | |
by graff (Chancellor) on Oct 27, 2005 at 07:21 UTC |