in reply to remove entries with duplicate characters
For example, something along these lines (untested):
That's just the general idea. Details may vary according to the circumstances.my %seen; while (my $line = <$IN>) { my $gn = $1 if $line =~ / GN=(\w+) /; next if exists $seen{$1}; $seen{$1} = 1; print $line; }
Otherwise, if that doesn't help, I agree with 1nickt: please show the code that you have, it will be much easier to help you.
|
|---|