Skip to content

Commit 29be68c

Browse files
committed
parse features now works
1 parent 744fd79 commit 29be68c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

genbank/genbank.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ function process(){
142142

143143
$features = $this->retrieveSections("FEATURES", $sectionsRaw);
144144
$parsed_features_arr = $this->parseFeatures($features);
145-
print_r($parsed_features_arr);exit;
146145

147146
//get the source section
148147
$source = $this->retrieveSections("SOURCE", $sectionsRaw);
@@ -164,7 +163,11 @@ function process(){
164163
parent::triplifyString($gb_res, $this->getVoc().'source', utf8_encode($parsed_source_arr[0])).
165164
parent::QQuadO_URL($gb_res, $this->getVoc().'fasta-seq', 'https://www.ncbi.nlm.nih.gov/sviewer/viewer.cgi?sendto=on&db=nucest&dopt=fasta&val='.$parsed_version_arr['gi'])
166165
);
167-
166+
167+
foreach ($parsed_features_arr as $aFeature) {
168+
print_r($aFeature);
169+
}
170+
168171
foreach($parsed_accession_arr[0] as $acc ){
169172
parent::AddRDF(
170173
parent::triplifyString($gb_res, $this->getVoc()."accession", $acc)
@@ -225,6 +228,7 @@ function process(){
225228
if(count($matches) == 0){
226229
$gb_record_str .= $aLine;
227230
}
231+
exit;
228232
}//while
229233

230234
}

0 commit comments

Comments
 (0)