12106 |
shift if UNIVERSAL::isa($_[0],__PACKAGE__); |
shift if UNIVERSAL::isa($_[0],__PACKAGE__); |
12107 |
my($peg,$seq) = @_; |
my($peg,$seq) = @_; |
12108 |
|
|
12109 |
my $cmd = $seq ? "echo \"$peg\t$seq\" | $FIG_Config::bin/auto_assign | $FIG_Config::bin/make_calls" : "echo \"$peg\" | $FIG_Config::bin/auto_assign | $FIG_Config::bin/make_calls"; |
my $cmd = $seq ? "echo \"$peg\" \"$seq\" | $FIG_Config::bin/auto_assign | $FIG_Config::bin/make_calls" : "echo \"$peg\" | $FIG_Config::bin/auto_assign | $FIG_Config::bin/make_calls"; |
12110 |
# print STDERR $cmd; |
# print STDERR $cmd; |
12111 |
my(@tmp) = `$cmd`; |
my(@tmp) = `$cmd`; |
12112 |
if ((@tmp == 1) && ($tmp[0] =~ /^\S+\t(\S.*\S)/)) |
if ((@tmp == 1) && ($tmp[0] =~ /^\S+\t(\S.*\S)/)) |