#
# Copyright (c) 2003-2006 University of Chicago and Fellowship
# for Interpretations of Genomes. All Rights Reserved.
#
# This file is part of the SEED Toolkit.
# 
# The SEED Toolkit is free software. You can redistribute
# it and/or modify it under the terms of the SEED Toolkit
# Public License. 
#
# You should have received a copy of the SEED Toolkit Public License
# along with this program; if not write to the University of Chicago
# at info@ci.uchicago.edu or the Fellowship for Interpretation of
# Genomes at veronika@thefig.info or download a copy from
# http://www.theseed.org/LICENSE.TXT.
#

#
# If a line contains two tabs, and the second tab is followed by an EC number, the 
# second tab becomes a space.  Else, the second tab and anything following it get deleted.

while (defined($_ = <STDIN>))
{
    $_ =~ s/(\t.*)\t(\(EC .*\S)/$1 $2/;
    $_ =~ s/(\t.*)\t.*$/$1/;
    print $_;
}
