Skip to content

Commit 6f9edbd

Browse files
removed pdb and uniprot from list, captured missing associations
1 parent 0d23c08 commit 6f9edbd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

goa/goa.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class GOAParser extends Bio2RDFizer
3636
{
3737
function __construct($argv) {
3838
parent::__construct($argv,"goa");
39-
parent::addParameter('files',true,'all|arabidopsis|chicken|cow|dicty|dog|fly|human|mouse|pdb|pig|rat|uniprot|worm|yeast|zebrafish','all','all or comma-separated list of files to process');
39+
// parent::addParameter('files',true,'all|arabidopsis|chicken|cow|dicty|dog|fly|human|mouse|pdb|pig|rat|uniprot|worm|yeast|zebrafish','all','all or comma-separated list of files to process');
40+
parent::addParameter('files',true,'all|arabidopsis|chicken|cow|dicty|dog|fly|human|mouse|pig|rat|worm|yeast|zebrafish','all','all or comma-separated list of files to process');
4041
parent::addParameter('download_url',false,null,'ftp://ftp.ebi.ac.uk/pub/databases/GO/goa/');
4142
parent::initialize();
4243
}
@@ -161,9 +162,13 @@ function process($file){
161162

162163
//entity id
163164
$eid = $this->getdbURI($db,$id);
165+
if(!$eid) {
166+
print_r($fields);
167+
continue;
168+
}
164169
parent::addRDF(
165170
parent::describeIndividual($eid,$label,parent::getVoc()."GO-Annotation").
166-
parent::describeClass(parent::getVoc()."GO-Annotation","GO Annotation").
171+
parent::describeClass(parent::getVoc()."GO-Annotation","GO Annotation").
167172
parent::triplifyString($eid,parent::getVoc()."symbol",$symbol)
168173
);
169174
parent::addRDF(
@@ -261,6 +266,8 @@ function getdbURI($db_id, $db_object_id){
261266
} else if ($db_id == "PDB"){
262267
$split_object = explode("_", $db_object_id);
263268
$returnMe = "pdb:".$split_object[0]."/chain_".$split_object[1];
269+
} else {
270+
$returnMe = $db_id.":".$db_object_id;
264271
}
265272
return $returnMe;
266273
}

0 commit comments

Comments
 (0)