$_ =~ /^\S+\s+\S+\s+(\S+)/o;
next unless $1;
next unless exists $rsids{$1} and $rsids{$1};
+ $rsids{$1}++;
print $_;
}
+my @unused_rsids;
+for my $rsid (keys %rsids) {
+ if ($rsids{$rsid} == 1) {
+ push @unused_rsids,$rsid;
+ }
+}
+if (@unused_rsids) {
+ print STDERR "The following rsids were not found\n";
+ print STDERR map {$_."\n"} @unused_rsids;
+}
+
+
__END__