[Bio] / Babel / bin / make_comments.pl Repository:
ViewVC logotype

View of /Babel/bin/make_comments.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Tue Dec 1 15:22:43 2009 UTC (10 years, 6 months ago) by wilke
Branch: MAIN
CVS Tags: mgrast_dev_08112011, mgrast_dev_08022011, mgrast_dev_03052011, mobedac_release_05302012, mgrast_dev_05262011, mgrast_dev_04082011, mgrast_version_3_2, mgrast_dev_12152011, mgrast_dev_06072011, mgrast_dev_10262011, mgrast_dev_02212011, mgrast_release_3_0, mgrast_dev_03252011, mgrast_release_3_0_4, mgrast_release_3_0_2, mgrast_release_3_0_3, mgrast_release_3_0_1, mgrast_dev_03312011, mgrast_release_3_1_2, mgrast_release_3_1_1, mgrast_release_3_1_0, mgrast_dev_04132011, mgrast_dev_04012011, mgrast_dev_04052011, mgrast_dev_02222011, HEAD
initial babel checkin

use Data::Dumper;
use Carp;
use FIG_Config;

use FIG;
my $fig = new FIG;

my $old  = shift @ARGV;
my $dest = shift @ARGV || ".";

unless (-f $old) {
    print STDERR "No file $old!";
    exit;
}


$/ = "\n//\n";
open(NEW,">$dest/Comment_on_sequence_function") || die "bad";
foreach $_ (`cat $old`)
{
    if ($_ =~ /^(\S+)\t[^\t]+\t([^\n]+)\n(.*)/s)
    {
	$peg = $1;
	$who = $2;
	$txt = $3;
	$ts  = time;
	$md5 = $fig->md5_of_peg($peg) || '';
	print NEW "$peg\t$who\t$ts\t$md5\n$txt";
	print     "$peg\t$who\t$ts\t$md5\n$txt";
    }
}

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3