X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fapplication%2Fpfam_go.java;h=df679e175607780564c45217825a566f416861d5;hb=63685dd0262a506f0bf17cba6be1aa1ada5330f3;hp=07e22bb80eeffc0e446f024a932c4b31af438748;hpb=c6b74aa20ac0c91099597b9474e7da6c0ffdb9a6;p=jalview.git diff --git a/forester/java/src/org/forester/application/pfam_go.java b/forester/java/src/org/forester/application/pfam_go.java index 07e22bb..df679e1 100644 --- a/forester/java/src/org/forester/application/pfam_go.java +++ b/forester/java/src/org/forester/application/pfam_go.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.application; @@ -49,8 +49,9 @@ public class pfam_go { final static private String E_MAIL = "czmasek@burnham.org"; final static private String WWW = "www.phylosoft.org"; - private static void process( final File pfams_file, final List mappings, boolean allow_duplicates ) - throws IOException { + private static void process( final File pfams_file, + final List mappings, + final boolean allow_duplicates ) throws IOException { final BufferedReader reader = ForesterUtil.obtainReader( pfams_file ); String line = ""; int found_count = 0; @@ -77,7 +78,7 @@ public class pfam_go { encountered_domains.add( line ); boolean found = false; for( final PfamToGoMapping mapping : mappings ) { - if ( mapping.getKey().getId().equals( line ) ) { + if ( mapping.getKey().equals( line ) ) { System.out.println( mapping.getValue() ); found = true; } @@ -113,7 +114,7 @@ public class pfam_go { } final List allowed_options = new ArrayList(); allowed_options.add( ALLOW_DUPLICATES_OPTION ); - if ( cla.getNumberOfNames() != 2 && cla.getNumberOfNames() != 3 ) { + if ( ( cla.getNumberOfNames() != 2 ) && ( cla.getNumberOfNames() != 3 ) ) { printHelp(); System.exit( -1 ); } @@ -149,7 +150,7 @@ public class pfam_go { System.out.println( "Usage:" ); System.out.println(); System.out.println( PRG_NAME + " [-" + ALLOW_DUPLICATES_OPTION - + " to allow duplicates] " ); + + " to allow duplicates] " ); System.out.println(); System.out.println(); }