5 my $equivalence_file = shift;
8 open(my $E, "<", $equivalence_file) || die "Can't open $equivalence_file\n";
14 my ($original_id, $modified_id, $new_id, $match_type, $stock_type) = split /\t/;
15 $ids{$original_id} = $new_id;
20 open(my $V, "<", $vcf_file) || die "Can't open $vcf_file\n";
25 if ($_ =~ m/^\#CHROM/) {
26 print STDERR
"Parsing ids in vcf file...\n";
31 if (exists($ids{$f}) && ($ids{$f} ne $f)) {
32 print STDERR
"replace $f with $ids{$f} ($count), ";
36 my $line = join("\t", @F);