From: Shawn Boyette Date: Wed, 24 Jun 2009 19:20:17 +0000 (+0000) Subject: added subs thresholding X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=16f856692ce692069a3ac38726b93165f6ef6b36 added subs thresholding --- diff --git a/match_fingerprints b/match_fingerprints index 33919c6..dd93d95 100755 --- a/match_fingerprints +++ b/match_fingerprints @@ -94,6 +94,9 @@ sub dump_records { die "Collision: lead in sub list ", $rec->{id}, "\n" if $subs{ $rec->{id} }; + # we don't want subs below threshold + next if ($_ < $conf->{threshold}); + # still here? output. print OUT $rec->{id}, "\t$_\n" } @@ -109,6 +112,7 @@ sub initialize { my $rc = GetOptions( $c, 'output|o=s', + 'threshold|t=i', 'help|h', ); show_help() unless $rc; @@ -122,11 +126,13 @@ sub initialize { print "Required option: ", join(', ', @missing), " missing!\n"; show_help(); } + + $c->{threshold} = 0 unless $c->{threshold}; } sub show_help { print <