Build.PL: don't use -w flag when we already use warnings pragma
[bioperl-db.git] / scripts / biosql / terms / interpro2go.pl
blobf6e3e4f50abb1a16617a41495d9e94f7def71a4f
1 #!/usr/bin/perl
3 use strict;
5 while (<>) {
6 # Process STDIN (the interpro2go file from geneontology.org
7 # For each line, output to STDOUT the following:
8 # sourceaccession (IPR),targetaccession (GO)
9 # where dbid is the human-readable non-unique IPR reference,
10 # dbaccession is the unique IPR reference, and goaccession is the
11 # unique GO accession.
13 # Interpro lines look like this:
14 # InterPro:IPR000018 P2Y4 purinoceptor > GO:purinergic nucleotide receptor activity, G-protein coupled ; GO:0045028
16 /^InterPro:/ or next;
17 s/^InterPro:(IPR\d+).*>.*;\s+(GO:\d+)/$1,$2/;
18 print;