@@ -117,7 +117,7 @@ function Run(){
117
117
function process (){
118
118
$ header = $ this ->GetReadFile ()->Read (200000 );
119
119
$ header_arr = explode ("\t" , $ header );
120
- $ n = 41 ;
120
+ $ n = 43 ;
121
121
$ c = count ($ header_arr );
122
122
if ($ c != $ n )
123
123
{
@@ -170,6 +170,8 @@ function process(){
170
170
$ ucsc_id_mappeddatasuppliedbyUCSC = $ fields [38 ];
171
171
$ mouse_genome_database_id_mappeddatasuppliedbyMGI = $ fields [39 ];
172
172
$ rat_genome_database_id_mappeddatasuppliedbyRGD = $ fields [40 ];
173
+ $ rna_central_ids = $ fields [41 ];
174
+ $ LNCipedia_symbol = $ fields [42 ];
173
175
174
176
$ id_res = $ id ;
175
177
$ id_label = "Gene Symbol for " .$ approved_symbol ;
@@ -509,6 +511,24 @@ function process(){
509
511
}
510
512
}
511
513
}
514
+ if (!empty ($ rna_central_ids )) {
515
+ foreach (explode (", " , $ rna_central_ids ) AS $ id ) {
516
+ if (!empty ($ id )){
517
+ parent ::addRDF (
518
+ parent ::triplify ($ id_res , $ this ->getVoc ()."x-rna-central " , "rnacentral: " .trim ($ id )).
519
+ parent ::describeProperty ($ this ->getVoc ()."x-rna-central " , "RNA Central entry " )
520
+ );
521
+ }
522
+ }
523
+ }
524
+ if (!empty ($ LNCipedia_symbol )) {
525
+ parent ::addRDF (
526
+ parent ::triplify ($ id_res , $ this ->getVoc ()."x-lncipedia " , "lncipedia: " .trim ($ LNCipedia_symbol )).
527
+ parent ::describeProperty ($ this ->getVoc ()."x-lncipedia " , "LNCipedia entry " )
528
+ );
529
+
530
+ }
531
+
512
532
//write RDF to file
513
533
$ this ->WriteRDFBufferToWriteFile ();
514
534
}//while
0 commit comments