Debian Codegraph @

scripts/go2error_report

raw ◀ ▶
1 Debian patch touch this file
1 #!/usr/local/bin/perl
2
3 use strict;
4 use Getopt::Long;
5 use Data::Stag;
6 use FileHandle;
7
8 my $opt = {};
9 GetOptions($opt,
10 "format|p=s",
11 "datatype|t=s",
12 "err|e=s",
13 "handler_args|a=s%",
14 "handler|h=s");
15
16 use GO::Parser;
17
18 my $errf = $opt->{err};
19 my $errhandler = Data::Stag->getformathandler('xml');
20 if ($errf) {
21 $errhandler->file($errf);
22 }
23 else {
24 $errhandler->fh(\*STDOUT);
25 }
26 foreach my $f (@ARGV) {
27 my $parser = new GO::Parser($opt);
28 $parser->errhandler($errhandler);
29 $parser->parse($f);
30 }
•31
32 __END__
33
34 =head1 NAME
35
36 go2error_report - converts go/obo to error_report
37
38 =head1 DESCRIPTION
39
40 Converts a file in any valid go/obo format to error_report.
41
42 =head1 SEE ALSO
43
44 L<go-perl>