X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2FBasicGoSubset.java;h=8dd8f64322bc8880c57249fa7427b844656a580f;hb=b5fe992f707cdad84255eb85040effbee97d61b3;hp=82015fba9c651f62851d18d30fe24cb9a43a2678;hpb=fbba20dcd57f706d5bf42c4f3f157e053a24cc97;p=jalview.git diff --git a/forester/java/src/org/forester/go/BasicGoSubset.java b/forester/java/src/org/forester/go/BasicGoSubset.java index 82015fb..8dd8f64 100644 --- a/forester/java/src/org/forester/go/BasicGoSubset.java +++ b/forester/java/src/org/forester/go/BasicGoSubset.java @@ -21,7 +21,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA // // Contact: phylosoft @ gmail . com -// WWW: www.phylosoft.org/forester +// WWW: https://sites.google.com/site/cmzmasek/home/software/forester package org.forester.go; @@ -58,17 +58,8 @@ public class BasicGoSubset implements GoSubset { else if ( my_s.equals( GOSLIM_POMBE_STR ) ) { _type = Type.GOSLIM_POMBE; } - else if ( my_s.equals( HIGH_LEVEL_ANNOTATION_QC_STR ) ) { - _type = Type.HIGH_LEVEL_ANNOTATION_QC; - } - else if ( my_s.equals( UNVETTED_STR ) ) { - _type = Type.UNVETTED; - } - else if ( my_s.equals( MF_NEEDS_REVIEW_STR ) ) { - _type = Type.MF_NEEDS_REVIEW; - } else { - throw new IllegalArgumentException( "unknown GO subset type: " + my_s ); + _type = Type.OTHER; } } @@ -91,7 +82,7 @@ public class BasicGoSubset implements GoSubset { } else if ( o.getClass() != this.getClass() ) { throw new IllegalArgumentException( "attempt to check go subset equality to " + o + " [" + o.getClass() - + "]" ); + + "]" ); } else { return ( getType() == ( ( GoSubset ) o ).getType() ); @@ -134,17 +125,9 @@ public class BasicGoSubset implements GoSubset { case GOSLIM_POMBE: sb.append( GOSLIM_POMBE_STR ); break; - case MF_NEEDS_REVIEW: - sb.append( MF_NEEDS_REVIEW_STR ); - break; - case HIGH_LEVEL_ANNOTATION_QC: - sb.append( HIGH_LEVEL_ANNOTATION_QC_STR ); - break; - case UNVETTED: - sb.append( UNVETTED_STR ); + case OTHER: + sb.append( "other" ); break; - default: - new AssertionError( "unknown type: " + getType() ); } return sb.toString(); }