+ else if ( line.startsWith( "DE" ) && ForesterUtil.isEmpty( e.getSequenceSymbol() ) ) {
+ if ( line.indexOf( "Short=" ) > 0 ) {
+ e.setSequenceSymbol( DatabaseTools.extract( line, "Short=", ";" ) );
+ }
+ }
+ else if ( line.startsWith( "GN" ) && ForesterUtil.isEmpty( e.getGeneName() ) ) {
+ if ( line.indexOf( "Name=" ) > 0 ) {
+ e.setGeneName( DatabaseTools.extract( line, "Name=", ";" ) );
+ }
+ }
+ else if ( line.startsWith( "DR" ) ) {
+ if ( line.indexOf( "GO;" ) > 0 ) {
+ Matcher m = GO_PATTERN.matcher( line );
+ if ( m.find() ) {
+ String n = m.group( 1 );
+ String ns_str = m.group( 2 );
+ String desc = m.group( 3 );
+ if ( ns_str.equals( "F" ) ) {
+
+ System.out.println( "GO:" + n + " " + desc + " " + ns );
+ GoTerm go = new BasicGoTerm( n, desc, ns, false );
+ // e.setGeneName( DatabaseTools.extract( line, "Name=", ";" ) );
+ }
+ }
+ }