in reply to Re: How do I use the map command for this?
in thread How do I use the map command for this?
use strict; use warnings; my %res; my $id=''; my $rest=''; my $seq=''; while (<DATA>) { chomp; if($_=~/^>(.*?)\|(.*)/) { $id=$1; $rest=$2; $seq=<DATA>; chomp $seq; } } _DATA_ >id1|Q51487|P-474-4|86-98,113-126,297-310,322-335 CSLIPDYQRPEAPVAAAYPQGQAYGQNTGAAAVPAADIGWREFFRDPQLQQLIGVALE >id2|Q51487|P-474-4|86-98,113-126,297-310,322-335 CSLIPDYQRPEAPVAAAYPQGQAYGQNTGAAAVPAADIGWREFFRDPQLQQLIGVALE >id3|Q51487|P-474-4|86-98,113-126,297-310,322-335 CSLIPDYQRPEAPVAAAYPQGQAYGQNTGAAAVPAADIGWREFFRDPQLQQLIGVALE
>id1|id2|id3|Q51487|P-474-4|86-98,113-126,297-310,322-335 CSLIPDYQRPEAPVAAAYPQGQAYGQNTGAAAVPAADIGWREFFRDPQLQQLIGVALE
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I use the map command for this?
by hippo (Archbishop) on Jun 19, 2022 at 15:19 UTC | |
|
Re^3: How do I use the map command for this?
by LanX (Saint) on Jun 19, 2022 at 14:18 UTC | |
|
Re^3: How do I use the map command for this?
by Anonymous Monk on Jun 19, 2022 at 13:45 UTC | |
by LanX (Saint) on Jun 19, 2022 at 14:21 UTC |