From: Guanming Wu <gua...@us...> - 2004-11-18 03:53:30
|
Update of /cvsroot/gmod/apollo/src/java/apollo/dataadapter/gamexml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18621/apollo/src/java/apollo/dataadapter/gamexml Modified Files: GAMEAdapter.java Log Message: To control chado transaction xml output Index: GAMEAdapter.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/dataadapter/gamexml/GAMEAdapter.java,v retrieving revision 1.97 retrieving revision 1.98 diff -C2 -d -r1.97 -r1.98 *** GAMEAdapter.java 11 Nov 2004 00:35:38 -0000 1.97 --- GAMEAdapter.java 18 Nov 2004 03:53:22 -0000 1.98 *************** *** 320,336 **** // Save transactions to a GAME transaction format saveTransactionsInGAME(curation, fileName); ! // Save transactions to chado transaction format ! TransactionOutputAdapter output = new ChadoTransactionXMLWriter(); ! if (isChromosomeArmUsed(curation)) { ! output.setMapID(curation.getChromosome()); ! output.setMapType("chromosome_arm"); ! } ! else { ! output.setMapID(curation.getChromosome()); ! output.setMapType("chromosome"); } - output.setTransformer(new ChadoTransactionTransformer()); - output.setTarget(fileName); - output.commit(curation.getTransactionManager().getTransactions()); } catch(Exception e) { --- 320,338 ---- // Save transactions to a GAME transaction format saveTransactionsInGAME(curation, fileName); ! if (Config.isChadoTnOutputNeeded()) { ! // Save transactions to chado transaction format ! TransactionOutputAdapter output = new ChadoTransactionXMLWriter(); ! if (isChromosomeArmUsed(curation)) { ! output.setMapID(curation.getChromosome()); ! output.setMapType("chromosome_arm"); ! } ! else { ! output.setMapID(curation.getChromosome()); ! output.setMapType("chromosome"); ! } ! output.setTransformer(new ChadoTransactionTransformer()); ! output.setTarget(fileName); ! output.commit(curation.getTransactionManager().getTransactions()); } } catch(Exception e) { |