in reply to Base sequence length in fasta format file
I'm guessing here, but it seems from your code like maybe what you're trying to do is return all lines which are longer than 250 characters? If so, try something like this:
If that's not what you want, then could you explain again what the problem is? (particularly, what's a base?)while (<INPUT>) { chomp; print if length($_) > 250; }
Anyway, hope that helps.
andy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Skip chomp?
by RMGir (Prior) on Apr 25, 2002 at 14:50 UTC | |
by andye (Curate) on Apr 25, 2002 at 15:05 UTC | |
by demerphq (Chancellor) on Apr 25, 2002 at 15:12 UTC | |
by demerphq (Chancellor) on Apr 25, 2002 at 15:06 UTC | |
by RMGir (Prior) on Apr 25, 2002 at 15:15 UTC | |
by demerphq (Chancellor) on Apr 25, 2002 at 15:20 UTC | |
|
Re: Re: simple but stuck
by lolly (Novice) on Apr 25, 2002 at 14:54 UTC | |
by andye (Curate) on Apr 25, 2002 at 15:08 UTC |