in reply to Re3: BioInformatics - polyA tail search
in thread BioInformatics - polyA tail search
# if your file extension is not .txt change it to whatever is approria +te while (my $filename=<*.txt>){ # Open the file and slurp the contents to a string. open FILE, $filename || die "Cannot open '$filename' for reading: $! +\n"; my $file = do { $\ = undef; <FILE> }; close FILE; # If a 'polyA' sequence is found print the file name. if ($file =~ /[AN]{10,}/) { print "$filename has a polyA tail sequence\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re3: BioInformatics - polyA tail search
by runrig (Abbot) on Sep 02, 2003 at 19:14 UTC | |
by fletcher_the_dog (Friar) on Sep 02, 2003 at 19:59 UTC | |
by runrig (Abbot) on Sep 02, 2003 at 20:26 UTC |