X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fgo%2Fetc%2FMetaOntologizer.java;h=36b2801253acf75c6e1dbcfc9063ae4e6790bca5;hb=f507bf348ffed906d04bc76a614d6778d4cb5d64;hp=98bf9439a323dc2258e3b4212ab8f8aee2be513e;hpb=87d34f343d0262cd0c009c6f1da058a5a217bc64;p=jalview.git diff --git a/forester/java/src/org/forester/go/etc/MetaOntologizer.java b/forester/java/src/org/forester/go/etc/MetaOntologizer.java index 98bf943..36b2801 100644 --- a/forester/java/src/org/forester/go/etc/MetaOntologizer.java +++ b/forester/java/src/org/forester/go/etc/MetaOntologizer.java @@ -117,7 +117,7 @@ public class MetaOntologizer { species = matcher.group( 1 ); if ( VERBOSE ) { ForesterUtil - .programMessage( PRG_NAME, "species for [" + ontologizer_outfile + "] is [" + species + "]" ); + .programMessage( PRG_NAME, "species for [" + ontologizer_outfile + "] is [" + species + "]" ); } } else { @@ -226,7 +226,7 @@ public class MetaOntologizer { } if ( ( p_adjusted_upper_limit < 0.0 ) || ( p_adjusted_upper_limit > 1.0 ) ) { throw new IllegalArgumentException( "adjusted P values limit [" + p_adjusted_upper_limit - + "] is out of range" ); + + "] is out of range" ); } SortedMap> speciesto_to_domain_id = null; if ( domain_gain_loss_file != null ) { @@ -236,7 +236,7 @@ public class MetaOntologizer { speciesto_to_domain_id = parseDomainGainLossFile( domain_gain_loss_file ); if ( VERBOSE ) { ForesterUtil.programMessage( PRG_NAME, "parsed gain/loss domains for " + speciesto_to_domain_id.size() - + " species from [" + domain_gain_loss_file + "]" ); + + " species from [" + domain_gain_loss_file + "]" ); } } final String[] children = ontologizer_outdir.list(); @@ -253,7 +253,7 @@ public class MetaOntologizer { } if ( VERBOSE ) { ForesterUtil.programMessage( PRG_NAME, "need to analyze " + ontologizer_outfiles.size() - + " Ontologizer outfiles from [" + ontologizer_outdir + "]" ); + + " Ontologizer outfiles from [" + ontologizer_outdir + "]" ); } final OBOparser parser = new OBOparser( obo_file, OBOparser.ReturnType.BASIC_GO_TERM ); final List go_terms = parser.parse(); @@ -281,7 +281,7 @@ public class MetaOntologizer { for( final File ontologizer_outfile : ontologizer_outfiles ) { final String species = obtainSpecies( ontologizer_outfile ); final List ontologizer_results = OntologizerResult.parse( new File( ontologizer_outdir - + ForesterUtil.FILE_SEPARATOR + ontologizer_outfile ) ); + + ForesterUtil.FILE_SEPARATOR + ontologizer_outfile ) ); final SortedSet filtered_ontologizer_results = new TreeSet(); for( final OntologizerResult ontologizer_result : ontologizer_results ) { if ( ontologizer_result.getPAdjusted() <= p_adjusted_upper_limit ) { @@ -300,18 +300,18 @@ public class MetaOntologizer { writeHtmlHeader( b_html_writer, GoNameSpace.GoNamespaceType.BIOLOGICAL_PROCESS.toString() + " | Pmax = " + p_adjusted_upper_limit + " | " + comment, - ontologizer_outdir.getAbsolutePath(), - domain_gain_loss_file_full_path_str ); + ontologizer_outdir.getAbsolutePath(), + domain_gain_loss_file_full_path_str ); writeHtmlHeader( c_html_writer, GoNameSpace.GoNamespaceType.CELLULAR_COMPONENT.toString() + " | Pmax = " + p_adjusted_upper_limit + " | " + comment, - ontologizer_outdir.getAbsolutePath(), - domain_gain_loss_file_full_path_str ); + ontologizer_outdir.getAbsolutePath(), + domain_gain_loss_file_full_path_str ); writeHtmlHeader( m_html_writer, GoNameSpace.GoNamespaceType.MOLECULAR_FUNCTION.toString() + " | Pmax = " + p_adjusted_upper_limit + " | " + comment, - ontologizer_outdir.getAbsolutePath(), - domain_gain_loss_file_full_path_str ); + ontologizer_outdir.getAbsolutePath(), + domain_gain_loss_file_full_path_str ); for( final String species : species_to_results_map.keySet() ) { if ( hasResultsForSpecies( go_id_to_terms, species_to_results_map, @@ -381,17 +381,17 @@ public class MetaOntologizer { m_tab_writer.close(); if ( VERBOSE ) { ForesterUtil.programMessage( PRG_NAME, "successfully wrote biological process summary to [" + b_file_html - + "]" ); + + "]" ); ForesterUtil.programMessage( PRG_NAME, "successfully wrote biological process summary to [" + b_file_txt - + "]" ); + + "]" ); ForesterUtil.programMessage( PRG_NAME, "successfully wrote molecular function summary to [" + m_file_html - + "]" ); + + "]" ); ForesterUtil.programMessage( PRG_NAME, "successfully wrote molecular function summary to [" + m_file_txt - + "]" ); + + "]" ); ForesterUtil.programMessage( PRG_NAME, "successfully wrote cellular component summary to [" + c_file_html - + "]" ); + + "]" ); ForesterUtil.programMessage( PRG_NAME, "successfully wrote cellular component summary to [" + c_file_txt - + "]" ); + + "]" ); } } @@ -404,7 +404,7 @@ public class MetaOntologizer { for( final String domain : domains ) { if ( !domain_ids_with_go_annot.contains( domain ) ) { writer.write( "[" + domain + "] " ); + + "\">" + domain + "] " ); } } } @@ -573,7 +573,7 @@ public class MetaOntologizer { writer.write( "" ); writer.write( "" ); writer.write( "" + ontologizer_result.getGoId().getId() + "" ); + + "\" target=\"amigo_window\">" + ontologizer_result.getGoId().getId() + "" ); writer.write( "" ); writer.write( "" ); writer.write( FORMATER.format( ontologizer_result.getPAdjusted() ) );