Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How can I intersect the above two strings so that we obtain:my $s1 = "1,0,CTGCCACCGCTGT"; my $s2 = "1,5,ACCGCTGTGTTTCGGCCGGCGA"; #The format show this: sequence_index,string_pos,$string #So the two strings above are in the same sequence 1.
CTGCCACCGCTGT (s1) ACCGCTGTGTTTCGGCCGGCGA (s2) ******** ACCGCTGT (intersected string) and also to identify the position of the interesected string, in this case 6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Intersecting Two Strings
by tinita (Parson) on Aug 22, 2007 at 11:53 UTC | |
by goibhniu (Hermit) on Aug 22, 2007 at 14:27 UTC | |
by lima1 (Curate) on Aug 22, 2007 at 12:38 UTC | |
|
Re: Intersecting Two Strings
by akho (Hermit) on Aug 22, 2007 at 08:44 UTC | |
|
Re: Intersecting Two Strings
by lima1 (Curate) on Aug 22, 2007 at 11:15 UTC | |
|
Re: Intersecting Two Strings
by BrowserUk (Patriarch) on Aug 23, 2007 at 03:01 UTC | |
by lima1 (Curate) on Aug 23, 2007 at 11:18 UTC | |
by BrowserUk (Patriarch) on Aug 23, 2007 at 16:40 UTC | |
|
Re: Intersecting Two Strings
by GrandFather (Saint) on Aug 22, 2007 at 08:25 UTC | |
|
Re: Intersecting Two Strings
by Anonymous Monk on Aug 23, 2007 at 01:56 UTC |