in reply to Re^3: Regex /g and interpolated lengths
in thread Regex /g and interpolated lengths
File $multiz comes here:open(FILE, "<", $multiz); my @content = <FILE>; close FILE; s/^\w\w\t(.+)(?:\n)?/$1/ for(@content); my $len = length($content[0]) - 5; my $allseq = join("", @content); my @branchPoints; while($allseq =~ /(ct(?:a|g)a(?:c|t))(?:.{$len})(ct(?:a|g)a(?:c|t))(?: +.{$len})(ct(?:a|g)a(?:c|t))(?:.{$len})(ct(?:a|g)a(?:c|t))(?:.{$len})( +ct(?:a|g)a(?:c|t))(?:.{$len})(ct(?:a|g)a(?:c|t))(.*)/ig) { my $dist = length($7); push(@branchPoints, "\nBranchpoint:\t$1\t$dist\n\t\t$2\t$dist\n\t\t$3\ +t$dist\n\t\t$4\t$dist\n\t\t$5\t$dist\n\t\t$6\t$dist\n\n"); } print REPORT @branchPoints;
aa ctgacaaaaaaaaaaactgataaaaaaaaaaaaactaac aa ctgacaaaaaaaaaaactgataaaaaaaaaaaaactaac aa ctgacaaaaaaaaaaactgataaaaaaaaaaaaactaac aa ctgacaaaaaaaaaaactgataaaaaaaaaaaaactaac aa ctgacaaaaaaaaaaactgataaaaaaaaaaaaactaac aa ctgacaaaaaaaaaaactgataaaaaaaaaaaaactaac
20051115 Janitored by Corion: Fixed code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Regex /g and interpolated lengths
by duff (Parson) on Nov 15, 2005 at 22:18 UTC | |
by KaiAllard (Initiate) on Nov 15, 2005 at 22:21 UTC | |
by duff (Parson) on Nov 15, 2005 at 22:29 UTC | |
|
Re^5: Regex /g and interpolated lengths
by tirwhan (Abbot) on Nov 15, 2005 at 22:14 UTC | |
|
Re^5: Regex /g and interpolated lengths
by tirwhan (Abbot) on Nov 15, 2005 at 22:32 UTC | |
by KaiAllard (Initiate) on Nov 15, 2005 at 22:37 UTC | |
by KaiAllard (Initiate) on Nov 15, 2005 at 22:43 UTC | |
by tirwhan (Abbot) on Nov 15, 2005 at 22:56 UTC |