nmrshiftdb-devel Mailing List for NMRShiftDB (Page 12)
Brought to you by:
steinbeck
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
(170) |
Mar
(120) |
Apr
(191) |
May
(231) |
Jun
(147) |
Jul
(202) |
Aug
(132) |
Sep
(91) |
Oct
(43) |
Nov
(87) |
Dec
(75) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(111) |
Feb
(194) |
Mar
(102) |
Apr
(107) |
May
(88) |
Jun
(121) |
Jul
(166) |
Aug
(75) |
Sep
(89) |
Oct
(116) |
Nov
(117) |
Dec
(52) |
| 2004 |
Jan
(138) |
Feb
(150) |
Mar
(144) |
Apr
(144) |
May
(54) |
Jun
(116) |
Jul
(73) |
Aug
(29) |
Sep
(135) |
Oct
(96) |
Nov
(72) |
Dec
(28) |
| 2005 |
Jan
(32) |
Feb
(9) |
Mar
(69) |
Apr
(108) |
May
(130) |
Jun
(195) |
Jul
(104) |
Aug
(116) |
Sep
(106) |
Oct
(58) |
Nov
(74) |
Dec
(64) |
| 2006 |
Jan
(110) |
Feb
(63) |
Mar
(45) |
Apr
(11) |
May
(122) |
Jun
(106) |
Jul
(26) |
Aug
(48) |
Sep
(67) |
Oct
(105) |
Nov
(81) |
Dec
(6) |
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(11) |
| 2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Stefan K. <sh...@us...> - 2006-09-11 15:06:49
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/vmtemplates In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22034/src/vmtemplates Modified Files: confirm.vm Log Message: more chagnes for lab system Index: confirm.vm =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/vmtemplates/confirm.vm,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -r1.56 -r1.57 *** confirm.vm 16 May 2006 10:58:42 -0000 1.56 --- confirm.vm 11 Sep 2006 15:06:44 -0000 1.57 *************** *** 1,5 **** <table> <tr> ! <th colspan="3"><h2>Check your submitted data. Hover over the lines of the box on the right to check the assignments! <a href="portal/pane0/Help;jsessionid=$data.getSession().getId()?URL=using.html#submit">Help</a></h2></th> </tr> <tr> --- 1,5 ---- <table> <tr> ! <th colspan="3"><h2>Check your submitted data. Hover over the lines of the box on the right to check the assignments! <a href="portal/pane0/Help;jsessionid=$data.getSession().getId()?URL=using.html#submit" style="color:white"><img src="images/help.png"></a></h2></th> </tr> <tr> |
|
From: Stefan K. <sh...@us...> - 2006-09-11 14:21:26
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/map In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3168/src/java/org/openscience/nmrshiftdb/om/map Modified Files: DBSampleMapBuilder.java Log Message: improved the lab system Index: DBSampleMapBuilder.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/map/DBSampleMapBuilder.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** DBSampleMapBuilder.java 4 Aug 2005 21:55:24 -0000 1.5 --- DBSampleMapBuilder.java 11 Sep 2006 14:21:16 -0000 1.6 *************** *** 1,9 **** package org.openscience.nmrshiftdb.om.map; ! import java.util.Date; ! import org.apache.turbine.services.db.TurbineDB; - import org.apache.turbine.util.db.map.DatabaseMap; import org.apache.turbine.util.db.map.MapBuilder; import org.apache.turbine.util.db.map.TableMap; --- 1,10 ---- package org.openscience.nmrshiftdb.om.map; ! import java.util.*; ! import java.math.*; ! import org.apache.turbine.services.db.PoolBrokerService; import org.apache.turbine.services.db.TurbineDB; import org.apache.turbine.util.db.map.MapBuilder; + import org.apache.turbine.util.db.map.DatabaseMap; import org.apache.turbine.util.db.map.TableMap; *************** *** 88,91 **** --- 89,98 ---- } + /** SAMPLE.PROCESS */ + public static String getDBSample_Process() + { + return getTable() + ".PROCESS"; + } + /** the database map */ private DatabaseMap dbMap = null; *************** *** 116,120 **** tMap.setPrimaryKeyMethod(TableMap.IDBROKERTABLE); ! --- 123,127 ---- tMap.setPrimaryKeyMethod(TableMap.IDBROKERTABLE); ! *************** *** 141,144 **** --- 148,153 ---- tMap.addColumn ( getDBSample_Finished(), new String() ); + tMap.addColumn ( getDBSample_Process(), new String() ); + } |
|
From: Stefan K. <sh...@us...> - 2006-09-11 14:21:26
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/modules/actions/portlets In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3168/src/java/org/openscience/nmrshiftdb/modules/actions/portlets Modified Files: OrderAction.java OrderFullfillAction.java Log Message: improved the lab system Index: OrderAction.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/modules/actions/portlets/OrderAction.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** OrderAction.java 19 Oct 2005 13:45:19 -0000 1.16 --- OrderAction.java 11 Sep 2006 14:21:16 -0000 1.17 *************** *** 2,9 **** --- 2,11 ---- import java.io.File; + import java.io.FileOutputStream; import java.io.FileWriter; import java.io.StringReader; import java.util.Date; import java.util.Vector; + import java.util.zip.ZipOutputStream; import org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction; *************** *** 18,21 **** --- 20,24 ---- import org.openscience.nmrshiftdb.om.DBCondition; import org.openscience.nmrshiftdb.om.DBConditionPeer; + import org.openscience.nmrshiftdb.om.DBRawFile; import org.openscience.nmrshiftdb.om.DBRawFilePeer; import org.openscience.nmrshiftdb.om.DBSample; *************** *** 34,37 **** --- 37,45 ---- */ public class OrderAction extends VelocityPortletAction { + + + public static String WORKER="worker"; + public static String ROBOT="robot"; + public static String SELF="self"; *************** *** 72,76 **** private void buildOrderContext(Context context, RunData data) throws Exception{ ! String sql="select SAMPLE.SAMPLE_ID from SAMPLE left join RAW_FILE using (SAMPLE_ID) where URL is null and USER_ID ="+((NmrshiftdbUser)data.getUser()).getUserId(); Vector v1=DBSamplePeer.executeQuery(sql); Vector v2=new Vector(); --- 80,85 ---- private void buildOrderContext(Context context, RunData data) throws Exception{ ! //open worker orders ! String sql="select SAMPLE.SAMPLE_ID from SAMPLE left join RAW_FILE using (SAMPLE_ID) where URL is null and PROCESS=\""+this.WORKER+"\" and USER_ID ="+((NmrshiftdbUser)data.getUser()).getUserId(); Vector v1=DBSamplePeer.executeQuery(sql); Vector v2=new Vector(); *************** *** 79,82 **** --- 88,92 ---- } context.put("samples",v2); + //done orders Criteria crit=new Criteria(); crit.add(DBSamplePeer.USER_ID, ((NmrshiftdbUser)data.getUser()).getUserId()); *************** *** 92,95 **** --- 102,113 ---- } context.put("samplesdone",v3); + //open self orders + String sql3="select SAMPLE.SAMPLE_ID from SAMPLE left join RAW_FILE using (SAMPLE_ID) where URL is null and PROCESS=\""+this.SELF+"\" and USER_ID ="+((NmrshiftdbUser)data.getUser()).getUserId(); + Vector v5=DBSamplePeer.executeQuery(sql3); + Vector v6=new Vector(); + for(int i=0;i<v5.size();i++){ + v6.add(DBSamplePeer.retrieveByPK(new NumberKey(((Record) v5.get(i)).getValue(1).asInt()))); + } + context.put("samplesself",v6); context.put("data", data); if(data.getParameters().get("submitorshow")!=null && data.getParameters().get("submitorshow").equals("show")){ *************** *** 108,111 **** --- 126,178 ---- out.close(); context.put("molfile", "/nmrshiftdbhtml/" + outputFile.getName()); + //this is for the self fullfill + if(toshow.getProcess().equals(this.SELF) && toshow.getFinished().equals("false")){ + File rawfiledir=new File(GeneralUtils.getNmrshiftdbProperty("rawfiledirectoryuser",data)); + File currentraw=((File)data.getSession().getAttribute("currentraw")); + StringBuffer choosenfiles=new StringBuffer(); + if(data.getSession().getAttribute("choosenfiles")==null){ + data.getSession().setAttribute("choosenfiles", new Vector()); + } + v=(Vector)data.getSession().getAttribute("choosenfiles"); + if(data.getParameters().get("nmrshiftdbaction")!=null && data.getParameters().get("nmrshiftdbaction").equals("addtochoosenfiles")){ + if(!data.getParameters().get("filename").equals("..")){ + v.add(new File(currentraw+"/"+data.getParameters().get("filename"))); + }else{ + data.getSession().setAttribute("currentraw",new File(((File)data.getSession().getAttribute("currentraw"))+"/..")); + } + } + if(data.getSession().getAttribute("currentraw")==null) + data.getSession().setAttribute("currentraw",rawfiledir); + if(data.getParameters().get("nmrshiftdbaction")!=null && data.getParameters().get("nmrshiftdbaction").equals("browseto")){ + data.getSession().setAttribute("currentraw",new File(((File)data.getSession().getAttribute("currentraw"))+"/"+data.getParameters().get("filename"))); + } + for(int i=0;i<v.size();i++){ + choosenfiles.append(((File)v.get(i)).getName()+"\r\n"); + } + context.put("choosenfiles",choosenfiles); + Vector attachedfiles=toshow.getDBRawFiles(); + StringBuffer oldfiles=new StringBuffer(); + for(int i=0;i<attachedfiles.size();i++){ + oldfiles.append(((DBRawFile)attachedfiles.get(i)).getContainedFiles()); + } + context.put("oldfiles",oldfiles.toString()); + Vector files=new Vector(); + File[] filesindir=((File)data.getSession().getAttribute("currentraw")).listFiles(); + for(int i=0;i<filesindir.length;i++){ + Vector local=new Vector(); + local.add("portal/pane0/NMR+lab+administration?nmrshiftdbaction=addtochoosenfiles&filename="+filesindir[i].getName()+"&submitorshow=show&id="+toshow.getSampleId()); + local.add(filesindir[i].getName()); + local.add("portal/pane0/NMR+lab+administration?nmrshiftdbaction=browseto&filename="+filesindir[i].getName()+"&submitorshow=show&id="+toshow.getSampleId()); + files.add(local); + } + if(!((File)data.getSession().getAttribute("currentraw")).getCanonicalFile().equals(rawfiledir.getCanonicalFile())){ + Vector local=new Vector(); + local.add("portal/pane0/NMR+lab+administration?nmrshiftdbaction=addtochoosenfiles&filename=..&submitorshow=show&id="+toshow.getSampleId()); + local.add(".."); + local.add("portal/pane0/NMR+lab+administration?nmrshiftdbaction=browseto&filename=..&submitorshow=show&id="+toshow.getSampleId()); + files.add(local); + } + context.put("files",files); + } }else{ context.put("date", new Date()); *************** *** 169,172 **** --- 236,240 ---- sample.setSpecialCare(data.getParameters().get("specialcare")); sample.setFinished("false"); + sample.setProcess(data.getParameters().get("process")); String wishedSpectrum=""; if(data.getParameters().get("othertext")!=null && !data.getParameters().get("othertext").equals("")){ *************** *** 209,211 **** --- 277,311 ---- } } + + public void doFullfill(RunData data, Context context) throws Exception { + try{ + DBSample sample=DBSamplePeer.retrieveByPK(new NumberKey(data.getParameters().get("id"))); + Vector v=(Vector)data.getSession().getAttribute("choosenfiles"); + String filename=sample.getUsersId()+System.currentTimeMillis()+".zip"; + FileOutputStream baos=new FileOutputStream(GeneralUtils.getNmrshiftdbProperty("compressedfiledirectory",data)+"/"+filename); + ZipOutputStream zipout=new ZipOutputStream(baos); + StringBuffer attachedfiles=new StringBuffer(); + for(int i=0;i<v.size();i++){ + GeneralUtils.zipDir(((File)v.get(i)), zipout,new File(GeneralUtils.getNmrshiftdbProperty("rawfiledirectory",data))); + attachedfiles.append(((File)v.get(i)).getName()+"; "); + } + zipout.close(); + DBRawFile rawfile=new DBRawFile(); + rawfile.setSampleId(sample.getSampleId()); + rawfile.setUrl(GeneralUtils.getNmrshiftdbProperty("urlcompressedfiles",data)+"/"+filename); + rawfile.setContainedFiles(attachedfiles.toString()); + rawfile.save(); + if(data.getParameters().get("finished")!=null && data.getParameters().get("finished").equals("finished")){ + sample.setFinished("true"); + sample.save(); + } + data.getSession().removeAttribute("choosenfiles"); + data.getSession().setAttribute("currentraw",new File(GeneralUtils.getNmrshiftdbProperty("rawfiledirectory",data))); + buildOrderContext(context,data); + } + catch(Exception ex){ + GeneralUtils.logError(ex,"guestbook/doentry",data,true); + } + } + } Index: OrderFullfillAction.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/modules/actions/portlets/OrderFullfillAction.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** OrderFullfillAction.java 19 Oct 2005 13:45:19 -0000 1.14 --- OrderFullfillAction.java 11 Sep 2006 14:21:16 -0000 1.15 *************** *** 49,52 **** --- 49,53 ---- crit.add(DBLabGroupPeer.LABGROUP_ID,((NmrshiftdbUser)data.getUser()).getLabGroup()); crit.add(DBSamplePeer.FINISHED, "false"); + crit.add(DBSamplePeer.PROCESS,OrderAction.WORKER); context.put("openorders",DBSamplePeer.doSelect(crit)); context.put("data", data); |
|
From: Stefan K. <sh...@us...> - 2006-09-11 14:21:26
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3168/src/java/org/openscience/nmrshiftdb/om Modified Files: BaseDBSample.java BaseDBSamplePeer.java Log Message: improved the lab system Index: BaseDBSample.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/BaseDBSample.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** BaseDBSample.java 4 Aug 2005 21:55:18 -0000 1.5 --- BaseDBSample.java 11 Sep 2006 14:21:16 -0000 1.6 *************** *** 2,17 **** ! import java.util.Date; ! import java.util.List; ! import java.util.Vector; ! ! import org.apache.turbine.om.BaseObject; ! import org.apache.turbine.om.NumberKey; ! import org.apache.turbine.om.ObjectKey; ! import org.apache.turbine.om.Persistent; ! import org.apache.turbine.om.Retrievable; import org.apache.turbine.om.peer.BasePeer; - import org.apache.turbine.util.ObjectUtils; import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.db.pool.DBConnection; --- 2,14 ---- ! import java.util.*; ! import java.math.*; ! import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.db.Criteria; + import org.apache.turbine.util.ObjectUtils; + import org.apache.turbine.util.StringUtils; + import org.apache.turbine.util.ParameterParser; + import org.apache.turbine.util.Log; import org.apache.turbine.util.db.pool.DBConnection; *************** *** 45,48 **** --- 42,47 ---- /** the value for the finished field */ private String finished; + /** the value for the process field */ + private String process; *************** *** 419,422 **** --- 418,447 ---- + /** + * Get the Process + * @return String + */ + public String getProcess() + { + return process; + } + + + /** + * Set the value of Process + */ + public void setProcess(String v ) + { + + + + if ( !ObjectUtils.equals(this.process, v) ) + { + this.process = v; + setModified(true); + } + } + + *************** *** 767,770 **** --- 792,796 ---- fieldNames_.add("WishedSpectrum"); fieldNames_.add("Finished"); + fieldNames_.add("Process"); } return fieldNames_; *************** *** 821,824 **** --- 847,854 ---- return getFinished(); } + if (name.equals("Process")) + { + return getProcess(); + } return null; } *************** *** 874,877 **** --- 904,911 ---- return getFinished(); } + if (name.equals(DBSamplePeer.PROCESS )) + { + return getProcess(); + } return null; } *************** *** 927,930 **** --- 961,968 ---- return getFinished(); } + if ( pos == 11 ) + { + return getProcess(); + } return null; } *************** *** 1085,1088 **** --- 1123,1127 ---- copyObj.setWishedSpectrum(wished_spectrum); copyObj.setFinished(finished); + copyObj.setProcess(process); *************** *** 1096,1100 **** copyObj.setSampleId((NumberKey)null); ! return copyObj; } } --- 1135,1139 ---- copyObj.setSampleId((NumberKey)null); ! return copyObj; } } Index: BaseDBSamplePeer.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/BaseDBSamplePeer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** BaseDBSamplePeer.java 4 Aug 2005 21:55:18 -0000 1.4 --- BaseDBSamplePeer.java 11 Sep 2006 14:21:16 -0000 1.5 *************** *** 1,19 **** package org.openscience.nmrshiftdb.om; ! import java.util.Vector; ! ! import org.apache.turbine.om.NumberKey; ! import org.apache.turbine.om.ObjectKey; ! import org.apache.turbine.om.peer.BasePeer; ! import org.apache.turbine.services.db.TurbineDB; ! import org.apache.turbine.util.Log; ! import org.apache.turbine.util.db.Criteria; ! import org.apache.turbine.util.db.map.MapBuilder; ! import org.apache.turbine.util.db.map.TableMap; import org.apache.turbine.util.db.pool.DBConnection; ! import org.openscience.nmrshiftdb.om.map.DBSampleMapBuilder; ! import com.workingdogs.village.QueryDataSet; ! import com.workingdogs.village.Record; /** --- 1,19 ---- package org.openscience.nmrshiftdb.om; ! import java.util.*; ! import java.math.*; ! import java.sql.*; ! import com.workingdogs.village.*; ! import org.apache.turbine.om.*; ! import org.apache.turbine.om.peer.*; ! import org.apache.turbine.util.*; ! import org.apache.turbine.util.db.*; ! import org.apache.turbine.util.db.map.*; import org.apache.turbine.util.db.pool.DBConnection; ! import org.apache.turbine.services.db.TurbineDB; ! import org.apache.turbine.util.TurbineException; ! // Local classes ! import org.openscience.nmrshiftdb.om.map.*; /** *************** *** 60,67 **** /** the column name for the FINISHED field */ public static final String FINISHED = mapBuilder.getDBSample_Finished(); /** number of columns for this peer */ ! public static final int numColumns = 11; /** A class that can be returned by this peer. */ --- 60,69 ---- /** the column name for the FINISHED field */ public static final String FINISHED = mapBuilder.getDBSample_Finished(); + /** the column name for the PROCESS field */ + public static final String PROCESS = mapBuilder.getDBSample_Process(); /** number of columns for this peer */ ! public static final int numColumns = 12; /** A class that can be returned by this peer. */ *************** *** 119,123 **** public static ObjectKey doInsert( Criteria criteria ) throws Exception { ! return BasePeer.doInsert( criteria ); } --- 121,125 ---- public static ObjectKey doInsert( Criteria criteria ) throws Exception { ! return BasePeer.doInsert( criteria ); } *************** *** 130,134 **** throws Exception { ! return BasePeer.doInsert( criteria, dbCon ); } --- 132,136 ---- throws Exception { ! return BasePeer.doInsert( criteria, dbCon ); } *************** *** 147,150 **** --- 149,153 ---- criteria.addSelectColumn( WISHED_SPECTRUM ); criteria.addSelectColumn( FINISHED ); + criteria.addSelectColumn( PROCESS ); } *************** *** 196,199 **** --- 199,203 ---- obj.setWishedSpectrum(row.getValue(offset+9).asString()); obj.setFinished(row.getValue(offset+10).asString()); + obj.setProcess(row.getValue(offset+11).asString()); } *************** *** 228,232 **** } ! // BasePeer returns a Vector of Value (Village) arrays. The array // order follows the order columns were placed in the Select clause. --- 232,236 ---- } ! // BasePeer returns a Vector of Value (Village) arrays. The array // order follows the order columns were placed in the Select clause. *************** *** 248,252 **** } ! // BasePeer returns a Vector of Value (Village) arrays. The array // order follows the order columns were placed in the Select clause. --- 252,256 ---- } ! // BasePeer returns a Vector of Value (Village) arrays. The array // order follows the order columns were placed in the Select clause. *************** *** 296,300 **** Criteria(mapBuilder.getDatabaseMap().getName(), 2); selectCriteria.put( SAMPLE_ID, criteria.remove(SAMPLE_ID) ); ! BasePeer.doUpdate( selectCriteria, criteria ); } --- 300,304 ---- Criteria(mapBuilder.getDatabaseMap().getName(), 2); selectCriteria.put( SAMPLE_ID, criteria.remove(SAMPLE_ID) ); ! BasePeer.doUpdate( selectCriteria, criteria ); } *************** *** 311,315 **** Criteria(mapBuilder.getDatabaseMap().getName(), 2); selectCriteria.put( SAMPLE_ID, criteria.remove(SAMPLE_ID) ); ! BasePeer.doUpdate( selectCriteria, criteria, dbCon ); } --- 315,319 ---- Criteria(mapBuilder.getDatabaseMap().getName(), 2); selectCriteria.put( SAMPLE_ID, criteria.remove(SAMPLE_ID) ); ! BasePeer.doUpdate( selectCriteria, criteria, dbCon ); } *************** *** 321,325 **** public static void doDelete(Criteria criteria) throws Exception { ! BasePeer.doDelete ( criteria ); } --- 325,329 ---- public static void doDelete(Criteria criteria) throws Exception { ! BasePeer.doDelete ( criteria ); } *************** *** 333,337 **** public static void doDelete(Criteria criteria, DBConnection dbCon) throws Exception { ! BasePeer.doDelete ( criteria, dbCon ); } --- 337,341 ---- public static void doDelete(Criteria criteria, DBConnection dbCon) throws Exception { ! BasePeer.doDelete ( criteria, dbCon ); } *************** *** 410,413 **** --- 414,418 ---- criteria.add( WISHED_SPECTRUM, obj.getWishedSpectrum() ); criteria.add( FINISHED, obj.getFinished() ); + criteria.add( PROCESS, obj.getProcess() ); return criteria; } *************** *** 490,494 **** ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 495,499 ---- ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); *************** *** 557,561 **** ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 562,566 ---- ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); *************** *** 624,628 **** ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 629,633 ---- ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); *************** *** 691,695 **** ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 696,700 ---- ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); *************** *** 762,766 **** DBMoleculePeer.addSelectColumns(c); int offset5 = offset4 + DBMoleculePeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 767,771 ---- DBMoleculePeer.addSelectColumns(c); int offset5 = offset4 + DBMoleculePeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); *************** *** 883,887 **** DBMoleculePeer.addSelectColumns(c); int offset4 = offset3 + DBMoleculePeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 888,892 ---- DBMoleculePeer.addSelectColumns(c); int offset4 = offset3 + DBMoleculePeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); *************** *** 980,984 **** DBMoleculePeer.addSelectColumns(c); int offset4 = offset3 + DBMoleculePeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 985,989 ---- DBMoleculePeer.addSelectColumns(c); int offset4 = offset3 + DBMoleculePeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); *************** *** 1079,1083 **** int offset5 = offset4 + DBConditionPeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); --- 1084,1088 ---- int offset5 = offset4 + DBConditionPeer.numColumns; ! Vector rows = BasePeer.doSelect(c); Vector results = new Vector(); |
|
From: Stefan K. <sh...@us...> - 2006-09-11 14:21:25
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/conf/jetspeed/WEB-INF/conf In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3168/src/conf/jetspeed/WEB-INF/conf Modified Files: JetspeedResources.properties NMRShiftDB.properties Log Message: improved the lab system Index: JetspeedResources.properties =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/conf/jetspeed/WEB-INF/conf/JetspeedResources.properties,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** JetspeedResources.properties 1 Jun 2006 14:47:13 -0000 1.22 --- JetspeedResources.properties 11 Sep 2006 14:21:16 -0000 1.23 *************** *** 216,219 **** --- 216,220 ---- #daemon.entry=buildsdf daemon.entry=buildsvm + #daemon.entry=robotdaemon daemon.feeddaemon.classname=org.apache.jetspeed.daemon.impl.FeedDaemon *************** *** 257,260 **** --- 258,265 ---- daemon.buildsvm.onstartup=true + daemon.robotdaemon.classname=org.openscience.nmrshiftdb.daemons.AssignRobotDaemon + daemon.robotdaemon.interval=3600 + daemon.robotdaemon.onstartup=true + ######################################### # Jetspeed Content # Index: NMRShiftDB.properties =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/conf/jetspeed/WEB-INF/conf/NMRShiftDB.properties,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -r1.49 -r1.50 *** NMRShiftDB.properties 28 May 2006 15:27:09 -0000 1.49 --- NMRShiftDB.properties 11 Sep 2006 14:21:16 -0000 1.50 *************** *** 29,32 **** --- 29,36 ---- #A directory where raw files can be found, comment out if server is not for labgroup adminstration rawfiledirectory=/home/shk3 + #A directory where raw files can be found for user assignment + rawfiledirectoryuser=/home/shk3 + #A directory where raw files can be found for robot assignment + rawfiledirectoryrobot=/home/shk3 #A directoy where to put compressed raw files for download compressedfiledirectory=/home/shk3 |
|
From: Stefan K. <sh...@us...> - 2006-09-11 14:21:25
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/sql In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3168/src/sql Modified Files: nmrshiftdb-schema.sql populate-mysql.sql Log Message: improved the lab system Index: nmrshiftdb-schema.sql =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/sql/nmrshiftdb-schema.sql,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -r1.78 -r1.79 *** nmrshiftdb-schema.sql 8 Jun 2006 12:22:46 -0000 1.78 --- nmrshiftdb-schema.sql 11 Sep 2006 14:21:16 -0000 1.79 *************** *** 829,832 **** --- 829,833 ---- WISHED_SPECTRUM VARCHAR (50) NOT NULL, FINISHED VARCHAR (8) NOT NULL, + PROCESS VARCHAR (8) NOT NULL, PRIMARY KEY(SAMPLE_ID), FOREIGN KEY (USER_ID) REFERENCES TURBINE_USER (USER_ID), Index: populate-mysql.sql =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/sql/populate-mysql.sql,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -r1.58 -r1.59 *** populate-mysql.sql 14 Jul 2006 08:09:59 -0000 1.58 --- populate-mysql.sql 11 Sep 2006 14:21:16 -0000 1.59 *************** *** 142,145 **** --- 142,146 ---- alter table GUESTBOOK change VALID VALID enum("false","true") not null default "false"; alter table CONDITION_TYPE change CML_ENTRY_TYPE CML_ENTRY_TYPE enum("","metadata","substance","condition") not null default ""; + alter table SAMPLE change PROCESS PROCESS enum("self","worker","robot") not null default "self"; alter table MOLECULE change fp0 fp0 BIGINT UNSIGNED; alter table MOLECULE change fp1 fp1 BIGINT UNSIGNED; |
|
From: Stefan K. <sh...@us...> - 2006-09-11 14:21:20
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/vmtemplates/portlets/html In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3168/src/vmtemplates/portlets/html Modified Files: user-order.vm Log Message: improved the lab system Index: user-order.vm =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/vmtemplates/portlets/html/user-order.vm,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -r1.28 -r1.29 *** user-order.vm 17 May 2006 13:20:35 -0000 1.28 --- user-order.vm 11 Sep 2006 14:21:16 -0000 1.29 *************** *** 3,7 **** <tr><td><a href="portal/pane0/Help;jsessionid=$data.getSession().getId()?URL=using.html#labadmin">Help</a></td></tr> <tr> ! <td>You have the following <b>open orders</b>:</td><td width="50"></td><td>The following <b>orders have been (partly or fully) done</b> and wait for assignment:</td> </tr> <tr> --- 3,7 ---- <tr><td><a href="portal/pane0/Help;jsessionid=$data.getSession().getId()?URL=using.html#labadmin">Help</a></td></tr> <tr> ! <td>You have the following <b>open orders</b> for labgroup operators:</td><td width="50"></td><td>You have the following <b>open orders</b> for self processing:</td><td width="50"></td><td>The following <b>orders have been (partly or fully) done</b> and wait for assignment:</td> </tr> <tr> *************** *** 24,27 **** --- 24,44 ---- <td width="50"></td> <td> + #if($samplesself.size()==0) + None + #else + <table> + #foreach($sample in $samplesself) + #set($greyorwhite=$velocityCount%2) + <tr + #if($greyorwhite==0) + bgcolor="#D3D3D3" + #end + ><td><a href="portal/pane0/NMR+lab+administration;jsessionid=$data.getSession().getId()?submitorshow=show&id=$sample.getSampleId()">$sample.getUsersId()</a></td></tr> + #end + </table> + #end + </td> + <td width="50"></td> + <td> #if($samplesdone.size()==0) None *************** *** 48,51 **** --- 65,69 ---- <form name="orderform" method="post" action="portal/pane0/NMR+lab+administration"> Here you can submit a <b>new order</b>:<br> + I want this order to be processed by <input type="radio" name="process" checked value="worker"> a lab worker <input type="radio" name="process" value="self"> myself <input type="radio" name="process" value="robot"> myself via robot<br> #else <b>Order $sample.getUsersId()</b> has the following properties: *************** *** 174,177 **** --- 192,216 ---- </tr> </table> + #if($submitorshow=="show" && $sample.getProcess()=="self" && $sample.getFinished()=="false") + <table> + <tr> + <td> + The following files are already attached: $oldfiles + <form name="orderform" method="post" action="portal/pane0/NMR+lab+administration"> + <input type="hidden" name="id" value="$sample.getSampleId()"> + <textarea name="url" cols="20" rows="20">$choosenfiles</textarea><br> + <input type="checkbox" name="finished" value="finished">Check if you consider this order to be finished<br> + <input type="submit" name="eventSubmit_doFullfill" value="Attach these files to this order"/> + </form> + </td> + <td> + <b>Choose files/directories you want to attach to this order!</b><br> + #foreach($file in $files) + <a href="$file.get(0)">$file.get(1)</a> <a href="$file.get(2)">>>>></a><br> + #end + </td> + </tr> + </table> + #end #else You are not a user in any labgroup or not yet approved! |
|
From: Stefan K. <sh...@us...> - 2006-09-01 21:05:38
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/doc In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8518/doc Modified Files: ER-Diagram_for_NMRShiftDB.gd ER-Diagram_for_NMRShiftDB.pdf ER-Diagram_for_NMRShiftDB.ps Log Message: improved doc Index: ER-Diagram_for_NMRShiftDB.gd =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/doc/ER-Diagram_for_NMRShiftDB.gd,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -r1.43 -r1.44 *** ER-Diagram_for_NMRShiftDB.gd 19 Oct 2005 09:49:44 -0000 1.43 --- ER-Diagram_for_NMRShiftDB.gd 1 Sep 2006 21:05:27 -0000 1.44 *************** *** 1529,1548 **** } - GenericNode 1656 - { - { Name "" } - { Annotation "" } - { Parent 0 } - { Index "" } - } - - GenericNode 1657 - { - { Name "Canonical\rName" } - { Annotation "" } - { Parent 0 } - { Index "" } - } - GenericNode 1658 { --- 1529,1532 ---- *************** *** 1563,1591 **** GenericNode 1660 { ! { Name "" } ! { Annotation "" } ! { Parent 0 } ! { Index "" } ! } ! ! GenericNode 1661 ! { ! { Name "" } ! { Annotation "" } ! { Parent 0 } ! { Index "" } ! } ! ! GenericNode 1662 ! { ! { Name "has" } ! { Annotation "" } ! { Parent 0 } ! { Index "" } ! } ! ! GenericNode 1663 ! { ! { Name "has" } { Annotation "" } { Parent 0 } --- 1547,1551 ---- GenericNode 1660 { ! { Name "has name" } { Annotation "" } { Parent 0 } *************** *** 3364,3394 **** } - GenericEdge 1665 - { - { Name "(1,1)" } - { Annotation "" } - { Parent 0 } - { Subject1 1660 } - { Subject2 1656 } - } - - GenericEdge 1666 - { - { Name "" } - { Annotation "" } - { Parent 0 } - { Subject1 1656 } - { Subject2 1658 } - } - - GenericEdge 1667 - { - { Name "" } - { Annotation "" } - { Parent 0 } - { Subject1 1659 } - { Subject2 1656 } - } - GenericEdge 1668 { --- 3324,3327 ---- *************** *** 3400,3412 **** } - GenericEdge 1669 - { - { Name "(0,*)" } - { Annotation "" } - { Parent 0 } - { Subject1 1653 } - { Subject2 1661 } - } - GenericEdge 1671 { --- 3333,3336 ---- *************** *** 3427,3439 **** } - GenericEdge 1693 - { - { Name "(1,1)" } - { Annotation "" } - { Parent 0 } - { Subject1 1656 } - { Subject2 1661 } - } - GenericEdge 1696 { --- 3351,3354 ---- *************** *** 3940,3943 **** --- 3855,3885 ---- } + GenericEdge 1901 + { + { Name "(0,*)" } + { Annotation "" } + { Parent 0 } + { Subject1 1660 } + { Subject2 1653 } + } + + GenericEdge 1902 + { + { Name "" } + { Annotation "" } + { Parent 0 } + { Subject1 1658 } + { Subject2 1660 } + } + + GenericEdge 1903 + { + { Name "" } + { Annotation "" } + { Parent 0 } + { Subject1 1659 } + { Subject2 1660 } + } + # VIEWS AND GRAPHICAL SHAPES *************** *** 7398,7402 **** { End2 Empty } { Points 2 } ! { Point 356 1053 } { Point 118 990 } { NamePosition 239 1012 } --- 7340,7344 ---- { End2 Empty } { Points 2 } ! { Point 355 1053 } { Point 118 990 } { NamePosition 239 1012 } *************** *** 11201,11263 **** } - Box 1676 - { - { View 32 } - { Subject 1656 } - { Position 80 1110 } - { Size 76 38 } - { Color "black" } - { LineWidth 1 } - { LineStyle Solid } - { FillStyle Unfilled } - { FillColor "white" } - { FixedName False } - { Font "-*-helvetica-medium-r-normal--10*" } - { TextAlignment Center } - { TextColor "black" } - { NameUnderlined False } - } - - Line 1677 - { - { View 32 } - { Subject 1665 } - { FromShape 1678 } - { ToShape 1676 } - { Curved False } - { End1 Empty } - { End2 Empty } - { Points 2 } - { Point 80 1059 } - { Point 80 1091 } - { NamePosition 66 1075 } - { Color "black" } - { LineWidth 1 } - { LineStyle Solid } - { FixedName False } - { Font "-*-helvetica-medium-r-normal--10*" } - { TextAlignment Center } - { TextColor "black" } - { NameUnderlined False } - } - - Box 1679 - { - { View 32 } - { Subject 1657 } - { Position 80 1110 } - { Size 68 30 } - { Color "black" } - { LineWidth 1 } - { LineStyle Solid } - { FillStyle Unfilled } - { FillColor "white" } - { FixedName False } - { Font "-*-helvetica-medium-r-normal--10*" } - { TextAlignment Center } - { TextColor "black" } - { NameUnderlined False } - } - EllipsedBox 1680 { --- 11143,11146 ---- *************** *** 11275,11301 **** { TextAlignment Center } { TextColor "black" } - { NameUnderlined True } - } - - Line 1681 - { - { View 32 } - { Subject 1666 } - { FromShape 1676 } - { ToShape 1680 } - { Curved False } - { End1 Empty } - { End2 Empty } - { Points 2 } - { Point 118 1125 } - { Point 155 1140 } - { NamePosition 141 1123 } - { Color "black" } - { LineWidth 1 } - { LineStyle Solid } - { FixedName False } - { Font "-*-helvetica-medium-r-normal--10*" } - { TextAlignment Center } - { TextColor "black" } { NameUnderlined False } } --- 11158,11161 ---- *************** *** 11319,11351 **** } - Line 1683 - { - { View 32 } - { Subject 1667 } - { FromShape 1682 } - { ToShape 1676 } - { Curved False } - { End1 Empty } - { End2 Empty } - { Points 2 } - { Point 159 1180 } - { Point 101 1129 } - { NamePosition 139 1147 } - { Color "black" } - { LineWidth 1 } - { LineStyle Solid } - { FixedName False } - { Font "-*-helvetica-medium-r-normal--10*" } - { TextAlignment Center } - { TextColor "black" } - { NameUnderlined False } - } - Diamond 1678 { { View 32 } { Subject 1660 } ! { Position 80 1040 } ! { Size 76 38 } { Color "black" } { LineWidth 1 } --- 11179,11188 ---- } Diamond 1678 { { View 32 } { Subject 1660 } ! { Position 80 1130 } ! { Size 74 47 } { Color "black" } { LineWidth 1 } *************** *** 11370,11456 **** { End2 Empty } { Points 2 } ! { Point 80 1021 } { Point 80 999 } ! { NamePosition 66 1010 } ! { Color "black" } ! { LineWidth 1 } ! { LineStyle Solid } ! { FixedName False } ! { Font "-*-helvetica-medium-r-normal--10*" } ! { TextAlignment Center } ! { TextColor "black" } ! { NameUnderlined False } ! } ! ! Diamond 1685 ! { ! { View 32 } ! { Subject 1661 } ! { Position 80 1190 } ! { Size 76 38 } ! { Color "black" } ! { LineWidth 1 } ! { LineStyle Solid } ! { FillStyle Unfilled } ! { FillColor "white" } ! { FixedName False } ! { Font "-*-helvetica-medium-r-normal--10*" } ! { TextAlignment Center } ! { TextColor "black" } ! { NameUnderlined False } ! } ! ! Line 1686 ! { ! { View 32 } ! { Subject 1669 } ! { FromShape 1672 } ! { ToShape 1685 } ! { Curved False } ! { End1 Empty } ! { End2 Empty } ! { Points 2 } ! { Point 80 1261 } ! { Point 80 1209 } ! { NamePosition 66 1235 } ! { Color "black" } ! { LineWidth 1 } ! { LineStyle Solid } ! { FixedName False } ! { Font "-*-helvetica-medium-r-normal--10*" } ! { TextAlignment Center } ! { TextColor "black" } ! { NameUnderlined False } ! } ! ! Diamond 1688 ! { ! { View 32 } ! { Subject 1662 } ! { Position 80 1190 } ! { Size 58 28 } ! { Color "black" } ! { LineWidth 1 } ! { LineStyle Solid } ! { FillStyle Unfilled } ! { FillColor "white" } ! { FixedName False } ! { Font "-*-helvetica-medium-r-normal--10*" } ! { TextAlignment Center } ! { TextColor "black" } ! { NameUnderlined False } ! } ! ! Diamond 1689 ! { ! { View 32 } ! { Subject 1663 } ! { Position 80 1040 } ! { Size 58 28 } { Color "black" } { LineWidth 1 } { LineStyle Solid } - { FillStyle Unfilled } - { FillColor "white" } { FixedName False } { Font "-*-helvetica-medium-r-normal--10*" } --- 11207,11216 ---- { End2 Empty } { Points 2 } ! { Point 80 1107 } { Point 80 999 } ! { NamePosition 66 1053 } { Color "black" } { LineWidth 1 } { LineStyle Solid } { FixedName False } { Font "-*-helvetica-medium-r-normal--10*" } *************** *** 11506,11532 **** } - Line 1694 - { - { View 32 } - { Subject 1693 } - { FromShape 1676 } - { ToShape 1685 } - { Curved False } - { End1 Empty } - { End2 Empty } - { Points 2 } - { Point 80 1129 } - { Point 80 1171 } - { NamePosition 66 1150 } - { Color "black" } - { LineWidth 1 } - { LineStyle Solid } - { FixedName False } - { Font "-*-helvetica-medium-r-normal--10*" } - { TextAlignment Center } - { TextColor "black" } - { NameUnderlined False } - } - Line 1701 { --- 11266,11269 ---- *************** *** 11608,11612 **** { End2 Empty } { Points 2 } ! { Point 460 1141 } { Point 118 996 } { NamePosition 293 1059 } --- 11345,11349 ---- { End2 Empty } { Points 2 } ! { Point 459 1141 } { Point 118 996 } { NamePosition 293 1059 } *************** *** 13375,13376 **** --- 13112,13182 ---- } + Line 1904 + { + { View 32 } + { Subject 1901 } + { FromShape 1678 } + { ToShape 1672 } + { Curved False } + { End1 Empty } + { End2 Empty } + { Points 2 } + { Point 80 1154 } + { Point 80 1261 } + { NamePosition 66 1207 } + { Color "black" } + { LineWidth 1 } + { LineStyle Solid } + { FixedName False } + { Font "-*-helvetica-medium-r-normal--10*" } + { TextAlignment Center } + { TextColor "black" } + { NameUnderlined False } + } + + Line 1905 + { + { View 32 } + { Subject 1902 } + { FromShape 1680 } + { ToShape 1678 } + { Curved False } + { End1 Empty } + { End2 Empty } + { Points 2 } + { Point 145 1143 } + { Point 108 1136 } + { NamePosition 128 1130 } + { Color "black" } + { LineWidth 1 } + { LineStyle Solid } + { FixedName False } + { Font "-*-helvetica-medium-r-normal--10*" } + { TextAlignment Center } + { TextColor "black" } + { NameUnderlined False } + } + + Line 1906 + { + { View 32 } + { Subject 1903 } + { FromShape 1682 } + { ToShape 1678 } + { Curved False } + { End1 Empty } + { End2 Empty } + { Points 2 } + { Point 155 1180 } + { Point 98 1142 } + { NamePosition 133 1153 } + { Color "black" } + { LineWidth 1 } + { LineStyle Solid } + { FixedName False } + { Font "-*-helvetica-medium-r-normal--10*" } + { TextAlignment Center } + { TextColor "black" } + { NameUnderlined False } + } + Index: ER-Diagram_for_NMRShiftDB.pdf =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/doc/ER-Diagram_for_NMRShiftDB.pdf,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 Binary files /tmp/cvsMmqJSj and /tmp/cvsxXi7Wq differ Index: ER-Diagram_for_NMRShiftDB.ps =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/doc/ER-Diagram_for_NMRShiftDB.ps,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -r1.30 -r1.31 *** ER-Diagram_for_NMRShiftDB.ps 19 Oct 2005 09:49:44 -0000 1.30 --- ER-Diagram_for_NMRShiftDB.ps 1 Sep 2006 21:05:27 -0000 1.31 *************** *** 2,6 **** %%Title: ER-Diagram_for_NMRShiftDB.gd %%Creator: TGD-version-2.20 ! %%CreationDate: Tue Oct 18 18:04:27 2005 %%For: shk3 %%DocumentFonts: (atend) --- 2,6 ---- %%Title: ER-Diagram_for_NMRShiftDB.gd %%Creator: TGD-version-2.20 ! %%CreationDate: Fri Sep 1 15:54:23 2006 %%For: shk3 %%DocumentFonts: (atend) *************** *** 3249,3253 **** newpath 118.000000 990.000000 moveto ! 356.000000 1053.000000 lineto stroke /Helvetica-ISOLatin1Encoding findfont --- 3249,3253 ---- newpath 118.000000 990.000000 moveto ! 355.000000 1053.000000 lineto stroke /Helvetica-ISOLatin1Encoding findfont *************** *** 6890,6936 **** 80.000000 1320.000000 lineto stroke - newpath - 42.000000 1091.000000 moveto - 42.000000 1129.000000 lineto - 118.000000 1129.000000 lineto - 118.000000 1091.000000 lineto - closepath - stroke - newpath - 80.000000 1091.000000 moveto - 80.000000 1059.000000 lineto - stroke - /Helvetica-ISOLatin1Encoding findfont - 10 scalefont setfont - (\(1,1\)) stringwidth - pop 2 div neg - 66.000000 add 1079.000000 moveto - gsave - 1 -1 scale - (\(1,1\)) show - grestore - newpath - 46.000000 1095.000000 moveto - 46.000000 1125.000000 lineto - 114.000000 1125.000000 lineto - 114.000000 1095.000000 lineto - closepath - stroke - /Helvetica-ISOLatin1Encoding findfont - 10 scalefont setfont - (Canonical) stringwidth - pop 2 div neg - 80.000000 add 1108.000000 moveto - gsave - 1 -1 scale - (Canonical) show - grestore - (Name) stringwidth - pop 2 div neg - 80.000000 add 1121.000000 moveto - gsave - 1 -1 scale - (Name) show - grestore /savematrix matrix currentmatrix def gsave --- 6890,6893 ---- *************** *** 6968,6979 **** (Name) show grestore - newpath - 167.000000 1156.000000 moveto - 193.000000 1156.000000 lineto - stroke - newpath - 155.000000 1140.000000 moveto - 118.000000 1125.000000 lineto - stroke /savematrix matrix currentmatrix def gsave --- 6925,6928 ---- *************** *** 7012,7048 **** grestore newpath ! 101.000000 1129.000000 moveto ! 159.000000 1180.000000 lineto ! stroke ! newpath ! 42.000000 1040.000000 moveto ! 80.000000 1059.000000 lineto ! 118.000000 1040.000000 lineto ! 80.000000 1021.000000 lineto closepath stroke - newpath - 80.000000 999.000000 moveto - 80.000000 1021.000000 lineto - stroke /Helvetica-ISOLatin1Encoding findfont 10 scalefont setfont ! (\(0,\*\)) stringwidth pop 2 div neg ! 66.000000 add 1014.000000 moveto gsave 1 -1 scale ! (\(0,\*\)) show grestore newpath ! 42.000000 1190.000000 moveto ! 80.000000 1209.000000 lineto ! 118.000000 1190.000000 lineto ! 80.000000 1171.000000 lineto ! closepath ! stroke ! newpath ! 80.000000 1209.000000 moveto ! 80.000000 1261.000000 lineto stroke /Helvetica-ISOLatin1Encoding findfont --- 6961,6982 ---- grestore newpath ! 43.000000 1130.000000 moveto ! 80.000000 1153.500000 lineto ! 117.000000 1130.000000 lineto ! 80.000000 1106.500000 lineto closepath stroke /Helvetica-ISOLatin1Encoding findfont 10 scalefont setfont ! (has name) stringwidth pop 2 div neg ! 80.000000 add 1134.000000 moveto gsave 1 -1 scale ! (has name) show grestore newpath ! 80.000000 999.000000 moveto ! 80.000000 1107.000000 lineto stroke /Helvetica-ISOLatin1Encoding findfont *************** *** 7050,7054 **** (\(0,\*\)) stringwidth pop 2 div neg ! 66.000000 add 1239.000000 moveto gsave 1 -1 scale --- 6984,6988 ---- (\(0,\*\)) stringwidth pop 2 div neg ! 66.000000 add 1057.000000 moveto gsave 1 -1 scale *************** *** 7056,7091 **** grestore newpath - 51.000000 1190.000000 moveto - 80.000000 1204.000000 lineto - 109.000000 1190.000000 lineto - 80.000000 1176.000000 lineto - closepath - stroke - /Helvetica-ISOLatin1Encoding findfont - 10 scalefont setfont - (has) stringwidth - pop 2 div neg - 80.000000 add 1194.000000 moveto - gsave - 1 -1 scale - (has) show - grestore - newpath - 51.000000 1040.000000 moveto - 80.000000 1054.000000 lineto - 109.000000 1040.000000 lineto - 80.000000 1026.000000 lineto - closepath - stroke - /Helvetica-ISOLatin1Encoding findfont - 10 scalefont setfont - (has) stringwidth - pop 2 div neg - 80.000000 add 1044.000000 moveto - gsave - 1 -1 scale - (has) show - grestore - newpath 140.000000 1250.000000 moveto 114.000000 1263.000000 lineto --- 6990,6993 ---- *************** *** 7105,7121 **** grestore newpath - 80.000000 1171.000000 moveto - 80.000000 1129.000000 lineto - stroke - /Helvetica-ISOLatin1Encoding findfont - 10 scalefont setfont - (\(1,1\)) stringwidth - pop 2 div neg - 66.000000 add 1154.000000 moveto - gsave - 1 -1 scale - (\(1,1\)) show - grestore - newpath 550.000000 470.000000 moveto 520.000000 440.000000 lineto --- 7007,7010 ---- *************** *** 7140,7144 **** newpath 118.000000 996.000000 moveto ! 460.000000 1141.000000 lineto stroke /Helvetica-ISOLatin1Encoding findfont --- 7029,7033 ---- newpath 118.000000 996.000000 moveto ! 459.000000 1141.000000 lineto stroke /Helvetica-ISOLatin1Encoding findfont *************** *** 8410,8413 **** --- 8299,8323 ---- 1867.000000 689.000000 lineto stroke + newpath + 80.000000 1261.000000 moveto + 80.000000 1154.000000 lineto + stroke + /Helvetica-ISOLatin1Encoding findfont + 10 scalefont setfont + (\(0,\*\)) stringwidth + pop 2 div neg + 66.000000 add 1211.000000 moveto + gsave + 1 -1 scale + (\(0,\*\)) show + grestore + newpath + 108.000000 1136.000000 moveto + 145.000000 1143.000000 lineto + stroke + newpath + 98.000000 1142.000000 moveto + 155.000000 1180.000000 lineto + stroke grestore showpage |
|
From: Stefan K. <sh...@us...> - 2006-08-31 15:45:40
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19687/src/java/org/openscience/nmrshiftdb/webservices Modified Files: NMRShiftDBServiceBindingImpl.java Log Message: bug Index: NMRShiftDBServiceBindingImpl.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDBServiceBindingImpl.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** NMRShiftDBServiceBindingImpl.java 31 Aug 2006 14:54:23 -0000 1.17 --- NMRShiftDBServiceBindingImpl.java 31 Aug 2006 15:45:35 -0000 1.18 *************** *** 157,168 **** } CMLMolecule cmlmol=(CMLMolecule)cmlcml.getChildCMLElement("molecule",0); - boolean[] doublebondconfigurations=new boolean[cmlmol.getBondCount()]; - for(int i=0;i<cmlmol.getBondCount();i++){ - CMLBond bond=cmlmol.getBonds().get(i); - if(bond.getFirstChildElement("doublebondconfiguration")==null){ - doublebondconfigurations[i]=true; - } - - } Elements spectra=cmlcml.getChildCMLElements("spectrum"); if(spectra.size()==0){ --- 157,160 ---- *************** *** 201,204 **** --- 193,205 ---- mdlwriter.write(cdkmol); subData.setMol(writer.toString(),false,false,true); + boolean[] doublebondconfigurations=new boolean[subData.getMolWithH().getBondCount()]; + for(int k=0;k<cmlmol.getBondCount();k++){ + CMLBond bond=cmlmol.getBonds().get(k); + if(bond.getFirstChildElement("doublebondconfiguration")==null){ + doublebondconfigurations[k]=true; + } + + } + subData.setIsDoubleBondSpecified(doublebondconfigurations); for(int k=0;k<cmlmol.getAtomCount();k++){ subData.getMolWithH().getAtom(k).setID(cmlmol.getAtom(k).getId()); |
|
From: Stefan K. <sh...@us...> - 2006-08-31 14:54:27
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv30605/src/java/org/openscience/nmrshiftdb/webservices Modified Files: NMRShiftDBServiceBindingImpl.java Log Message: extended web service Index: NMRShiftDBServiceBindingImpl.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDBServiceBindingImpl.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** NMRShiftDBServiceBindingImpl.java 31 Aug 2006 13:13:20 -0000 1.16 --- NMRShiftDBServiceBindingImpl.java 31 Aug 2006 14:54:23 -0000 1.17 *************** *** 49,52 **** --- 49,53 ---- import org.xmlcml.cml.base.CMLElements; import org.xmlcml.cml.base.CMLUtil; + import org.xmlcml.cml.element.CMLBond; import org.xmlcml.cml.element.CMLBuilder; import org.xmlcml.cml.element.CMLCml; *************** *** 156,159 **** --- 157,168 ---- } CMLMolecule cmlmol=(CMLMolecule)cmlcml.getChildCMLElement("molecule",0); + boolean[] doublebondconfigurations=new boolean[cmlmol.getBondCount()]; + for(int i=0;i<cmlmol.getBondCount();i++){ + CMLBond bond=cmlmol.getBonds().get(i); + if(bond.getFirstChildElement("doublebondconfiguration")==null){ + doublebondconfigurations[i]=true; + } + + } Elements spectra=cmlcml.getChildCMLElements("spectrum"); if(spectra.size()==0){ *************** *** 294,298 **** for(int i=0; i<elements.size(); i++) { Element elem = elements.get(i); ! if(!elem.getLocalName().equals("entry")){ elem.setNamespaceURI(CMLUtil.CML_NS); if (elem.getChildCount() != 0) { --- 303,307 ---- for(int i=0; i<elements.size(); i++) { Element elem = elements.get(i); ! if(!elem.getLocalName().equals("entry") && !elem.getLocalName().equals("doublebondconfiguration")){ elem.setNamespaceURI(CMLUtil.CML_NS); if (elem.getChildCount() != 0) { |
|
From: Stefan K. <sh...@us...> - 2006-08-31 13:13:23
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19089/src/java/org/openscience/nmrshiftdb/webservices Modified Files: NMRShiftDBServiceBindingImpl.java Log Message: extended submit service Index: NMRShiftDBServiceBindingImpl.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDBServiceBindingImpl.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** NMRShiftDBServiceBindingImpl.java 30 Aug 2006 18:37:34 -0000 1.15 --- NMRShiftDBServiceBindingImpl.java 31 Aug 2006 13:13:20 -0000 1.16 *************** *** 165,168 **** --- 165,169 ---- for(int i=0;i<spectra.size();i++){ CMLSpectrum spectrum=(CMLSpectrum)spectra.get(i); + CMLMolecule molecule=(CMLMolecule)cmlcml.getChildCMLElements("molecule").get(0); SubmittingData subData=new SubmittingData(webinfdir+"conf/normalizer.xml"); //is this an edit? *************** *** 174,177 **** --- 175,187 ---- } subData.setMeasured(); + StringBuffer names=new StringBuffer(); + for(int k=0;k<molecule.getNameElements().size();k++){ + if(molecule.getNameElements().get(k).getAttribute("convention")!=null && molecule.getNameElements().get(k).getAttribute("convention").getValue().equals("CAS")){ + subData.setCasNumber(molecule.getNameElements().get(k).getXMLContent()); + }else{ + names.append(molecule.getNameElements().get(k).getXMLContent()+"\r\n"); + } + } + subData.setChemName(names.toString()); DBSpectrumType type=DBSpectrumTypePeer.getByName(spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:OBSERVENUCLEUS").get(0).getContent()); subData.setChoosenSpectrumType(type); |
|
From: Stefan K. <sh...@us...> - 2006-08-30 18:37:43
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4251/src/java/org/openscience/nmrshiftdb/webservices Modified Files: NMRShiftDBServiceBindingImpl.java Log Message: minor changes Index: NMRShiftDBServiceBindingImpl.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDBServiceBindingImpl.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** NMRShiftDBServiceBindingImpl.java 29 Aug 2006 16:10:06 -0000 1.14 --- NMRShiftDBServiceBindingImpl.java 30 Aug 2006 18:37:34 -0000 1.15 *************** *** 6,10 **** import java.io.StringWriter; import java.rmi.RemoteException; - import java.sql.Statement; import java.util.Date; import java.util.HashMap; --- 6,9 ---- *************** *** 24,32 **** import org.apache.turbine.om.NumberKey; import org.apache.turbine.om.security.User; - import org.apache.turbine.services.db.TurbineDB; import org.apache.turbine.services.security.TurbineSecurity; import org.apache.turbine.util.TurbineConfig; import org.apache.turbine.util.db.Criteria; - import org.apache.turbine.util.db.pool.DBConnection; import org.openscience.cdk.ChemFile; import org.openscience.cdk.interfaces.IChemFile; --- 23,29 ---- *************** *** 44,47 **** --- 41,45 ---- import org.openscience.nmrshiftdb.om.NmrshiftdbUser; import org.openscience.nmrshiftdb.om.NmrshiftdbUserPeer; + import org.openscience.nmrshiftdb.portlets.SubmitPortlet; import org.openscience.nmrshiftdb.util.GeneralUtils; import org.openscience.nmrshiftdb.util.NmrshiftdbConstants; *************** *** 171,176 **** if(spectrum.getMetadataListElements().size()>0 && spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:nmrshiftdbid").size()>0){ if(spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:nmrshiftdbid").size()>0){ - DBConnection dbconn = TurbineDB.getConnection(); - Statement stmt = dbconn.createStatement(); List l=DBSpectrumPeer.executeQuery("select SPECTRUM_ID from SPECTRUM where NMRSHIFTDB_NUMBER='"+spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:nmrshiftdbid").get(0).getContent()+"'"); subData.setEditSpectrum(new NumberKey(((Record)l.get(0)).getValue(1).asInt())); --- 169,172 ---- *************** *** 207,211 **** if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Solvent")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals("jcamp:.SOLVENTNAME")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; --- 203,207 ---- if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Solvent")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals(NmrshiftdbConstants.solvent)){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; *************** *** 215,219 **** if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Temperature [K]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals("jcamp:TEMPERATURE")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; --- 211,215 ---- if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Temperature [K]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals(NmrshiftdbConstants.temperature)){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; *************** *** 223,227 **** if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Field Strength [MHz]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals("jcamp:.OBSERVE FREQUENCY")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; --- 219,223 ---- if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Field Strength [MHz]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals(NmrshiftdbConstants.frequency)){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; *************** *** 230,234 **** } if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Assignment Method")){ ! ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:assignmentMethod").get(0).getContent()); } } --- 226,230 ---- } if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Assignment Method")){ ! ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName(NmrshiftdbConstants.assignment).get(0).getContent()); } } *************** *** 270,273 **** --- 266,270 ---- subData.save(user.getUserId(),"false","bioclipse", new Date(),null,Integer.parseInt(GeneralUtils.getNmrshiftdbProperty("hosecode.spheres")), false); sb.append(subData.nmrshiftdbnr+" "); + SubmitPortlet.doReview(subData, new Date(), user, null); } DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); |
|
From: Stefan K. <sh...@us...> - 2006-08-30 18:37:43
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/util In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4251/src/java/org/openscience/nmrshiftdb/util Modified Files: NmrshiftdbConstants.java Log Message: minor changes Index: NmrshiftdbConstants.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/util/NmrshiftdbConstants.java,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** NmrshiftdbConstants.java 24 Aug 2006 12:00:25 -0000 1.34 --- NmrshiftdbConstants.java 30 Aug 2006 18:37:34 -0000 1.35 *************** *** 70,73 **** --- 70,81 ---- public static String CONDITION="condition"; + //These are used for handling of properties in cml submits. need to duplicate the Bc_nmrshfitdbConstants in bc_nmrshiftdb of bioclipse + public static String frequency="jcamp:.OBSERVE FREQUENCY"; + public static String solvent="jcamp:.SOLVENTNAME"; + public static String temperature="jcamp:TEMPERATURE"; + public static String assignment="nmr:assignmentMethod"; + public static String nucleus="nmr:OBSERVENUCLEUS"; + public static String nmrid="nmr:nmrshiftdbid"; + //These are needed for velocity which cannot read attributes public String getSUBSPECTRUM(){ |
|
From: Stefan K. <sh...@us...> - 2006-08-29 16:10:18
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/util In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv17360/src/java/org/openscience/nmrshiftdb/util Modified Files: GeneralUtils.java Log Message: improved web service Index: GeneralUtils.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/util/GeneralUtils.java,v retrieving revision 1.185 retrieving revision 1.186 diff -C2 -r1.185 -r1.186 *** GeneralUtils.java 28 Aug 2006 14:33:58 -0000 1.185 --- GeneralUtils.java 29 Aug 2006 16:10:05 -0000 1.186 *************** *** 820,824 **** StringBuffer buffer = new StringBuffer(); for (int i = 0; i < text.length(); i++) { ! if (text.charAt(i) == '\'' || text.charAt(i) == '\"' || text.charAt(i) == '\\' || text.charAt(i) == '%') { buffer.append('\\'); } --- 820,824 ---- StringBuffer buffer = new StringBuffer(); for (int i = 0; i < text.length(); i++) { ! if (text.charAt(i) == '\'' || text.charAt(i) == '\"' || text.charAt(i) == '\\' || text.charAt(i) == '%' || text.charAt(i) == '\'') { buffer.append('\\'); } |
|
From: Stefan K. <sh...@us...> - 2006-08-29 16:10:15
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv17360/src/java/org/openscience/nmrshiftdb Modified Files: AdminPanel.java Log Message: improved web service Index: AdminPanel.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/AdminPanel.java,v retrieving revision 1.231 retrieving revision 1.232 diff -C2 -r1.231 -r1.232 *** AdminPanel.java 28 Aug 2006 14:33:58 -0000 1.231 --- AdminPanel.java 29 Aug 2006 16:10:04 -0000 1.232 *************** *** 994,998 **** DBConnection dbconn = TurbineDB.getConnection(); Statement stmt = dbconn.createStatement(); ! ResultSet rs = stmt.executeQuery("select MOLECULE_ID from MOLECULE;"); int errors=0; while (rs.next()) { --- 994,1004 ---- DBConnection dbconn = TurbineDB.getConnection(); Statement stmt = dbconn.createStatement(); ! ResultSet rs = stmt.executeQuery("select SPECTRUM_ID, COMMENT from SPECTRUM;"); ! FileOutputStream fos=new FileOutputStream("/tmp/gr.sql"); ! while (rs.next()) { ! fos.write(new String("update SPECTRUM set COMMENT='"+GeneralUtils.escape(rs.getString(2))+"' where SPECTRUM_ID="+rs.getInt(1)+";\r\n").getBytes()); ! } ! fos.close(); ! /*ResultSet rs = stmt.executeQuery("select MOLECULE_ID from MOLECULE;"); int errors=0; while (rs.next()) { *************** *** 1005,1015 **** errors++; } ! } //makes multis from h count ! /*for(int i=115962;i<=118436;i++){ System.err.println(i+""); ! ResultSet rs=stmt.executeQuery("select SIGNAL_ID from SIGNAL where SPECTRUM_ID="+i); ! while(rs.next()){ ! DBSignal signal=DBSignalPeer.retrieveByPK(new NumberKey(rs.getInt(1))); if(signal.getMultiplicity().equals("")){ if(((DBAtom)signal.getAtoms().get(0)).getHydrogenCount()==0) --- 1011,1024 ---- errors++; } ! }*/ //makes multis from h count ! /* ! ResultSet rs = stmt.executeQuery("select SIGNAL.SPECTRUM_ID, SPECTRUM.NMRSHIFTDB_NUMBER, count(*) as c from SIGNAL, SPECTRUM where MULTIPLICITY='' and SIGNAL.SPECTRUM_ID=SPECTRUM.SPECTRUM_ID and SPECTRUM.SPECTRUM_TYPE_ID=1 and SPECTRUM.REVIEW_FLAG='true' group by SIGNAL.SPECTRUM_ID having c>3"); ! while (rs.next()){ ! int i=rs.getInt(1); System.err.println(i+""); ! ResultSet rs2=stmt.executeQuery("select SIGNAL_ID from SIGNAL where SPECTRUM_ID="+i); ! while(rs2.next()){ ! DBSignal signal=DBSignalPeer.retrieveByPK(new NumberKey(rs2.getInt(1))); if(signal.getMultiplicity().equals("")){ if(((DBAtom)signal.getAtoms().get(0)).getHydrogenCount()==0) *************** *** 1063,1067 **** } }*/ ! System.err.println("There were "+errors+" errors"); } --- 1072,1076 ---- } }*/ ! //System.err.println("There were "+errors+" errors"); } |
|
From: Stefan K. <sh...@us...> - 2006-08-29 16:10:15
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv17360/src/java/org/openscience/nmrshiftdb/om Modified Files: DBAtom.java Log Message: improved web service Index: DBAtom.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/DBAtom.java,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -r1.53 -r1.54 *** DBAtom.java 28 Aug 2006 14:33:58 -0000 1.53 --- DBAtom.java 29 Aug 2006 16:10:05 -0000 1.54 *************** *** 61,65 **** setAtomicMass(atom.getAtomicNumber()); setFormalCharge(atom.getFormalCharge()); ! if ((!Double.isNaN(atom.getPoint3d().z) && atom.getPoint3d().z != 0) || force3d) { coords3 = new DBCoordinateSet3d(atom.getPoint2d().x, atom.getPoint2d().y, atom.getPoint3d().z, 1); } else { --- 61,65 ---- setAtomicMass(atom.getAtomicNumber()); setFormalCharge(atom.getFormalCharge()); ! if (atom.getPoint3d()!=null && ((!Double.isNaN(atom.getPoint3d().z) && atom.getPoint3d().z != 0) || force3d)) { coords3 = new DBCoordinateSet3d(atom.getPoint2d().x, atom.getPoint2d().y, atom.getPoint3d().z, 1); } else { |
|
From: Stefan K. <sh...@us...> - 2006-08-29 16:10:14
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv17360/src/java/org/openscience/nmrshiftdb/webservices Modified Files: NMRShiftDBServiceBindingImpl.java Log Message: improved web service Index: NMRShiftDBServiceBindingImpl.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDBServiceBindingImpl.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** NMRShiftDBServiceBindingImpl.java 28 Aug 2006 14:33:58 -0000 1.13 --- NMRShiftDBServiceBindingImpl.java 29 Aug 2006 16:10:06 -0000 1.14 *************** *** 6,11 **** --- 6,13 ---- import java.io.StringWriter; import java.rmi.RemoteException; + import java.sql.Statement; import java.util.Date; import java.util.HashMap; + import java.util.List; import java.util.Properties; import java.util.Vector; *************** *** 20,35 **** --- 22,43 ---- import nu.xom.converters.DOMConverter; + import org.apache.turbine.om.NumberKey; import org.apache.turbine.om.security.User; + import org.apache.turbine.services.db.TurbineDB; import org.apache.turbine.services.security.TurbineSecurity; import org.apache.turbine.util.TurbineConfig; import org.apache.turbine.util.db.Criteria; + import org.apache.turbine.util.db.pool.DBConnection; import org.openscience.cdk.ChemFile; import org.openscience.cdk.interfaces.IChemFile; import org.openscience.cdk.interfaces.IMolecule; import org.openscience.cdk.io.CMLReader; + import org.openscience.cdk.io.MDLWriter; + import org.openscience.cdk.io.cml.ChemFileCDO; import org.openscience.cdk.tools.manipulator.AtomContainerManipulator; import org.openscience.nmrshiftdb.PredictionTool; import org.openscience.nmrshiftdb.om.DBConditionType; import org.openscience.nmrshiftdb.om.DBLiterature; + import org.openscience.nmrshiftdb.om.DBSpectrumPeer; import org.openscience.nmrshiftdb.om.DBSpectrumType; import org.openscience.nmrshiftdb.om.DBSpectrumTypePeer; *************** *** 50,54 **** import org.xmlcml.cml.element.CMLScalar; import org.xmlcml.cml.element.CMLSpectrum; ! import org.xmlcml.cml.legacy.molecule.MDLConverter; public class NMRShiftDBServiceBindingImpl implements NMRShiftDB { --- 58,63 ---- import org.xmlcml.cml.element.CMLScalar; import org.xmlcml.cml.element.CMLSpectrum; ! ! import com.workingdogs.village.Record; public class NMRShiftDBServiceBindingImpl implements NMRShiftDB { *************** *** 159,169 **** CMLSpectrum spectrum=(CMLSpectrum)spectra.get(i); SubmittingData subData=new SubmittingData(webinfdir+"conf/normalizer.xml"); subData.setMeasured(); DBSpectrumType type=DBSpectrumTypePeer.getByName(spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:OBSERVENUCLEUS").get(0).getContent()); subData.setChoosenSpectrumType(type); StringWriter writer=new StringWriter(); ! MDLConverter mdlconv=new MDLConverter(); ! mdlconv.setVersion("V2000"); ! mdlconv.writeMOL(writer,cmlmol); subData.setMol(writer.toString(),false,false,true); for(int k=0;k<cmlmol.getAtomCount();k++){ --- 168,188 ---- CMLSpectrum spectrum=(CMLSpectrum)spectra.get(i); SubmittingData subData=new SubmittingData(webinfdir+"conf/normalizer.xml"); + //is this an edit? + if(spectrum.getMetadataListElements().size()>0 && spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:nmrshiftdbid").size()>0){ + if(spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:nmrshiftdbid").size()>0){ + DBConnection dbconn = TurbineDB.getConnection(); + Statement stmt = dbconn.createStatement(); + List l=DBSpectrumPeer.executeQuery("select SPECTRUM_ID from SPECTRUM where NMRSHIFTDB_NUMBER='"+spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:nmrshiftdbid").get(0).getContent()+"'"); + subData.setEditSpectrum(new NumberKey(((Record)l.get(0)).getValue(1).asInt())); + } + } subData.setMeasured(); DBSpectrumType type=DBSpectrumTypePeer.getByName(spectrum.getMetadataListElements().get(0).getMetadataDescendantsByName("nmr:OBSERVENUCLEUS").get(0).getContent()); subData.setChoosenSpectrumType(type); + CMLReader cmlreader=new CMLReader(new ByteArrayInputStream(cmlmol.toXML().getBytes())); + IMolecule cdkmol=((ChemFileCDO)cmlreader.read(new ChemFile())).getChemSequence(0).getChemModel(0).getSetOfMolecules().getMolecule(0); StringWriter writer=new StringWriter(); ! MDLWriter mdlwriter=new MDLWriter(writer); ! mdlwriter.write(cdkmol); subData.setMol(writer.toString(),false,false,true); for(int k=0;k<cmlmol.getAtomCount();k++){ *************** *** 250,254 **** } subData.save(user.getUserId(),"false","bioclipse", new Date(),null,Integer.parseInt(GeneralUtils.getNmrshiftdbProperty("hosecode.spheres")), false); ! sb.append(subData.spectrumid+" "); } DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); --- 269,273 ---- } subData.save(user.getUserId(),"false","bioclipse", new Date(),null,Integer.parseInt(GeneralUtils.getNmrshiftdbProperty("hosecode.spheres")), false); ! sb.append(subData.nmrshiftdbnr+" "); } DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); |
|
From: Stefan K. <sh...@us...> - 2006-08-28 14:34:28
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/apache/jetspeed/modules/actions In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32127/src/java/org/apache/jetspeed/modules/actions Modified Files: CreateNewUserAndConfirm.java Log Message: updated cdk Index: CreateNewUserAndConfirm.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/apache/jetspeed/modules/actions/CreateNewUserAndConfirm.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** CreateNewUserAndConfirm.java 28 Feb 2006 11:49:46 -0000 1.29 --- CreateNewUserAndConfirm.java 28 Aug 2006 14:33:57 -0000 1.30 *************** *** 90,108 **** import org.openscience.nmrshiftdb.om.NmrshiftdbUserPeer; import org.openscience.nmrshiftdb.util.GeneralUtils; - /** - *This action validates the form input from the NewAccount Screen. - *If it is valid, then it will check to make sure that the user account - *does not already exist. If it does, then it will show the NewAccount - *screen again. If it doesn't alread exist, then it will create the new - *user and set the CONFIRM_VALUE to be the users session id. This part should - *probably be re-done to get a better less hackable CONFIRM_VALUE, but this - *should work for now. If everything goes well, this action will send the user - *a confirmation email and then show the ConfirmRegistration screen. - * - * @author Jon S. Stevens <a href="mailto:jo...@cl...">jo...@cl...</a> - * @author David S. Taylor <a href="mailto:da...@bl...">da...@bl...</a> - * @author Tom Adams <a href="mailto:to...@PI...">to...@PI...</a> - * @created April 29, 2002 - */ /** --- 90,93 ---- |
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32127/src/java/org/openscience/nmrshiftdb/om Modified Files: BaseDBConditionType.java BaseDBConditionTypePeer.java DBAtom.java DBMolecule.java DBSpectrum.java Log Message: updated cdk Index: BaseDBConditionType.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/BaseDBConditionType.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** BaseDBConditionType.java 8 Jun 2006 12:22:45 -0000 1.6 --- BaseDBConditionType.java 28 Aug 2006 14:33:58 -0000 1.7 *************** *** 2,14 **** ! import java.util.*; ! import java.math.*; ! import org.apache.turbine.om.*; import org.apache.turbine.om.peer.BasePeer; - import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.ObjectUtils; ! import org.apache.turbine.util.StringUtils; ! import org.apache.turbine.util.ParameterParser; ! import org.apache.turbine.util.Log; import org.apache.turbine.util.db.pool.DBConnection; --- 2,16 ---- ! import java.util.List; ! import java.util.Vector; ! ! import org.apache.turbine.om.BaseObject; ! import org.apache.turbine.om.NumberKey; ! import org.apache.turbine.om.ObjectKey; ! import org.apache.turbine.om.Persistent; ! import org.apache.turbine.om.Retrievable; import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.util.ObjectUtils; ! import org.apache.turbine.util.db.Criteria; import org.apache.turbine.util.db.pool.DBConnection; Index: BaseDBConditionTypePeer.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/BaseDBConditionTypePeer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** BaseDBConditionTypePeer.java 8 Jun 2006 12:22:45 -0000 1.6 --- BaseDBConditionTypePeer.java 28 Aug 2006 14:33:58 -0000 1.7 *************** *** 1,19 **** package org.openscience.nmrshiftdb.om; ! import java.util.*; ! import java.math.*; ! import java.sql.*; ! import com.workingdogs.village.*; ! import org.apache.turbine.om.*; ! import org.apache.turbine.om.peer.*; ! import org.apache.turbine.util.*; ! import org.apache.turbine.util.db.*; ! import org.apache.turbine.util.db.map.*; ! import org.apache.turbine.util.db.pool.DBConnection; import org.apache.turbine.services.db.TurbineDB; ! import org.apache.turbine.util.TurbineException; ! // Local classes ! import org.openscience.nmrshiftdb.om.map.*; /** --- 1,19 ---- package org.openscience.nmrshiftdb.om; ! import java.util.Vector; ! ! import org.apache.turbine.om.NumberKey; ! import org.apache.turbine.om.ObjectKey; ! import org.apache.turbine.om.peer.BasePeer; import org.apache.turbine.services.db.TurbineDB; ! import org.apache.turbine.util.Log; ! import org.apache.turbine.util.db.Criteria; ! import org.apache.turbine.util.db.map.MapBuilder; ! import org.apache.turbine.util.db.map.TableMap; ! import org.apache.turbine.util.db.pool.DBConnection; ! import org.openscience.nmrshiftdb.om.map.DBConditionTypeMapBuilder; ! import com.workingdogs.village.QueryDataSet; ! import com.workingdogs.village.Record; /** Index: DBAtom.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/DBAtom.java,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -r1.52 -r1.53 *** DBAtom.java 30 May 2006 11:42:48 -0000 1.52 --- DBAtom.java 28 Aug 2006 14:33:58 -0000 1.53 *************** *** 61,68 **** setAtomicMass(atom.getAtomicNumber()); setFormalCharge(atom.getFormalCharge()); ! if ((!Double.isNaN(atom.getZ3d()) && atom.getZ3d() != 0) || force3d) { ! coords3 = new DBCoordinateSet3d(atom.getX2d(), atom.getY2d(), atom.getZ3d(), 1); } else { ! coords2 = new DBCoordinateSet2d(atom.getX2d(), atom.getY2d(), 1); } if (atom.getFlag(CDKConstants.ISAROMATIC)) { --- 61,68 ---- setAtomicMass(atom.getAtomicNumber()); setFormalCharge(atom.getFormalCharge()); ! if ((!Double.isNaN(atom.getPoint3d().z) && atom.getPoint3d().z != 0) || force3d) { ! coords3 = new DBCoordinateSet3d(atom.getPoint2d().x, atom.getPoint2d().y, atom.getPoint3d().z, 1); } else { ! coords2 = new DBCoordinateSet2d(atom.getPoint2d().x, atom.getPoint2d().y, 1); } if (atom.getFlag(CDKConstants.ISAROMATIC)) { *************** *** 130,134 **** for (int i = 0; i < dbatoms.length; i++) { if(this.getAtomId().equals(dbatoms[i].getAtomId())){ ! IAtom[] connectedatoms=mol.getConnectedAtoms(mol.getAtomAt(i)); for(int k=0;k<connectedatoms.length;k++){ connecteddbatoms.add(dbatoms[mol.getAtomNumber(connectedatoms[k])]); --- 130,134 ---- for (int i = 0; i < dbatoms.length; i++) { if(this.getAtomId().equals(dbatoms[i].getAtomId())){ ! IAtom[] connectedatoms=mol.getConnectedAtoms(mol.getAtom(i)); for(int k=0;k<connectedatoms.length;k++){ connecteddbatoms.add(dbatoms[mol.getAtomNumber(connectedatoms[k])]); *************** *** 257,261 **** for (int i = 0; i < atoms.length; i++) { if (atoms[i].equals(this)) { ! return (getDBMolecule().getAsCDKMolecule(1).getAtomAt(i)); } } --- 257,261 ---- for (int i = 0; i < atoms.length; i++) { if (atoms[i].equals(this)) { ! return (getDBMolecule().getAsCDKMolecule(1).getAtom(i)); } } *************** *** 275,279 **** for (int i = 0; i < atoms.length; i++) { if (atoms[i].equals(this)) { ! return (subData.getMolWithH().getAtomAt(i)); } } --- 275,279 ---- for (int i = 0; i < atoms.length; i++) { if (atoms[i].equals(this)) { ! return (subData.getMolWithH().getAtom(i)); } } Index: DBMolecule.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/DBMolecule.java,v retrieving revision 1.186 retrieving revision 1.187 diff -C2 -r1.186 -r1.187 *** DBMolecule.java 18 Aug 2006 10:45:24 -0000 1.186 --- DBMolecule.java 28 Aug 2006 14:33:58 -0000 1.187 *************** *** 223,227 **** } } ! IBond bond = new org.openscience.cdk.Bond(cdkMolecule.getAtomAt(((Integer) map.get(new NumberKey(mdl1))).intValue()), cdkMolecule.getAtomAt(((Integer) map.get(new NumberKey(mdl2))).intValue()), (double) order, stereo); if (thisBond.getIsAromatic().equals(NmrshiftdbConstants.TRUE)) { bond.setFlag(CDKConstants.ISAROMATIC, true); --- 223,227 ---- } } ! IBond bond = new org.openscience.cdk.Bond(cdkMolecule.getAtom(((Integer) map.get(new NumberKey(mdl1))).intValue()), cdkMolecule.getAtom(((Integer) map.get(new NumberKey(mdl2))).intValue()), (double) order, stereo); if (thisBond.getIsAromatic().equals(NmrshiftdbConstants.TRUE)) { bond.setFlag(CDKConstants.ISAROMATIC, true); *************** *** 294,298 **** IMolecule molgo = (IMolecule)AtomContainerManipulator.removeHydrogens(mol); for (int i = 0; i < molgo.getAtomCount(); i++) { ! molgo.getAtomAt(i).setHydrogenCount(0); } AllRingsFinder arf=new AllRingsFinder(); --- 294,298 ---- IMolecule molgo = (IMolecule)AtomContainerManipulator.removeHydrogens(mol); for (int i = 0; i < molgo.getAtomCount(); i++) { ! molgo.getAtom(i).setHydrogenCount(0); } AllRingsFinder arf=new AllRingsFinder(); *************** *** 767,771 **** for(int i=0;i<localmol.getAtomCount();i++){ DBCoordinateSet2d set2d=DBCoordinateSet2dPeer.retrieveByPK(new NumberKey(1), this.getAtomsAsArrayInMdlOrder()[i].getAtomId()); ! localmol.getAtomAt(i).setPoint2d(new Point2d(set2d.getXCoordinate(),set2d.getYCoordinate())); } return localmol; --- 767,771 ---- for(int i=0;i<localmol.getAtomCount();i++){ DBCoordinateSet2d set2d=DBCoordinateSet2dPeer.retrieveByPK(new NumberKey(1), this.getAtomsAsArrayInMdlOrder()[i].getAtomId()); ! localmol.getAtom(i).setPoint2d(new Point2d(set2d.getXCoordinate(),set2d.getYCoordinate())); } return localmol; *************** *** 887,891 **** cdkMoleculeWithoutHsAndCount = (IMolecule)AtomContainerManipulator.removeHydrogens(getAsCDKMolecule(1)); for (int i = 0; i < cdkMoleculeWithoutHsAndCount.getAtomCount(); i++) { ! cdkMoleculeWithoutHsAndCount.getAtomAt(i).setHydrogenCount(0); } } --- 887,891 ---- cdkMoleculeWithoutHsAndCount = (IMolecule)AtomContainerManipulator.removeHydrogens(getAsCDKMolecule(1)); for (int i = 0; i < cdkMoleculeWithoutHsAndCount.getAtomCount(); i++) { ! cdkMoleculeWithoutHsAndCount.getAtom(i).setHydrogenCount(0); } } *************** *** 1406,1410 **** for (int i = 0; i < atoms.length; i++) { if (atoms[i].getAnySignal(spectrum.getSpectrumId()) != null && !atoms[i].getAnySignal(spectrum.getSpectrumId()).getMultiplicity().equals("")) { ! subData.multis.put(subData.getMolWithH().getAtomAt(i), atoms[i].getAnySignal(spectrum.getSpectrumId()).getMultiplicity()); } } --- 1406,1410 ---- for (int i = 0; i < atoms.length; i++) { if (atoms[i].getAnySignal(spectrum.getSpectrumId()) != null && !atoms[i].getAnySignal(spectrum.getSpectrumId()).getMultiplicity().equals("")) { ! subData.multis.put(subData.getMolWithH().getAtom(i), atoms[i].getAnySignal(spectrum.getSpectrumId()).getMultiplicity()); } } *************** *** 1527,1534 **** IMolecule promol = new org.openscience.cdk.Molecule(); for (int i = 0; i < getAsCDKMolecule(setid).getAtomCount(); i++) { ! promol.addAtom(getAsCDKMolecule(setid).getAtomAt(i)); } for (int i = 0; i < getAsCDKMolecule(setid).getBondCount(); i++) { ! promol.addBond(getAsCDKMolecule(setid).getBondAt(i)); } DBAtom[] atoms = getAtomsAsArrayInMdlOrder(); --- 1527,1534 ---- IMolecule promol = new org.openscience.cdk.Molecule(); for (int i = 0; i < getAsCDKMolecule(setid).getAtomCount(); i++) { ! promol.addAtom(getAsCDKMolecule(setid).getAtom(i)); } for (int i = 0; i < getAsCDKMolecule(setid).getBondCount(); i++) { ! promol.addBond(getAsCDKMolecule(setid).getBond(i)); } DBAtom[] atoms = getAtomsAsArrayInMdlOrder(); *************** *** 1542,1553 **** promol.setProperty(CDKConstants.REMARK, "NMRShiftDB " + getMoleculeId()+" "+getNmrshiftdbNumber()); for(int i=0;i<promol.getAtomCount();i++){ ! promol.getAtomAt(i).setFlag(CDKConstants.ISAROMATIC, false); if(i<promol.getBondCount()) ! promol.getBondAt(i).setFlag(CDKConstants.ISAROMATIC, false); } new SaturationChecker().newSaturate(promol.getBonds(), promol); for (int i = promol.getAtomCount() - 1; i > -1; i--) { if (!visibility[i]) { ! promol.removeAtomAndConnectedElectronContainers(promol.getAtomAt(i)); } } --- 1542,1553 ---- promol.setProperty(CDKConstants.REMARK, "NMRShiftDB " + getMoleculeId()+" "+getNmrshiftdbNumber()); for(int i=0;i<promol.getAtomCount();i++){ ! promol.getAtom(i).setFlag(CDKConstants.ISAROMATIC, false); if(i<promol.getBondCount()) ! promol.getBond(i).setFlag(CDKConstants.ISAROMATIC, false); } new SaturationChecker().newSaturate(promol.getBonds(), promol); for (int i = promol.getAtomCount() - 1; i > -1; i--) { if (!visibility[i]) { ! promol.removeAtomAndConnectedElectronContainers(promol.getAtom(i)); } } *************** *** 1603,1607 **** public IMolecule addCdkCoords(DBConnection conn, IMolecule mol, NumberKey[] atoms) throws Exception{ for(int k=0;k<mol.getAtomCount();k++){ ! mol.getAtomAt(k).setFlag(CDKConstants.ISPLACED, false); } GeneralUtils.getModelBuilder("mm2").setMolecule(mol, false); --- 1603,1607 ---- public IMolecule addCdkCoords(DBConnection conn, IMolecule mol, NumberKey[] atoms) throws Exception{ for(int k=0;k<mol.getAtomCount();k++){ ! mol.getAtom(k).setFlag(CDKConstants.ISPLACED, false); } GeneralUtils.getModelBuilder("mm2").setMolecule(mol, false); *************** *** 1609,1613 **** IMolecule mol3d = GeneralUtils.getModelBuilder("mm2").getMolecule(); for(int k=0;k<mol3d.getAtomCount();k++){ ! DBCoordinateSet3d c3=new DBCoordinateSet3d(mol3d.getAtomAt(k).getPoint3d().x,mol3d.getAtomAt(k).getPoint3d().y,mol3d.getAtomAt(k).getPoint3d().z,3,atoms[k]); c3.save(conn); } --- 1609,1613 ---- IMolecule mol3d = GeneralUtils.getModelBuilder("mm2").getMolecule(); for(int k=0;k<mol3d.getAtomCount();k++){ ! DBCoordinateSet3d c3=new DBCoordinateSet3d(mol3d.getAtom(k).getPoint3d().x,mol3d.getAtom(k).getPoint3d().y,mol3d.getAtom(k).getPoint3d().z,3,atoms[k]); c3.save(conn); } Index: DBSpectrum.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/DBSpectrum.java,v retrieving revision 1.185 retrieving revision 1.186 diff -C2 -r1.185 -r1.186 *** DBSpectrum.java 23 Aug 2006 15:09:11 -0000 1.185 --- DBSpectrum.java 28 Aug 2006 14:33:58 -0000 1.186 *************** *** 267,271 **** }else{ StringBuffer comment=new StringBuffer(); ! prediction = AtomUtils.predictRange(getDBMolecule().getAsCDKMolecule(1), getDBMolecule().getAsCDKMolecule(1).getAtomAt(((DBAtom) neighbouringAtoms.get(l)).getMdlNumber()), false, true, null, comment, false, true, runData, null, -1, true,null, ((Boolean)runData.getSession().getAttribute("trueonly")).booleanValue()); searchShift.append(new String(format.format(prediction[0]) + "-<b>" + format.format(prediction[1]) + "</b>-" + format.format(prediction[2])) + "; " + comment); } --- 267,271 ---- }else{ StringBuffer comment=new StringBuffer(); ! prediction = AtomUtils.predictRange(getDBMolecule().getAsCDKMolecule(1), getDBMolecule().getAsCDKMolecule(1).getAtom(((DBAtom) neighbouringAtoms.get(l)).getMdlNumber()), false, true, null, comment, false, true, runData, null, -1, true,null, ((Boolean)runData.getSession().getAttribute("trueonly")).booleanValue()); searchShift.append(new String(format.format(prediction[0]) + "-<b>" + format.format(prediction[1]) + "</b>-" + format.format(prediction[2])) + "; " + comment); } *************** *** 328,332 **** l--; } ! double[] prediction = AtomUtils.predictRange(cdkMolWithOutH, cdkMolWithOutH.getAtomAt(l), false, true, null, comment, false, true, runData, null, -1, true,null, ((Boolean)runData.getSession().getAttribute("trueonly")).booleanValue()); if (prediction[0] > prediction[1]) { prediction[0] = prediction[1]; --- 328,332 ---- l--; } ! double[] prediction = AtomUtils.predictRange(cdkMolWithOutH, cdkMolWithOutH.getAtom(l), false, true, null, comment, false, true, runData, null, -1, true,null, ((Boolean)runData.getSession().getAttribute("trueonly")).booleanValue()); if (prediction[0] > prediction[1]) { prediction[0] = prediction[1]; |
Update of /cvsroot/nmrshiftdb/nmrshiftdb/lib In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32127/lib Modified Files: cdk-builder3d.jar cdk-charges.jar cdk-core.jar cdk-data.jar cdk-extra.jar cdk-forcefield.jar cdk-interfaces.jar cdk-io.jar cdk-libio-cml.jar cdk-pdb-cml.jar cdk-pdb.jar cdk-qsar-cml.jar cdk-qsar.jar cdk-render.jar cdk-smiles.jar cdk-standard.jar cdk-valencycheck.jar Added Files: cdk-sdg.jar Log Message: updated cdk --- NEW FILE: cdk-sdg.jar --- PK *x×Ò µ¢>XB0MkÁTáyºepÙ%Û©Iÿñ¹/>¨ÑÃþ(ãH>t9·ïoÎýùëÛw 3 Xa?2 Ö¹`} ÃHïa¦GÆèoÝ"1ÃD¿ÀU´QÃ6ÖñÑÁ^c{ ¯gjòÒÒ"®[[¢&¸ëôïæ}$<˸I=2)ï<ndQäÁ],$7¥&ñPK QÏü¬ÉÇ\·þG¤ò5×âVû ;¾îZ¼ýÒìÜsòø0þMÈ·L~ÞäLþO¿mòпcòwM~ÑädÅ7MþÉ߸ùÂâÒú±É?ñò+üSæåãüªPþsaò/Mþ¼iyüZyÍäÿ6ù72¸×Í¿¡ßü{_7ù Áöf¿Å0ù²åO&ÿÙä¿üWßµ3ùÿnò?dí»&¿'?7M¥LeÊa*'+©Ünezé~åµÊµ*Ï«|*¨×bÓk±õInU»UE¦'!g5ÞJÜÊÏäìlëídâMLùÍx*§Û±ÞÌä%:;#I¦Ù+ÉκDO$jFâíºöuéD"ª[5Ñxçz¼Ìc2»±H{o,ÂT7ì¦h<In·GRu+¤Ý87Æ#Ilö.Y¿zÕy«ÏjYvÓç/×õ¦£±ºæDwO8N'dUU{,JÍò9ÈgùÌX¸/Ñ)x×ÄpHg¡ ãuͲ<ëúâé®H:ÚçGãÑôB&£¼¢ÉÑè n°ªìÒ!*o´#0Ø×÷Å#;[¢IWMú±<±ÆÔúDK2¼S¢C?×`)?Upª7 bòÛcT$ÖÚ;è½l è¹ ;r"bŹVeÙ¢ÂÉæ.°ËtæXÁHÌkWS]0t2HUV0N¢d4[ ëÏй3îTþÓ£3kí?¢fÚGvÙüClÅ[îaÿ;Ýl$ïÚTñ>6Ñ\Mô¦lg [öåÀRQXROFés¹úÌ\}Îà =Þ|fM"Ö×7'V ®+jK#ÛÒbFXë9ÖÇF¸5TÇ}ø7$Òa±×L°ËkOÄãÀiñ`&qÙ5 ý áÊÿ£¸6ö|UÃýÄpP2¦³Â2Õx'|ËvÍÿ¬=+3Ê(d»*K66ontÕêÑ/³ùÝá]k ºLâÈßÊÖõ{t¼/ÛØÑEÞl¸M¹Õ2ðf3u¶-¹ËÆÀÜè´:v¸ci°&ÊeØ%,I~3ºX?°äAëéH-Þ;Ò]§E!"`;Чÿ¥ð7ÀÇÆJX¦7³Z%Jd]6À6O»½Õ²óÀ3zcºrì`js¡¶×¥%M¦²©jàDeÕ»X³4ÿ ´èÎþß+rXìp,娿MÚ;ZY xå=óR eÊÌáÐätgç|@ö/S§bí\¬e<"s çÔéï·¦^P¦çd:aØó3Ue)ËG s`_(gL»¥µÃ-õØ`-âª~zãZÈØ°4²=Ú»"í;B#S9¡fÉvIJѮ÷©ê·:Ó§VªU>ÕªVàþÖÅÜò¾d¢3_Ò6ݧÖH$^f(uÙ+Bà© ï¦Bí«CÝp<î §Cí1½=¡D$'Ò¡d$Õ-«Û$DUg1U¼OÊb "Z§ÖCòCC1 ¨G¼6¦+Fà= ÚÔ·:ǧ6ªMnµÙ§ÎUð©-ê<¦U`¥'a¥#«>Põ/0âS[UØÇ>Î÷©m ïìefaNHÒW0,Ivöv£ÁJ o´¿Z¦Â ¨:Û6jÓ® ºÕu²718ÜHuâPÐåSQu>SÙ²]Ñôhh9|W9Øî¼¡P»îÏiÊyÙh½XW)¡&Ú¡ª¡¨P3ØÜ¡t MHðÌiWN*{óBV#±A 1 Ü=s4Iß§â*áS=êJ*Ô4Ót7%4|X^áViêU2Íûä^-P 5=aÚÔ(d©tÕ©¸ÕNÚ¥ú|j·¾re§brîLßnQ¶EÒ;#âV1â ã`ïôëùD½ÞûÑ:ẾZ1G>nä¦GvRöèáZÝK¢ù©¹ÕÅ>uº~4Ìr¬;Ñò¹d¶}PTɪðoOôô ¢H°8N[»õ{гîmÃù¡X"±# h²Cü1ækNHQYã[¢Ãu¶N=åS©=híÇ´¥4L«ÔóUUò¨lvu-£Ö1Ë*¼Ñ÷ç³ÐO'´÷¾Ü§öª³Ä®p«ûÔê*ºZÍûêû}¾i-®ÍY\ŵVìí>þ EÍ©u´´Ú(`Öi£°+8µYÔfý Mnò4æ4æ44;J¾5(¿i¼@UG¨I^KîgijÐ]u %¿LZ/ORÏnôýÁ4îA*>Jã7¢bÿAÄ£ô Rð M<J03¹iVO©>BSÒ à¸Ûd< FC©¿4èÐãû©48!èð¡i ˧ï-åï½ZB3ìÖöW&ó« ½¨©4XªyxfUeÎÆ@v´,3ZÖÙ8Qx\k±u åB p*²RȬɹ¼W5æå¬ªUy¹«*Rtq|µÈ£@^ ?à<HµXÒÙGçlëÆ*[*eçÇk;ñ pS©Wg¢OîÆ7"(I@? päÆ% %(rp¼îx978_t~Yù¥-?ìùydZhîBîýÒQeÜG骢©¢3!³é:BìÃY{èݪgjý¨x@½ó>A¥óCÔ4¯"¿MßáBú.Ð< ^âJúFßçmô#¾^æOÑùNz ¦ñoé8ÿ^å?Ó/ø]ú¥Ê§_«IøF¿Quôª§7Õ¹ôú Ïs6ñBçb^â\ÎKøtçE¼Üy¯pä3/r«óû|¦ó¼Êy×:ßäuÎ÷xËÉg»<Üæjà ®y|+Í\7ðf×í¼Åuouã°ëMnZRîÄßÏéT 9zé¨J¡?Ò¯P ЯMTYçø# ²×è¿)äü¡ MsþÂ&ÕR¦öd×^ìÚ]{²k/@Ví%Ðoè·(÷×ëô;ärý~O¯£Îó¸^£70G>×/éM@ùTèzÞTHÅ®Ò '¨;«èo ¥T}Ë1ÞÁl@½âO4¾dNÿÎ ô. ÉÆ{êô ©ÐÞÀÖËàñ²êEõxD>äsb³¥³ê0vÞ.Is ¼rmÙý¬ hbK¢îº ë ?HgK(ré´ÞeND²sry#¹j`«nrqPz¯ßkÍ;:öÓU~¯UÚ¹9¶Z°Ç*J²E)'Î º*¤àÐ/'=AómRô 2òlöú½Î;hsÐ)ÿî8Bçb!@¡t¶ÜB 2êê_0tF<Lç5äIDöL¶ê`å º%%¦°1l[ë ®ý )MïqÆ<0[çÛfÀêqÀ&õÃAjîD3hD¬ï m/îP-@ ô¾Â@a é´@ØïOÁüû³ §¿ÞI|yøÇÒ|~:Ñ{'Цù]ÄéF~n棰ÇèäÇékü½ÀO"i=Eo"ý¿V÷«Ðس\ÄÇx<'ñsY+F²Ú ¥< Jé±7t èM+×zK¨Á 0e J.>Q¯RÂ' t >s?%Kø¢,á²/áokÂç$«Wð¶ ¥õ¢2cÁäýLªc?ûÈiܽW¾9îD_9ùJlTÓTÀ3:M_Eè*-ë J3XIYþAß´M8|>I E9OÍ<-{ð´ìÁ+Gw°ã}>¯ÄÁgààÖQ¼[ío±ÝvYt¡ë¿eü·¨Ú°ÊñÊr¼r¢ÔëÆFµÆ¹Tnl¡Ï3ÂYo, ¬7.È·À&ÎGsyµURó¬|®^!sn%ú°{s fÓS|ßQºcõÚCôÀzаhûQ¿¼,+Ëè¦b#Aøc\%ˤò,Ys³d͵ÉrQ¯å³4Yëx½E_0,õåýUv5åw<æ]%V¶;¿4V£Úî!E«kr`]Æý$»î|]¸ ´¶Úï6VWUùݶ°¥õBÓ\éÏoÖg¢«Ï±µG×n]½×îïèòîÞj£Æð;ÓÃúÀr|û,´\d\L¦q åB2ߨC'{©Ê¸¾¾¾~%n\Mkk©Í¸¶×ÓÆGèã£ô1À·`î3ÆMtÖÝkܬ%ºÉ(@³ì2/Jstª2é:Û.øSÏÖ³_VÞ÷sw> ¾ ZÞÅtÈÀî»x£3~ºU÷XNØò&ÞlNXøÜj,¬®² ±n±Ùna°|ðæ}äÚkxûÇ Î]uØsêòè"ïgÉé¸Ûè<e¢}ãS¤OSqM0n]}æÈ|xo3î -ÆÙn²k9HxÞåyk¶Üª!¿¥ØÂçj[Ì£³uj}ÊOòíߪ}1 ò0ñý+ÂåàCä|Bã ücQö÷( ù<ÞªG9xLöOMLÞý¡É©ÚÝHòõ£¤£Ç¨°ø±ÃôåÑÑ*øè!zü!*ÿâç(nùpºù¹ýÿúPK Îjh*Ûð°¼T5%µØrqÂÆ¹0 (ªp50#çå³*fU\TqIÊ|NÅe¹^ª~D.W4|*xLª¾*ÇU|QÁ ¾$ÈX©RV@:vÑ5mwÌ̬F w¡Ä½9;çîhììht2Àm)M¥¬Âq3'§uÄIù1³gÙäNæÝ#N!p¦-»ÎYvÚJ¤3'òæ¬SróµìѼ¶ ý·MKj]츳³¦íZ ^.&¸ÎqM:Vè¾FÌ¥<Äh)ÇÎXvÖd®èȾ5;2rÖ1%7OÅÉÃæt¿ôMLðÿ@{Á²3V!gg§ÉÙ¦k1cm5ÄX¼ÍÊHvÖôÂu|Af³Tw4ÉÜQÛ¼ÿZ¬O±ùÔû£Ú+uþ}Ò½Jõ4Õ `W+îêE&·9íØ¶vd³Ì;ÏÔ[°×r}˹%mIÑ¥¼Mï3VzÊt'£Õöe$ª9¥BÚÚ-ÚvkÿõH!Ã]:ú1 p{]H×¶Ü'Ý /º 5ê©¢{===:Gè5_Öñ$Òñ4Øèe8oÚÙÄ1Wî-MLÈ´n9âÊ(¥ºÉ i5ݨL~Tdzø\¾ªã9</½Ø¼Ònt¬8ie|MÇ×ñ¼zhÀVTMÇ7ðM¦qDe/êx ßÒñm|GÁË:^Áw|OÇ«x}=¬àû:~êøætü?J¥^@·RÖS°¢Ó5+¬¤>è± @CÒ³õSRû$õáçry]Á:~7:jYÇ[ø¥\~%°uesBYj¸«îùÌñ¼X°£©³D3]èYÎôÚd×zñg-·Â*Ù®÷à ©øLzÙy «Þ~ Ó¼/õ°þ®¬ è(·YÚXõ©ê:wçÊ{¼«å_Ör¦,·0Øï²eØ¢ímoX3VÁ̲%ûÖ:̺øË.Zîa'o¥Kùu©`¹6Ö(£7][èçà²Ñu´>ý]u8Mf£Ëg$îêüߥ´¦*núbTÒ»f!"Ú¶Î/Cboæ¿,ì¨G@ Ä0ÍN¥ü-½´« u®dJpÔlªÓ4ùM.`ø(¬5æ3Yhú¥Õ0»>ÔvÏ:µIÙ0íªDá5#zÕÄYóËB·Uµ·¬¸ÌIÆPøV«¢+Y|ÎäCªäZ£fÁ¥ÄÃ+uq=±c=ïÛoý_{XóUÛøÖÃ/üý(¿|z½SÏwÞræk×ÝÞ· ç¹boC¼é]¹kÐcöâã\õÊܤ÷IÕ{}áä6qWcÝ¢Ey;H)Ô uD!¿ÇT_¤>=^ħx[êðõþöUîã7Ñx5%F 5PFP$»¥{à[ÊîîejA#p¡SoCk ¡w(eDÊh¦L¬ÛvMel¸ª¹ÿüªn#{ÑÙÝÍk¬ µÓµít*!ÜÇ¿£<À0À/aµ¼½$E7«aWÃ÷ÃÔÒDíǰû²vêæÐú ô8¸Gº¯£å`¬;ÞUFë¢Í^ðÊQVä3#1/ûªùHÕ|Ä3ÐÀÛü6z¦ù¦Nд4VX¸ ËwbcKLª&BU!ߤMTL4ü"DËï«%ÞDËÓT¥»#غ!nêÏã, Êóø @2´ô 5îw õW1h¨á¾ylæpùP~[}ÎwÑjhþqkæ°Á-¯Yü´eñ¹mWÔl{Âe|¤bFó¡Õg DóÃ!³8Çm4T¢%sìi£_ÛnHºÝMïê)!W Ïa°¦:l]×Ut"êgFj¡Á©´Ý¿&sÖvæUáo¡#{`ªcÅÅ.~mù{a%ìwñ8lERík;wìÓ¹ò¥¸.ú±à¢>ôºpÐ[À"áçÿ YZî4þE,fźä}|ó|5³ü±,ØÇI׫lX#~û1ÀqwMdãµäݼµ2uµ!ç[´Áè/wd0ÄqÊÎ -8´*c¶1I;¥]s}>_âßÒi%³L&eO¦lß1ÆkuôpmôPK ,ëª$«ÝA|O$ÜÿTi÷nÜÄ÷¸W¦wq_÷ñ@?âA<ÄDÍË¥Ìpùx8G"x?a0?ÄOøYÚìê¸Ä_Èðx¿Ä¯DÞ2Û"Û2üZÃo5<ÆRü>%øûxZÃ3þ¨Y¶Á,ä¾åF¶ /ÊçÍB[Î(Í¢B guwÜ?ºÃ*t7Y}f¾Îù´Ùάo²-+Wlê M6ß½V p§Ïtùn»GAµ+{M+m³âÔ"<>ÏÚóÊkëV+øÚ¬©PÑÍKû{;ÍÂ*£3Ǫ+mäV ¬¬½MÝ¥Æ1µÉ~»É³g Y´rR¥XÁ{' ¨S@6o .#m-´Þ6+oÔ«Ðú¶ä+ÀJÓn£ÁeFZ¡éo mÅbH×û. kQwD\Q`[gl0úíl®iµ¶Â(ºéÒéÞÖÊ´U °ÁL¶Ø£| ÕÎ7¸ãàbúãÁu3 f«à:[á¨q)çPÏá°, GMMÌt¯a÷x*ÍÉÑù^tR½@ºÇÊ Ý¦½lD¹#²Gî¶ÿÿh 6ª]ÔÅ ñlïWèãbò([ïêß7ÇõmäEë¨çÕ¶~ÛêêruÔÙ/):., ·ÕcàM1£`.ã"573 ËÞÞzGÄø¨êN§EfË ¦o:V¹6ËÞfÙÛ,{¹çÏMnÚ~§4¼ÃÖØh7uVo9í3ÜãV"Â+þBÚ<9+LÕ£"nÈÐñA¡ã}x¿58]ǰVáã*Âû,n´éĶQ°VWrd5ÒñÕq,yX ÞïnZi$cû»º¤WOÙä IÏã^Ôñ^VÏxËåûÌ$=ì19ti£¿h Oz"ŬÝoØY+?KÃ+:þWuüû<«õÔa°¹Ì[³Ûÿ¢ã¯øBóÿÓ:þ(ÌOéxMh'Ê:þ ö¯ëø·ÿ¾7¦·¹tÎ1.i|ÑopxÅM)]áu ÊF>cõ&7xOK®kLzåQèÊvRòè8aV0½£)ËFC[òó¦bðP|)w$NJæM3cf¶LçL£0ÄpdÕË|»$é@÷1¾ÝWTü«p'Õ6Öù¤¹)MéÅd.Ûu"QÇÙø¨®ÊqLæ;-Ò[´`à/µ6&Ósb¡ÝS°ú»{F.çDBÑ #yy4åÓûuPóU ·¶S(d{³_ªXbùQÉ=Ù´{i/%Sy»g(6ÝZF]?¨Bº 3YTDîÑUTS1]U¨ :> uUÉdUU8]S¦¤hªZaÚH·¨(䶸t5Y%èUd¶Tû©ÅdÆ3qBýø³ T!,_Ö¹"¾µ£7[¥EògÌÎ~¾>àfÑÓ8Ðul¹eojmûAN¶åî°ÖH'íÓÐÞCºº@Áɧ kÆ%{¦é,ÉerYÈ̽fï¨;Ò3 iºÇìuW³ßªÕ^ÚÉG2Kçóç= 5uc½£SjGêïË<üËýT=o©þ"[SiGìêQþ(9îA©ï12+f/#a.w;Ôb°¹óZ<Ö¼%KÁ| Ôà_0öÃÿ-ø¡øðPhü0Qór :6ÌpYÓp¯ÛyÛ÷ÈÍ yÞÉþU\1þ.GmâßffÜXEÊJã®¶Ý ¸ÙµcR´¾Å¶ðÄWQ®|³c¢~8ß«øyY2iOMvBÎ/!tI?ÄgÀõ; êÕvÕW£|;üõ2Û¨ßm <øÉÊðaSà8¬)~Ó¶bÇ$,ÀXHîD'ÒüUÈÀô®û%y4þ®Ý Ð|ñ¼ß_ý6UE ×7̬ñ ò'ü±«n@ÔÛ¥üB³dPU9ª d÷VZÄ>^xZ:±K ÜHY©Èp··º11ªÊÏIys4mØnÄå ñèNÌ+ÃÒNÌ·øãQßcñX¢§!s($y]@¿Á6?¥%´Däêë1oøÍ$à4É £B/¤S¡Æ]¶¦uqN@ÛÖºùÍ+¶F9®O ìdw{hþ÷é¦{Yï#÷3H`þ vó¯rÁ|giÚsTîyªþ|ïåK¬¯`¿ØOàû)øáÿæ°×ÆO/Èÿ8KÍ!Õ9NÕÌs=;ñA·8¹ å ~Òâwòû_PK =é]*« ÈYªÕrIHC´IMS ¨x¡NOæÀ[ é¼6§Î9NçÓM7Ýöß}ýu¿ßó¾y¶©¤ûûçÏûÜÏïþ}'¼ðåá' ìÐÇ*8 ¿Ç1E\;ÇNàMVô¤ÃÊÝÓ¸8éi3ÝÅÿjo®s1!3iÇY8[Á9 6Ûhñ\.Z<É;'µrqOebèÛfT¸sóÓ¡ðØBX¤àb&xí .Up·NSà ¼\ÁLìé ¡ài3AûÃDÅÅ·<[Á z\¥ OÁý ®æÕf(Àµ5VòkYPk¹g!7ץʹiÜñ^6bx.-i3þïïbAXátìÆsÒ1=\DíØëÜÀ¦ÇÚØÈEXçòÊó<_ÁÍ ^ à ^ÄÒ¾K¬¸Å"X:ü«zx:cN8Ôõ¢Ë¼½~3Öü¶p$Pîöz|AÈç¯÷u¬«Ã=õm4' ´Sc*Òîôûz;ýÕICQdµ×çï©o§Ï¥uvo4ܵ°úG<®ÓÛîÖÏ2&Ò2KËÒ%s VëìÅÍ'q˲daëâDÿ´`(`ª¬Z`î º2Û!ÿüÞ®UþH»wSÓöy;y#Anëæè`ÏQhYL´Øº¹Æ]Û*Ê<OzÔYÌ-©&ê%#SÛÖz×{7Ö¯÷ûº¼Ñ5õÃ4µ¡ch÷2¿/P³ä:")*O ô5Þ¿&öëGI!BvÂú9~?áYL6M#Á5;d%«Â¡6(]C:'MgÆî Eô®ê£½´91rFjYâØFÍ4®&#óoôÑùz2P ~îF¿;xÆ:ú·AD££ ôÇþ&v (Õ¢èXèDJêR»#Á.o¤O×ø½QCÕ¹>©«ùì"ÞõÁhm#7 vüqÛ(PD¢³$Y$7x;½´=®L²£Ur¾yÅ©Òocs}rB½TmôÇÅèiõ G³)GØçëí¯¡ WðÖÃí*¼ÅÅp;BekIaReULlVÜ¡â5x¯Sñz¼AÅq»;ñ&²T<BÅ]p³»oã-V¼UÅ=x{ñvïÀ;IÑI)¨>¶op-\gÅ»T¼ï!H°TÜwªø¼Òl \RzSáSøðZRdʪù®ûYóuCPÝtOÑPØ:©S¢ÒÊ*à}¬ûU| f_ÀÎ3@*Ñ̬OiJL6õs¼½5Ñ"o¨È³«¢ k((ujN[ÅKÅãK*þ_æÐ}EÒÊÑ ¶/jòy¯°@_emÖòµ&P8tö+ (aÆpÛ;tJÜ2¬j 1ÛJ2X¼ÇäG½¬Øák*¾?OÁ°x¥oà*þßRñm<¬â;TW½«â{ø¾?PñCüÈ¿TñcüDÅ_á¯ø©áo(`'Á f%VD7ÂNvqqÒ~ËG|óApçwæÐYС«ûGXÌFS8O|RÐ`Æ×,K*©°Æïá_øâ&sk¬ZK;¿mC;eê%Ôªcýoª¬j¥[§·o)ò>14iNÖ¥åQ ã*[¿fTµÂJÃçÑ¡#Á ¾¹ô;;ãR Gº¼òÖ©?R¤læ×ü5ÏÒCÙß»+ÒÞÛÝé×á¦à®ÙbM=½«øyA» º§qsgòÒuç]"iÏ:ÏË<Ø¢áf â÷÷h4òkÿFú×§¹½þg©lCnê¢hâF¡¡q+/ÙBc*fغ©ZZb¤oÏ|Ì÷oÔû¢G7'ù÷ME+ýQc³ìµ@:ÿ±hëÓÐ3 ß;âéèÐ= «\Pó`ÚféhCÆð'Ѥ¹zLw¸»·ÓKnîì°ö"³×Wßacnn~(ØÙÚ[ëT¹OùM¶6bÙwMÝá üôvN$ª¥ÎNoݤníuX*[OÆþø 2{EåÃSÜ{`J_¸G÷æ¡ôê þ«?eî!Kêo`d*UÉ߯r÷k¼=ìë2ĨÍ!Ùuý!Lù9¨Ë J Gêø¼ø êK{¬É]okÍTBåLÈSa´ÁÔ£j{À¸MþN÷(}ÿßÅ }Ϫ Î)°/>8:l?, aÔ¹ÐçA°NIÛA\B£[¨v)lËÈ=¶Þ·n·ÃCäTÉ''ú+}ÿM®ó\;Ñ7aìÆ2¸«a3·bQÏ6³N~fÀ¤÷d[yöÊ «z¦>9ÆÇðÕT¶mQíQxmjl=TÚíÍLRýp,*Î;DóÒ Çhï&[ªÅ,i 4¡h¾dÐB4¡øý|,4v|<æ|§iN©¹ºý¤²ôWµ¢î T{lns?Ô$ª´TÊuý0IÓ!yA½[Î=¦ºö LöØÝvS'Ým77xÔ#аÂ> Z®*(ãØÝÝ%ýж¥6}.QCó´pb!eb?̧öp=.1C£M⬠¬íÂÔmadxÊ¥*QËç,ÞºNÚȵ¹ ]yì7 L ±X9ÐL.}?ùØKþï¢ÐHÞ"ù}3yò©äÈO#o n ½ ¨ó}JØOQ~<õYùCx ?Âóäã?Á|x'À+x¼mðs\ ±ØT¥¦j,75` iVrl$FqzrÕÅ´ÚáXXÓH;¡ÜTLÒãÈYÎQ*%©¦g`ªéjz¦©¦e`i*Ùæ~¹¦É$Y2\²¸ÀÓ$a;,")¤Øxø~@5â]ú½§7Hö÷Rì¾X< ?¢Z&ìû)#ì,¸]Ü /P-úÅÕð"Õòð)¼Dç(_ÔÁ©/¤R/QÍÇLø ÕÆaþ^¦Úxødø)Õ qþ^!ÎIuð*íRBz¨9£T´Áßágdeb)ü^ÃD±x.ÄWI¥¹.aÓ!°ÝeµðJQÕ^k Û£R\qÄ*Ôá¡"£{ÛiI;v,äs¹Z¸*jÜÙnæÿÙZýßáÎq;ØésÉé_KtÅ¥phhÙp/=ÔÄ!3mcse¸ìº3Æ Míð&ühÙL`M$@Ì&i"çß2Rþ«´k%¹F»4å$<Ã2¬1cQ\J¬8g¸,ô kuRõMöa¨à¬d¨ÀΦe¦eXSY«$£)ÛV®fÈb4©}$6hlÊfPhÊuåjVkî »u&Rõ-âÙ#Åø³y4w¤Ñ<ê¬\üÑ46Á%q4Pà8`n,qÄÑ·K2S¦sÕÏéÜáÉw¹â§hh D¢FIκ|l"IÜ+à°ÎU £JÜùÆ~VéâùyÖ¹ó=Ê诳, Ae(3ÐÀÄX,(75V8+âh¢ÁDw© &jU¥îrw)G ÚéUÓYBÉvjW±zRW^â¨/ò¿ t$òD°ÁP Â2ê»®"Ó¥èàiéøÁ ~d:ß75á¦ÙøKÓüØ }âm °]¼(!@¥û#dÂ]âA ²àØ-!@6<#® ^Èhí$ynÔ9j%¸°I`,.f Ho_H0¤].cyéñ7ôKd¤/%JP&ð ïE7] 9¾Þwõ÷ $ ~¨2X{PS{ hìg¨m1Ø"ÈÅÞ30RåàèÆùGB"&ý*ðo2ÍѦЫß;ª×*ýÆð¼¯ñ ÍN£ï gnj4;Í1RZkæ-rÌâ´ÔêÏ µN| "W3i:ÑùNiü ½:{`:[E XJò¾R äøPgù ÎòTËã°fñ,Y«ÑßFÊk5Jókê (à ó^H¯uëCÃ×k4*'1,¢QL¸ EÔ<FTÀ±Ô×$ª & a¬|0$ß,LÁÄTé"xI\yÿ±ðdádH?¢ø« CѾLiÎ4·å;`rÛâLku¬·Yov r¬ºxkK1ôR\I%üÄ'U@º÷ñNÉâD"fN d1ÇxiË$Y ,ÌÉʦ®}B\díWT3ûzà×Ä f~ .¡H®Æ×HCk4W¢É.§ykø× ,.˱¼¥XD_cÅIØ)Ðñ9ã'Àñú3NøèXZÿ¤9üºù¹NÄÇ4C¥ïJKN%FD+MCZUC@Rû(tÓ¿s8Û]ö<øì\öCu)ëø¦ïAèÑX¡ðÄ& ¿qø?Çè=$ôl (jÈÁ×k°å5a6eº\ëCùHiu[õèôÕGµnë!ØäQø _ mùù\Êǵýp6Ë^°Î¿ Æ;mf±ù6È¢»¾ºìýê*·r.ô¤×riצâ¯Rp'Ó¡O;õàõLÈH<ÿâØ½$ç½VmláÑô¤÷Ky(c¤ ñhfâ(ct¦¶oe<tL5?ƺÓÝ.BÙ[Itf«kÜÖñܵmß·Äp-émb3EÈ @\â"²Kaª¸¢ãVðm°M\;Äp£¸ö«`?]jÄxV\kÑ*®ÃâzCþùâF\*v¢@§Ø ëÅnì··¢J\ÿCe%´3]lÆãàdG6¸<âO6ì°,óv:ݼjàÏTãÿgõø¼~?KÑ÷¯2ï§ù7 ɦ[Ö&ãÁtS,0Píï°SÞ²6Iû5þ:þÿ$«ÍÁ5ð/ø7Ñð¿ð¥îõ2Ñõ_Ü Ò¸SìMø Ãbüñ)O§Ùì,iÕ5Aq\èvîwS¿Gî0Fe8\üA¦?" !æ¡ìOFÐóPB$BþEÉÓ,Æï>uò t*Ô©Hu*P¥ò2EZSåQâV¦ét +WêtN«t:V§ã<t¼N@ÈEÍ(¤H´¹4Òfc A3Ü`64®.G"¡Xi Ï òËtáUsçUU³ôø¥s.®©\:÷øùµU5s õ $Xi.5[ÛB¸9?nQ¤·FBfC{ÈD(èue07£M3VZ½ÐËë\±XQ¼Ï5Kë:3ÎK¼õpcn· `BNS0ÏæÞefC<Âà×XXWºÆlh Ä[Jþ²FYe@C´ONÙD.q&ʲ@<ÒÖ²Jg"/ËÝêÖÇâfk!W¡UÚlxÊàÆ`¬!ó»Ù¸ÐÅͦ357ÖÅ O0'Åáø²@¨'åÄ»ËÁh á𸡢!Å&0Æ0ÀO°0ÀðÛâíQ³*hZ7Ãf4 9( 9±È¬[·ñ`ëÜ`8 åO^ÆÒi¼ja³¶½µÞ. Ô9@hY w»Óo 2å{ãf¸1"Åùék`3ã5-éÇê²yÑþÝøa*#ñºö¶¶H 7w]ÙFÂ6ñÿjæÛ»Aæ2Å¢Ee_;1Æø¨nuå+\rSX asmb³¢,©ÛÙá¼Ñ¤¡ÑÊx<ÐÐ"+¡9È<Æ!C´« (^®;oïÛk+#Ý·¯é¡÷V¤çl<8a»R¹õlFwq2²ùÜ!ò×åÁx£R ¢jÍ`s}Dô5? ïh{ÙOÛçì¹ìJãÑH8FW½ÄX/¡CðJ cIMHIÙjí¼D Ù·ÔÒ>vÿE×&ig 3ò4×-Q2½%Bé;§nå~YÔèê{bý#ñçD+v1¸6M&¥mð.j²¶iÈïrþTÔëQ.O4áîs£f¬Ë|X|DvÄ9 wé<qvRRïʯ®eX+ÂÄüÙðä^2SZÇ^k\ê Yc )OÆ+GI&lé ùã!÷«TÊe J¶ÒöÎÛ6ö ¡õþ@"½ì2áÕ)ÆÊ\[9jªDåA¥^êAwÒ]£Uäòó¦Ïß 3"!·ýº½##TÁ±êF£Îèiúãÿ¢)ºÇ {é>®XÔ*S+o¤Îkohá>汬mWû¯ Bþz&×÷$)) BÁæ°ìVÖùë1¶Ñ}Ý/èAÎVZè·K´$¬*mZïQYÀÒN°I±ÛÀÃÐc`µ<VÓ'½Elý¡@g«ÐñÛi:ÚI»Ø8ûw+¨ êÿÿíæN.iÐÃô+°Ù GèQöÐc=NOô$6è)zÚ g¤õ¬<~MÏ¥Xa21Ä;7ÜØK<O0p®4ð8~ÐóôÅÅÅ1*ù´Ðâ=ÏàÒ"=`+N8RÂæúýÖ ßÑï9çí¥GÏKM¾A[Xæ3lcc5Æõ<V7sÁÖ"@W8ô"½dÐèeñU¯ô*½ÂV zH>¢ô1}bп8¥¢Oé3>QÚ½^Ô¤²¸xVW][bùÚüÉ}AÌ̯ðg3û·ÖhböÇâÍ*ØÅHÖîÚå§Ðn ¥¼XÕ¿¦o=êºxì(òRT"rý¾å v'§ùÕiyì38Y ½ìì´såÔCèÄѧàæáóBÆÞ_îYÊÒ;nì:ErÑU³ özÿt_¨ø_¥?¦ö[èìºp9¦ß¸÷ç~F·EMNûê$Õo[±©¶aÔÅúP^FÍÖÈS Uç$*ª 4Oºú²f3ÒjrPz¸Ý£9ÑoN>®ªäMùþëJó@9¿D½+ã®iý cÉMLØ:áÜëaYrM=].Ϊ÷2ªÇ# Ñ÷Ê¢h ¥´VÆ`ÌÏÿ¯FÛ¾"Y_ìË9T]e¨Ñ8g û§Eº\Iq¹nQS=ÑhKº]í×UóJáêʽq«èF)r Ó ]yó´Ùds&·A¸Î±0]8ê.ÙGõÇl"±lçÐÍ>ÙSîÞ>mÚÇöoLÉÁ*ãÂûê^+¦n2ói¨ ÚëcX;¯¥å×XUõÿ.a(³¸ºgÖ¶]*Ðïm{µ®>°¬ºø¶0 gæñÈ@c0YççìH´Ü]Æ{ËÏÔ¨ÂÝ&hAM²¯å²£VõjײÿCøI_×¶û>'o mí!IKí%»º¬FX®\=ÌuÖ%ñýQõ4/}¼QÀd[ìÞÆ$ÙK#ýéífO2(+uq1ö@Ãíû ën<©"@X{wßWC.«²6Eßÿ¤ÏiÇ .ÿ'ýNì½WµwÏ;ªn.ëã` ðlº4}J¢jµ©göêªÃe[wÝâê%¬òQn&¬FÃNM¯ß+Ñ÷÷ÿë~M¥õiY?2¼jùJ&[Y0ÑÜ9õ¦Ç)YGn#£ Ö·ÇM»Vzc4üDºü?dRÅ:õ/¿oíQ[-mgk×VZ¬½aPÒàÔ}¾r/>ë¾PJÕÜ¢ÞʾD\Çÿ×ÛEõ9ª¥`à/ÅÒ§¦ùíH2B*C¡êð¢°jåOS÷Ôö§µx"Mõ¶&å¬Yêë&Iº¥:â§ÊPDGæWí ãêÑü¿ïP8e:¢îNLm}_´(]§öwHwIûó~ø`É/XvhÝ.ÊÒ-üm$3Ãh«º/Õí=´|Qi·DÖÖ'Di8vëëæ±Þ`¢?ÿJØþÀ BþNBnÊÕ_Lü>U¿Áçê÷øRý~_«ßoÀúëoá;õû=üå[@øÛÃä³/øGo6øÅÖáVzø©óÛmàæ p-ȶKÓWàÚ#î0L& .8&Àr(P+¡y° jàX9AÊLÃB³ÐPdà ×Á°Iqtd0a81ßÀá÷·;\ÞC¥ÇÊIÉÍ8Æ<>[Ƴ|2 FvÓ"¯ê½ ¥rk3øJåE#p¤ «TÞù×Íq·*CuÞ¤lnGÙFáèvS+NFä¡>DÆàXÖlïð< YÉF¥"÷øzr9£ë~ܯ.ëÂÈâÒ{½ri{Rg0HËfC²";g'Lí²T>e÷Y¤lç6û'¶9Á%Ü'°ÏZFÃög5¦½tÂ.Üçö¹ÙS}®<wY'Èoy´ |Åv×ÁªeÙØF7ÛÐÅl p ½À§wÀq;àxî9¾N`7ëþyÝ þõø¨W£» VÉ/C95îS(÷&cÖd1yh4[kåYyYöÈf81yMP¨Éé'Ú«åÍÙ)uÉóÞ #zô{ó²Ê37f±Þ_¼ÍjÙ&33!o×P¡iÝ akQnò·s: ²|lUsÚr<ÉjØ+ÊOÚ.ÆÛùôNw'ÎÈmçOgå[ª|^Í¥"ãX»ÖâV«6Ø{ùtqIÃÝ»àgò8] ß)jÚ©<m#¡j&KvÂéüÿ.4ÏÜôã;£]ºåÇyø¬Ý°>[º-}8çhÇC°ÝWòÓÇoc ½úáPÇÉÌx8'B=ÛójÌg¯P§bÂÅXáL¸ åtìÄJسá¯bûÍyìG7VsX#qNÀÅ8`.Ç <çâ*îiàÖj<CØx5ñVn½'á'#Ä8¹1LY¸öÇuTh þÁÓ(gÐÜH§át^HWãE´/¦Gðz/¥÷ðjú¯¡/ñZ-¯ÓFâMÚ¼Y·k xVwkGà½Z-Þ§pòtÀÀë8åT ±>Ù³ë_r_&ã¦ányéjöS:}Spòoì¹¾Q«·}#i'à¼à<zäÑKXΡßÅÃõx÷¥zĽƪCRb>ðW{U$ÍÙâ)°¿,ÚçVd(m:OÙ·G×ãËèóeÑH_F§. x.Ü[ s£mòmdw\϶îÌÙîkÅÀ| Þ^¢²L~/.Þú\Vïeàr 8&mrZäãþ kÞNÇU©WÛóÜEÊkÜ®(ÏÝ ×:×2mE;áºM?Þ¨hÜÄ4vq®cào8÷yrð%ÈÅ?À~ø Ëò5ÆíCð-¨Â·a¾Çì}³ðcú§p9~ñx¿'ñkx¿ð[x¿wñ?ð!þ¾Àè¹YçËXòM0§³^H¢ù¥G¿´uEúfp5EYÃ8SÅÛøg±epqð®Á¢%4D#~÷TµliµXá 7Vd` g#¢V®³¸~aÑÓx0ãçµòü rEpC å~âRo´£-s÷&ÖÕº9ºÄzç7«¢!»"S Wx¸B·ò®[ÑãsÙMؤoMÙî¶½lWäsù\¬AÅØokð¹]Ê¡v©t¶VdHoóÊìótÀÉÜÙ×&[¸@¬îJ`w×Îß¶rK9fßSá*ÏÌË´Û>;/ÓrîvÙÉfòòè¬ß¶ß«\JT~æé~hÙå¨X&%Ð\8KͶ> Ûi ¼ASác*C¦a.>:gQ9VÒÁxuT4O¦ÃØÇÎÂ+h6ÞLUx+ÍÃ-4ï¤#ðªÁGi¡Òø6®Îb_YÉ=&SþTbÍ[ã Q>µV±>sdâN¬â½ñvel9x?Îca+À{ñpny`8nÅùìEuÇÏÁ«§Úz¶¼¼Yç½,O¬I5¬Ðõv'Ü×C·UdsÇý¾Ì§ñÅ_æNx`¡/%û AÑíãËt©vÍQw«¿ÆÒ» w¡úU{nOQñ¬}ÅÐÑ3}Ù)ùÛò¹·Ã®bþß,Nnu6ïñJ"7-x7kwv'<¬ý¿âmuîóìG:áQÖTTëóXYO/»öøtå=v¶cM³³QϰP·Î=.¹zÅù ÊèÂ9ñõ¹ÒÜì¦ µ!vY,&ãËQëâÛ2sT/g<ýé>yõçTïÙÜ_KËÖsªo¸Á)ë³6:zñx^õ5ì U¦vüm·@ðW@ËØ´C h×J6¯cؼV±y#é8Cdz5ÂD2¡¸Hk*:SVP+¬¢t´RâS(×R;<@kàyZ¯Ò:xÖçt*|Gg²É Ãh#úȩ́sq èl¢8½¹ÓKp]é2¼®À'èJü®"]KY´ÐõÊä.á!G°aäÀópPñâpÖpË3°/¼lÃØ\ÎÖ ÆC¢-fãË% äiN׳ñ Çÿb·2`$~K9@y¸¸ýô渳á{2A6sv®´kõgĸùw«×ïl}U2¿ÿ+c´âb®ó¹êåþÕP9Þ$ËÈ*àñ»~¨«âß_ü ±ÒVFwÀº&ÐÝ0 îétÌá÷jzÀ9ò EÊI»À¿BfÓ¡Êɹä®b©x,ºxÇã~:¢6í¨=LÔcLÔãLÔLÔSLÔÓLÔ³LÔLÔóý ªj/D'ØDI/ÉéX£Í´«%¾µI{T'¼"*<ºÓ½BË&(Y¨%½³ØìñmÝúe+e5¾k-?](áPô*À×`½£èMO|zæÓ_ØîÞ6ú Va õ±Æ"ýU©6ktð¤¢Ñe©ÔNL¡6Ï~wÙãîÂTº'¦Ðg¿'ب1.Mâ:¦¯_³>|Cè[öHß1õ?ÀÂÍ 'sÿîPÍYI®*4ÍgÚ4°NiñMØl°±BsVË)ákÉþöuöÜ÷ãZ¬(òfò¤?¦Nr_º?ÙA÷TS=·U1»ìZ9«Xoõ ËÍHý¹'D°ÛÚb6η m<QÛ©InÕê|¼xÒ!l? =©60^Å»ùÚX¨Óü°JÛ%4.ÔÆÃUÚ¸Q[µýá·Ú$xYË·´Éð6¾Ð¦ÂwZz´i8D+Ça§cÚ8N;HIw>{ÞU°KY¶êà1lÍå»n¹mÀ-KâÒ rd³?·±5ÿr*º2=ÉîÕm÷9¿±g ·°û±²ÙºÂéZ%³b6Òª`6&jÃü^Á·áWYîætGI±ÉßÊØè]ϳ½ù\¡ªô6ÃÌÂQ*/QNHÖ¿°Fó¨wº¯îV¨>êê:U!*¯5¡0VkYZÆïó´ÕÄU`ÏùsÏ0Fl<ïçÙâç ¸¦N`ºPݨp¶õ®/»÷X]]]W%ï)ðT;ÇI©®av® lNi}Ú&åd(çßÜ7[;M¡z üئn1\0KB'ôÒP©JJÑ0j£}y°$Åõôê¶·Nñ^=½ºíý¼ÙPuHrøµ!_»Ez,Ö®J:÷_â`»ÄñÑ1'á(,.ÂZÅËBu9¶PNRå0¯¶¹û¾ò¥ÅÛCÿ´»¥73/73/o áÚm0NÛø½@»Óá£&:·AE>EêU_»Ê8Ä5ÌQ±¦µ kÂb[ nQqäøgÀu¿6Â9¯Ý«¥í¨EMaB &«ð_Ys®àè1k±E{B m=JÔ]ztI2¼¿%Lâï¨{íAfÍvÈÔ:À«íb«èÚn¬=Ó´G`¹ö(¬Ôö@ö8¬åßSxü,íiج=ã°îXVÁuuÙÐî¡[û¾Y)¡kq½²*Ä ø3çþʲôI; 'åK{ÜÚK½ß_©ûäJðd<Å>9«µïrvn«Ù Ú Ö.<Ü*!Êe)u»7:ÒÁç©xêÍÅÓá«uãÛÆåéA(d1 X¿©8ëÿPK ö0åaÌ/ÉÃ#ryÔǪ±WÍÆãr÷eOÅW$¯ÊÝ×|½Oâ,Ç>¹û¦\òã[æÛûw|WÁ÷<-àKzF`A§iݰb ÝéXüümI+ÒI1ØËÃRÊLê±lRh)aØzf@éV¤£+K<eYdÔ4%ÎZòêÑm¢úM#Þ©öX)Peë©tR³uK ¾ó<m£ÉÚdd³Í1|'%½\`IxJ>íCzjMÿyD]M$ãzfiÓ:ÙnÆ©ZmgÂл³©~=Ó«õKeë;Í\§eò¿ôØC ʲhRfImµ#½yOÓxRR*ý9ÇÿR Ô$M-Þ;nZËÎdcv6£¯Õ5îÓ5#í]9éDe^2¬N8^t'2lÌÙô:tÖî±3ºæÏäùZXÐ3z¼ÈÕo)$5c0²jsLOÛ Ó2%i÷¢sgRgDðZÇ»Á×2µÑ';#£§Ìú8uÓ!0Hüë ¦Zì8Ȩm¶j7 [£ê ´ØbZyÆO hKÁ3jJK¸~ZVXO¹-[ ®$:y#ýGâi=N0úÉFx/°prV23iæA*YVdm&-¯Fµ¨ÿ1é_@ Æuº]аÝÌÕn¢=kJÚx»8Ü1µ_ÊëOVBô,Ý^QRa<á2P=f6ÓW;É1«,{[¥ÍTôàYkp¦waÀü§D{NEN§åÅKÅ9èUñ}<¯à?Àk¶)Ö¼ñ]«ô Uü/ Ì<Ù¤iîMÊò²\^Qñ*^Sñc¼^ Tu9¬0e¨ø ~ªâgin-ll3$K@¨ .d¢©ø7ÞTñS sz3[òÆc ´P¡Ã¶¶¶ªBN¸[`ÞjfCïV¶0£¥$xZb!+qR^Uø¤@Mç«*ª!ü¢Jle}ÚÙ¨ÇR=9Ó¤ã¨V *j8b*jåR'f ÕSè@¡¸©[ *ÚFõ4hñÐ2´eª¼¿rËqn®s_/x>Ò¾ò0`µahwÓqúU¨=©Y,¾ á¦ç¦¶ì§Òiæór"bîiiÞòÈDÖêSÚ¬\.ÓÅá²é ÝùÐð¤R©ñ§|£·^[È~ ON{uüÅíÝÃ`ûXtp©&Ym3wCq½?ËïI¬?¹?öÅIÂÐ7*vê6R2y¤ÖOg¬`(f¢³ÒP¡|åcâïJ)ÍH¤³Ì3)¨Ö5~GS¶d²ÃXcè%yxveJ;~onÏ*àu i i«zJó 4w 6H¾u¢¬üløßR®»GpþÂÑs2Éù¦QÎ7b^ :UY?ËHlÔ3ì¿ìÕ-[ªHX [mºzM×,µ¹¹{Õ¸^êµÎ¤'ßÈrÕp4¬.9q¦ÿßòMgxÃî| ÊJr³ðqísØUdÚ ,̧Kè}®!®ù<ÞK&4k>,|'ÇþV ÕIMVàpÇz§øK¡øÛ³IËSq ò?/m<K_UI«P©ùã8Q%N*®r¢N:õ|*ãrȽįß>|¦¢Å .Ñ-¢÷o£WrFë(wÜGöâØ¨'ô8ðÝZöà¸í¨-À,zvmóo=.vÅkeô£6¬Å%¨Ç¥LËÁX+± W1®f¤^Jñ¯uTXNáéZbéË+SÃÕ¤]¤y:ý¦5ëpÞ{`ÒC(YlÌ)-öñ.ÀýNÀÏp/sTQ¯úÜKF¥¨ø>G)%§x÷Bjúöí¸©Ô\¹}³ß¢þÒð[¸úGñÏïÌE {IUcUþrÖýU£8ÑEÏGiY6KGqQo<,Ë|Aï÷ÉL8Y`§¢Í ×M'¬pc[í}·gÙNÔ;jµS éªm _{OÑçâ®71 n¦Ovз°*ÜÜÆ ¹óq#øNDq7½p#}£÷\ñîÅn<AÊOñþiªü,Fñ<æOÚÛùôÇs´ðôÖ&z®7ÂffA<ãxSVýEoîÏ{³¯ë³¯á¼sS²ýaú¬/âB|0/à£ÜùððEü\,v 4ïÆqÝ}Îýj&/ À6|,J>ËT?Çñýê]e4-I2µ¨JK÷ç9jË© Ìq_óîò} ú¼ZBËW¤åsÚ¤usé Index: cdk-builder3d.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-builder3d.jar,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -r1.50 -r1.51 Binary files /tmp/cvsNcY6sI and /tmp/cvsSZ6YL5 differ Index: cdk-charges.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-charges.jar,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 Binary files /tmp/cvszAbG8X and /tmp/cvsXvjqHl differ Index: cdk-core.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-core.jar,v retrieving revision 1.122 retrieving revision 1.123 diff -C2 -r1.122 -r1.123 Binary files /tmp/cvsYdrdVf and /tmp/cvsMrFKQH differ Index: cdk-data.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-data.jar,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -r1.46 -r1.47 Binary files /tmp/cvsfxNv8r and /tmp/cvsxdTsmU differ Index: cdk-extra.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-extra.jar,v retrieving revision 1.160 retrieving revision 1.161 diff -C2 -r1.160 -r1.161 Binary files /tmp/cvsaYbGXJ and /tmp/cvs010YYc differ Index: cdk-forcefield.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-forcefield.jar,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 Binary files /tmp/cvsIN2xG6 and /tmp/cvsb9xhfA differ Index: cdk-interfaces.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-interfaces.jar,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 Binary files /tmp/cvsTOgIwn and /tmp/cvsLDVZvR differ Index: cdk-io.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-io.jar,v retrieving revision 1.112 retrieving revision 1.113 diff -C2 -r1.112 -r1.113 Binary files /tmp/cvsqMk3Sr and /tmp/cvslSTV1V differ Index: cdk-libio-cml.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-libio-cml.jar,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 Binary files /tmp/cvscWTg3E and /tmp/cvsNpuJr9 differ Index: cdk-pdb-cml.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-pdb-cml.jar,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 Binary files /tmp/cvsLsgm2F and /tmp/cvsumiewa differ Index: cdk-pdb.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-pdb.jar,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 Binary files /tmp/cvsuuEILJ and /tmp/cvshrR2he differ Index: cdk-qsar-cml.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-qsar-cml.jar,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -r1.38 -r1.39 Binary files /tmp/cvsSFUuBL and /tmp/cvsNgfDeg differ Index: cdk-qsar.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-qsar.jar,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -r1.53 -r1.54 Binary files /tmp/cvsfchUXK and /tmp/cvs9fKsNf differ Index: cdk-render.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-render.jar,v retrieving revision 1.93 retrieving revision 1.94 diff -C2 -r1.93 -r1.94 Binary files /tmp/cvsAkJvnQ and /tmp/cvsdjXKkl differ Index: cdk-smiles.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-smiles.jar,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 Binary files /tmp/cvswXFXnV and /tmp/cvsB5OLtq differ Index: cdk-standard.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-standard.jar,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -r1.107 -r1.108 Binary files /tmp/cvsLRSxjX and /tmp/cvsHcT4ss differ Index: cdk-valencycheck.jar =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/lib/cdk-valencycheck.jar,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 Binary files /tmp/cvsdtYcf1 and /tmp/cvsl5Fhyw differ |
|
From: Stefan K. <sh...@us...> - 2006-08-28 14:34:09
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32127/src/java/org/openscience/nmrshiftdb Modified Files: AdminPanel.java NmrshiftdbServlet.java PredictionTool.java Log Message: updated cdk Index: AdminPanel.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/AdminPanel.java,v retrieving revision 1.230 retrieving revision 1.231 diff -C2 -r1.230 -r1.231 *** AdminPanel.java 4 Jul 2006 13:38:54 -0000 1.230 --- AdminPanel.java 28 Aug 2006 14:33:58 -0000 1.231 *************** *** 78,82 **** import org.openscience.nmrshiftdb.om.DBCoordinateSet3d; import org.openscience.nmrshiftdb.om.DBIsotopePeer; - import org.openscience.nmrshiftdb.om.DBLiterature; import org.openscience.nmrshiftdb.om.DBMolecule; import org.openscience.nmrshiftdb.om.DBMoleculeHyperlink; --- 78,81 ---- *************** *** 88,92 **** import org.openscience.nmrshiftdb.om.DBSignalPeer; import org.openscience.nmrshiftdb.om.DBSpectrum; - import org.openscience.nmrshiftdb.om.DBSpectrumDBLiterature; import org.openscience.nmrshiftdb.om.DBSpectrumPeer; import org.openscience.nmrshiftdb.om.DBSpectrumType; --- 87,90 ---- *************** *** 730,734 **** for(int l=0;l<signals.size();l++){ if(((ValueTriple)signals.get(l)).value1==value){ ! ((ValueTriple)signals.get(l)).atoms.add(subData.getMolWithH().getAtomAt(atom-1)); added=true; } --- 728,732 ---- for(int l=0;l<signals.size();l++){ if(((ValueTriple)signals.get(l)).value1==value){ ! ((ValueTriple)signals.get(l)).atoms.add(subData.getMolWithH().getAtom(atom-1)); added=true; } *************** *** 736,740 **** if(!added){ signals.add(new ValueTriple(value)); ! ((ValueTriple)signals.get(signals.size()-1)).atoms.add(subData.getMolWithH().getAtomAt(atom-1)); } } --- 734,738 ---- if(!added){ signals.add(new ValueTriple(value)); ! ((ValueTriple)signals.get(signals.size()-1)).atoms.add(subData.getMolWithH().getAtom(atom-1)); } } *************** *** 867,871 **** for(int l=0;l<signals.size();l++){ if(((ValueTriple)signals.get(l)).value1==value){ ! ((ValueTriple)signals.get(l)).atoms.add(subData.getMolWithH().getAtomAt(atom-1)); added=true; break; --- 865,869 ---- for(int l=0;l<signals.size();l++){ if(((ValueTriple)signals.get(l)).value1==value){ ! ((ValueTriple)signals.get(l)).atoms.add(subData.getMolWithH().getAtom(atom-1)); added=true; break; *************** *** 874,878 **** if(!added){ signals.add(new ValueTriple(value)); ! ((ValueTriple)signals.get(signals.size()-1)).atoms.add(subData.getMolWithH().getAtomAt(atom-1)); } }else{ --- 872,876 ---- if(!added){ signals.add(new ValueTriple(value)); ! ((ValueTriple)signals.get(signals.size()-1)).atoms.add(subData.getMolWithH().getAtom(atom-1)); } }else{ *************** *** 887,891 **** Vector signals=subData.getSignalstable(); boolean added=false; ! List connatoms=subData.getMolWithH().getConnectedAtomsVector(subData.getMolWithH().getAtomAt(atom-1));//H for(int l=0;l<signals.size();l++){ if(((ValueTriple)signals.get(l)).value1==value){ --- 885,889 ---- Vector signals=subData.getSignalstable(); boolean added=false; ! List connatoms=subData.getMolWithH().getConnectedAtomsVector(subData.getMolWithH().getAtom(atom-1));//H for(int l=0;l<signals.size();l++){ if(((ValueTriple)signals.get(l)).value1==value){ *************** *** 1125,1133 **** } if (bondorder == 4) { ! IBond bond = new org.openscience.cdk.Bond(atom, mol.getAtomAt(atomnumber), 1); bond.setFlag(CDKConstants.ISAROMATIC,true); mol.addBond(bond); atom.setFlag(CDKConstants.ISAROMATIC,true); ! mol.getAtomAt(atomnumber).setFlag(CDKConstants.ISAROMATIC,true); } } --- 1123,1131 ---- } if (bondorder == 4) { ! IBond bond = new org.openscience.cdk.Bond(atom, mol.getAtom(atomnumber), 1); bond.setFlag(CDKConstants.ISAROMATIC,true); mol.addBond(bond); atom.setFlag(CDKConstants.ISAROMATIC,true); ! mol.getAtom(atomnumber).setFlag(CDKConstants.ISAROMATIC,true); } } *************** *** 1238,1242 **** String x = st.nextToken(); if (!x.equals("0")) { ! ((ValueTriple) subdata.getSignalstable().get(counter3)).atoms.add(subdata.getMolWithH().getAtomAt(Integer.parseInt(x) - 1)); } counter3++; --- 1236,1240 ---- String x = st.nextToken(); if (!x.equals("0")) { ! ((ValueTriple) subdata.getSignalstable().get(counter3)).atoms.add(subdata.getMolWithH().getAtom(Integer.parseInt(x) - 1)); } counter3++; *************** *** 1470,1474 **** int corinanumber=((RMap) list.get(k)).getId1(); int atomid=dbmol.getAtomsAsArrayInMdlOrder()[numbernmrshiftdb].getAtomId().getBigDecimal().intValue(); ! DBCoordinateSet3d coords3d=new DBCoordinateSet3d(molWithHfromCorina.getAtomAt(corinanumber).getX3d(),molWithHfromCorina.getAtomAt(corinanumber).getY3d(),molWithHfromCorina.getAtomAt(corinanumber).getZ3d(),2); coords3d.setAtomId(new NumberKey(atomid)); try{ --- 1468,1472 ---- int corinanumber=((RMap) list.get(k)).getId1(); int atomid=dbmol.getAtomsAsArrayInMdlOrder()[numbernmrshiftdb].getAtomId().getBigDecimal().intValue(); ! DBCoordinateSet3d coords3d=new DBCoordinateSet3d(molWithHfromCorina.getAtom(corinanumber).getPoint3d().x,molWithHfromCorina.getAtom(corinanumber).getPoint3d().y,molWithHfromCorina.getAtom(corinanumber).getPoint3d().z,2); coords3d.setAtomId(new NumberKey(atomid)); try{ *************** *** 1555,1559 **** try{ String nmrshiftdbnr=(String)mol.getProperty(CDKConstants.TITLE); ! System.err.println(nmrshiftdbnr+" "+mol.getAtomAt(0).getPoint2d()+" "+mol.getAtomAt(0).getPoint3d()); MFAnalyser mfa=new MFAnalyser(mol); Vector elements=mfa.getElements(); --- 1553,1557 ---- try{ String nmrshiftdbnr=(String)mol.getProperty(CDKConstants.TITLE); ! System.err.println(nmrshiftdbnr+" "+mol.getAtom(0).getPoint2d()+" "+mol.getAtom(0).getPoint3d()); MFAnalyser mfa=new MFAnalyser(mol); Vector elements=mfa.getElements(); *************** *** 1583,1590 **** subData.setComment(files[i].getName()+"; "+mol.getProperty("Comment")); for(int l=0;l<mol.getAtomCount();l++){ ! if(mol.getAtomAt(l).getSymbol().equals(element)){ ! IAtom atom=mol.getAtomAt(l); ValueTriple vt=new ValueTriple(((Double)atom.getProperty("first shift")).floatValue(),0); ! vt.atoms.add(subData.getMolWithH().getAtomAt(l));; subData.getSignalstable().add(vt); } --- 1581,1588 ---- subData.setComment(files[i].getName()+"; "+mol.getProperty("Comment")); for(int l=0;l<mol.getAtomCount();l++){ ! if(mol.getAtom(l).getSymbol().equals(element)){ ! IAtom atom=mol.getAtom(l); ValueTriple vt=new ValueTriple(((Double)atom.getProperty("first shift")).floatValue(),0); ! vt.atoms.add(subData.getMolWithH().getAtom(l));; subData.getSignalstable().add(vt); } *************** *** 1670,1674 **** DBCondition solvent=spectrum.getMeasurementConditionWithName("Solvent",null); int protonclass=AtomUtils.getProtonClass(cdkmol, atomnumber, arf.findAllRings(cdkmol)); ! floats=AtomUtils.getDescriptorSet(temp, field,solvent, cdkmol, cdkmol.getAtomAt(atomnumber), AtomUtils.getAllRings(),protonclass); if(floats!=null){ if(first){ --- 1668,1672 ---- DBCondition solvent=spectrum.getMeasurementConditionWithName("Solvent",null); int protonclass=AtomUtils.getProtonClass(cdkmol, atomnumber, arf.findAllRings(cdkmol)); ! floats=AtomUtils.getDescriptorSet(temp, field,solvent, cdkmol, cdkmol.getAtom(atomnumber), AtomUtils.getAllRings(),protonclass); if(floats!=null){ if(first){ *************** *** 1778,1782 **** DBCondition solvent=spectrum.getMeasurementConditionWithName("Solvent",null); int protonclass=AtomUtils.getProtonClass(cdkmol, atomnumber, arf.findAllRings(cdkmol)); ! floats=AtomUtils.getDescriptorSet(temp, field,solvent, cdkmol, cdkmol.getAtomAt(atomnumber), AtomUtils.getAllRings(),protonclass); if(floats!=null){ StringBuffer sql=new StringBuffer("insert into DESCRIPTORS_ALL values("+((DBAtom)signal.getAtoms().get(h)).getAtomId()+","+signal.getSignalId()+","); --- 1776,1780 ---- DBCondition solvent=spectrum.getMeasurementConditionWithName("Solvent",null); int protonclass=AtomUtils.getProtonClass(cdkmol, atomnumber, arf.findAllRings(cdkmol)); ! floats=AtomUtils.getDescriptorSet(temp, field,solvent, cdkmol, cdkmol.getAtom(atomnumber), AtomUtils.getAllRings(),protonclass); if(floats!=null){ StringBuffer sql=new StringBuffer("insert into DESCRIPTORS_ALL values("+((DBAtom)signal.getAtoms().get(h)).getAtomId()+","+signal.getSignalId()+","); *************** *** 2036,2040 **** DBAtom[] dbatoms=mol.getAtomsAsArrayInMdlOrder(); for(int k=0;k<molWithH.getAtomCount();k++){ ! if(molWithH.getAtomAt(k).getFlag(CDKConstants.ISAROMATIC)) dbatoms[k].setIsAromatic(NmrshiftdbConstants.TRUE); else --- 2034,2038 ---- DBAtom[] dbatoms=mol.getAtomsAsArrayInMdlOrder(); for(int k=0;k<molWithH.getAtomCount();k++){ ! if(molWithH.getAtom(k).getFlag(CDKConstants.ISAROMATIC)) dbatoms[k].setIsAromatic(NmrshiftdbConstants.TRUE); else *************** *** 2044,2048 **** Vector bonds=mol.getBonds(); for(int k=0;k<molWithH.getBondCount();k++){ ! if(molWithH.getBondAt(k).getFlag(CDKConstants.ISAROMATIC)) ((DBBond)bonds.get(k)).setIsAromatic(NmrshiftdbConstants.TRUE); else --- 2042,2046 ---- Vector bonds=mol.getBonds(); for(int k=0;k<molWithH.getBondCount();k++){ ! if(molWithH.getBond(k).getFlag(CDKConstants.ISAROMATIC)) ((DBBond)bonds.get(k)).setIsAromatic(NmrshiftdbConstants.TRUE); else *************** *** 2365,2369 **** } for(int i=0;i<mol.getAtomCount();i++){ ! IAtom a=mol.getAtomAt(i); for(int k=1;k<7;k++){ if(a.getSymbol().equals("C")){ --- 2363,2367 ---- } for(int i=0;i<mol.getAtomCount();i++){ ! IAtom a=mol.getAtom(i); for(int k=1;k<7;k++){ if(a.getSymbol().equals("C")){ *************** *** 2404,2410 **** if(wishit && v.size()==0){ for(int i=0;i<mol.getAtomCount();i++){ ! IAtom a=mol.getAtomAt(i); ! a.setX2d(a.getX3d()); ! a.setY2d(a.getY3d()); a.setZ3d(0); } --- 2402,2408 ---- if(wishit && v.size()==0){ for(int i=0;i<mol.getAtomCount();i++){ ! IAtom a=mol.getAtom(i); ! a.setX2d(a.getPoint3d().x); ! a.setY2d(a.getPoint3d().y); a.setZ3d(0); } *************** *** 2579,2586 **** Vector signalstable = new Vector(); for (int i = 0; i < molWithH.getAtomCount(); i++) { ! if (molWithH.getAtomAt(i).getSymbol().equals("C")) { ValueTriple vt = new ValueTriple(); ! vt.value1 = (float)((java.lang.Math.floor(((Double) mol.getAtomAt(i).getProperty(CDKConstants.NMRSHIFT_CARBON)).floatValue() * 100)) / 100); ! vt.atoms.add(molWithH.getAtomAt(i)); signalstable.add(vt); } --- 2577,2584 ---- Vector signalstable = new Vector(); for (int i = 0; i < molWithH.getAtomCount(); i++) { ! if (molWithH.getAtom(i).getSymbol().equals("C")) { ValueTriple vt = new ValueTriple(); ! vt.value1 = (float)((java.lang.Math.floor(((Double) mol.getAtom(i).getProperty(CDKConstants.NMRSHIFT_CARBON)).floatValue() * 100)) / 100); ! vt.atoms.add(molWithH.getAtom(i)); signalstable.add(vt); } *************** *** 2643,2650 **** signalstable.removeAllElements(); for (int i = 0; i < mol.getAtomCount(); i++) { ! IAtom parent = mol.getAtomAt(i); if (parent.getHydrogenCount() == 1) { ValueTriple vt = new ValueTriple(); ! IAtom[] children = molWithH.getConnectedAtoms(molWithH.getAtomAt(i)); for (int k = 0; k < children.length; k++) { if (children[k].getSymbol().equals("H")) { --- 2641,2648 ---- signalstable.removeAllElements(); for (int i = 0; i < mol.getAtomCount(); i++) { ! IAtom parent = mol.getAtom(i); if (parent.getHydrogenCount() == 1) { ValueTriple vt = new ValueTriple(); ! IAtom[] children = molWithH.getConnectedAtoms(molWithH.getAtom(i)); for (int k = 0; k < children.length; k++) { if (children[k].getSymbol().equals("H")) { *************** *** 2656,2660 **** } if (parent.getHydrogenCount() == 2) { ! IAtom[] children = molWithH.getConnectedAtoms(molWithH.getAtomAt(i)); String appendix = ".1"; for (int k = 0; k < children.length; k++) { --- 2654,2658 ---- } if (parent.getHydrogenCount() == 2) { ! IAtom[] children = molWithH.getConnectedAtoms(molWithH.getAtom(i)); String appendix = ".1"; for (int k = 0; k < children.length; k++) { *************** *** 2671,2675 **** } if (parent.getHydrogenCount() > 2) { ! IAtom[] children = molWithH.getConnectedAtoms(molWithH.getAtomAt(i)); double altogether = 0; ValueTriple vt = new ValueTriple(); --- 2669,2673 ---- } if (parent.getHydrogenCount() > 2) { ! IAtom[] children = molWithH.getConnectedAtoms(molWithH.getAtom(i)); double altogether = 0; ValueTriple vt = new ValueTriple(); *************** *** 2743,2747 **** DBMolecule dbmol=atom.getDBMolecule(); float shift=signal.getFirstShift().getValue(); ! double predicted=PredictionTool.generalPredict(dbmol.getAsCDKMolecule(1), dbmol.getAsCDKMolecule(1).getAtomAt(atom.getMdlNumber()), true, true, -1, -1, new StringBuffer(""), false, false, null, new HashMap(), -1, false, new StringBuffer(), 6, true, true)[1]; shift=shift-(float)predicted+5; //System.err.println("Korrektur "+shift+" bei "+signal.getFirstShift().getValue()); --- 2741,2745 ---- DBMolecule dbmol=atom.getDBMolecule(); float shift=signal.getFirstShift().getValue(); ! double predicted=PredictionTool.generalPredict(dbmol.getAsCDKMolecule(1), dbmol.getAsCDKMolecule(1).getAtom(atom.getMdlNumber()), true, true, -1, -1, new StringBuffer(""), false, false, null, new HashMap(), -1, false, new StringBuffer(), 6, true, true)[1]; shift=shift-(float)predicted+5; //System.err.println("Korrektur "+shift+" bei "+signal.getFirstShift().getValue()); *************** *** 2797,2801 **** DBMolecule dbmol=atom.getDBMolecule(); float shift=signal.getFirstShift().getValue(); ! double predictedhose=PredictionTool.generalPredict(dbmol.getAsCDKMolecule(1), dbmol.getAsCDKMolecule(1).getAtomAt(atom.getMdlNumber()), true, true, -1, -1, new StringBuffer(""), false, false, null, new HashMap(), -1, false, new StringBuffer(), 6, true, true)[1]; System.err.println("hose "+predictedhose+" korrektur "+predicted); predicted=predicted+predictedhose; --- 2795,2799 ---- DBMolecule dbmol=atom.getDBMolecule(); float shift=signal.getFirstShift().getValue(); ! double predictedhose=PredictionTool.generalPredict(dbmol.getAsCDKMolecule(1), dbmol.getAsCDKMolecule(1).getAtom(atom.getMdlNumber()), true, true, -1, -1, new StringBuffer(""), false, false, null, new HashMap(), -1, false, new StringBuffer(), 6, true, true)[1]; System.err.println("hose "+predictedhose+" korrektur "+predicted); predicted=predicted+predictedhose; *************** *** 2860,2866 **** IMolecule cdkmol=mol.getAsCDKMolecule(1); for(int l=0;l<cdkmol.getAtomCount();l++){ ! if(cdkmol.getAtomAt(l).getSymbol().equals("H") && mol.getAtomsAsArrayInMdlOrder()[l].getDBSignalsBySpectrumType("1H").size()>0 && cdkmol.getConnectedAtoms(cdkmol.getAtomAt(l))[0].getSymbol().equals("C")){ try{ ! double predicted=PredictionTool.generalPredict(cdkmol, cdkmol.getAtomAt(l), true, true, startmol, endmol, new StringBuffer(""), false, false, null, new HashMap(), -1, false, new StringBuffer(), 6, true, true)[1]; double real=((DBSignal)mol.getAtomsAsArrayInMdlOrder()[l].getDBSignalsBySpectrumType("1H").get(0)).getFirstShift().getValue(); errors[i]+=(predicted-real)*(predicted-real); --- 2858,2864 ---- IMolecule cdkmol=mol.getAsCDKMolecule(1); for(int l=0;l<cdkmol.getAtomCount();l++){ ! if(cdkmol.getAtom(l).getSymbol().equals("H") && mol.getAtomsAsArrayInMdlOrder()[l].getDBSignalsBySpectrumType("1H").size()>0 && cdkmol.getConnectedAtoms(cdkmol.getAtom(l))[0].getSymbol().equals("C")){ try{ ! double predicted=PredictionTool.generalPredict(cdkmol, cdkmol.getAtom(l), true, true, startmol, endmol, new StringBuffer(""), false, false, null, new HashMap(), -1, false, new StringBuffer(), 6, true, true)[1]; double real=((DBSignal)mol.getAtomsAsArrayInMdlOrder()[l].getDBSignalsBySpectrumType("1H").get(0)).getFirstShift().getValue(); errors[i]+=(predicted-real)*(predicted-real); *************** *** 2977,2988 **** for(int k=0;k<mol4ring.getAtomCount();k++){ AnyOrderQueryBond q=new AnyOrderQueryBond(); ! q.setAtoms(mol4ring.getBondAt(k).getAtoms()); ! mol4ring.setElectronContainerAt(k,q); } QueryAtomContainer mol3ring=QueryAtomContainerCreator.createBasicQueryContainer(mol3ringc); for(int k=0;k<mol3ring.getAtomCount();k++){ AnyOrderQueryBond q=new AnyOrderQueryBond(); ! q.setAtoms(mol3ring.getBondAt(k).getAtoms()); ! mol3ring.setElectronContainerAt(k,q); } int rightmapping=1; --- 2975,2986 ---- for(int k=0;k<mol4ring.getAtomCount();k++){ AnyOrderQueryBond q=new AnyOrderQueryBond(); ! q.setAtoms(mol4ring.getBond(k).getAtoms()); ! mol4ring.setElectronContainer(k,q); } QueryAtomContainer mol3ring=QueryAtomContainerCreator.createBasicQueryContainer(mol3ringc); for(int k=0;k<mol3ring.getAtomCount();k++){ AnyOrderQueryBond q=new AnyOrderQueryBond(); ! q.setAtoms(mol3ring.getBond(k).getAtoms()); ! mol3ring.setElectronContainer(k,q); } int rightmapping=1; *************** *** 2995,3004 **** IAtom leftn=null; for(int k=0;k<sd.getMolWithH().getAtomCount();k++){ ! if(sd.getMolWithH().getAtomAt(k).getSymbol().equals("N")){ if(leftn==null){ ! leftn=sd.getMolWithH().getAtomAt(k); }else{ ! if(leftn.getX2d()>sd.getMolWithH().getAtomAt(k).getX2d()) ! leftn=sd.getMolWithH().getAtomAt(k); } } --- 2993,3002 ---- IAtom leftn=null; for(int k=0;k<sd.getMolWithH().getAtomCount();k++){ ! if(sd.getMolWithH().getAtom(k).getSymbol().equals("N")){ if(leftn==null){ ! leftn=sd.getMolWithH().getAtom(k); }else{ ! if(leftn.getPoint2d().x>sd.getMolWithH().getAtom(k).getPoint2d().x) ! leftn=sd.getMolWithH().getAtom(k); } } *************** *** 3048,3052 **** } if(Integer.parseInt(fn.substring(5))>0){ ! IAtom atom=sd.getMolWithH().getAtomAt(Integer.parseInt(fn.substring(5))-1); float shift=0; String mult=""; --- 3046,3050 ---- } if(Integer.parseInt(fn.substring(5))>0){ ! IAtom atom=sd.getMolWithH().getAtom(Integer.parseInt(fn.substring(5))-1); float shift=0; String mult=""; *************** *** 3083,3087 **** newatomnumber=((RMap)((Vector)l.get(rightmapping)).get(n)).getId1(); } ! ((ValueTriple)sd.getSignalstable().get(k)).atoms.add(sd.getMolWithH().getAtomAt(newatomnumber)); } } --- 3081,3085 ---- newatomnumber=((RMap)((Vector)l.get(rightmapping)).get(n)).getId1(); } ! ((ValueTriple)sd.getSignalstable().get(k)).atoms.add(sd.getMolWithH().getAtom(newatomnumber)); } } *************** *** 3098,3103 **** IRingSet sar=new AllRingsFinder().findAllRings(sd.getMolWithH()); for(int n=0;n<sd.getMolWithH().getAtomCount();n++){ ! if(sd.getMolWithH().getAtomAt(n).getSymbol().equals("C") && !sar.contains(sd.getMolWithH().getAtomAt(n))){ ! ((ValueTriple)sd.getSignalstable().get(unassigned)).atoms.add(sd.getMolWithH().getAtomAt(n)); break; } --- 3096,3101 ---- IRingSet sar=new AllRingsFinder().findAllRings(sd.getMolWithH()); for(int n=0;n<sd.getMolWithH().getAtomCount();n++){ ! if(sd.getMolWithH().getAtom(n).getSymbol().equals("C") && !sar.contains(sd.getMolWithH().getAtom(n))){ ! ((ValueTriple)sd.getSignalstable().get(unassigned)).atoms.add(sd.getMolWithH().getAtom(n)); break; } Index: NmrshiftdbServlet.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/NmrshiftdbServlet.java,v retrieving revision 1.91 retrieving revision 1.92 diff -C2 -r1.91 -r1.92 *** NmrshiftdbServlet.java 24 Aug 2006 12:00:24 -0000 1.91 --- NmrshiftdbServlet.java 28 Aug 2006 14:33:58 -0000 1.92 *************** *** 60,64 **** import org.openscience.cdk.interfaces.IMolecule; import org.openscience.cdk.io.RssWriter; - import org.openscience.nmrshiftdb.PredictionTool.ValueBean; import org.openscience.nmrshiftdb.om.DBCanonicalName; import org.openscience.nmrshiftdb.om.DBCanonicalNamePeer; --- 60,63 ---- Index: PredictionTool.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/PredictionTool.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** PredictionTool.java 14 Jul 2006 08:09:58 -0000 1.20 --- PredictionTool.java 28 Aug 2006 14:33:58 -0000 1.21 *************** *** 2,6 **** import java.io.BufferedReader; - import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException; --- 2,5 ---- *************** *** 8,17 **** import java.io.InputStreamReader; import java.text.DecimalFormat; - import java.util.ArrayList; import java.util.HashMap; - import java.util.Iterator; import java.util.List; import java.util.Map; - import java.util.Set; import java.util.StringTokenizer; --- 7,13 ---- *************** *** 29,33 **** import org.openscience.nmrshiftdb.om.DBMolecule; import org.openscience.nmrshiftdb.om.DBSpectrumPeer; - import org.openscience.nmrshiftdb.util.AtomUtils; import org.openscience.nmrshiftdb.util.GeneralUtils; --- 25,28 ---- *************** *** 88,97 **** new HydrogenAdder().addImplicitHydrogensToSatisfyValency(mol); for(int i=0;i<mol.getAtomCount();i++){ ! if(mol.getAtomAt(i).getHydrogenCount()<0) ! mol.getAtomAt(i).setHydrogenCount(0); } HueckelAromaticityDetector.detectAromaticity(mol, false); PredictionTool predictor = new PredictionTool(); ! double[] result = predictor.predict(mol, mol.getAtomAt(1)); System.err.println(result[0] + " " + result[1] + " " + result[2]); } --- 83,92 ---- new HydrogenAdder().addImplicitHydrogensToSatisfyValency(mol); for(int i=0;i<mol.getAtomCount();i++){ ! if(mol.getAtom(i).getHydrogenCount()<0) ! mol.getAtom(i).setHydrogenCount(0); } HueckelAromaticityDetector.detectAromaticity(mol, false); PredictionTool predictor = new PredictionTool(); ! double[] result = predictor.predict(mol, mol.getAtom(1)); System.err.println(result[0] + " " + result[1] + " " + result[2]); } |
|
From: Stefan K. <sh...@us...> - 2006-08-28 14:34:07
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/tests In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32127/src/java/org/openscience/nmrshiftdb/tests Modified Files: NMRShiftDBServicesTest.java Log Message: updated cdk Index: NMRShiftDBServicesTest.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/tests/NMRShiftDBServicesTest.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** NMRShiftDBServicesTest.java 22 Jun 2006 16:33:24 -0000 1.6 --- NMRShiftDBServicesTest.java 28 Aug 2006 14:33:58 -0000 1.7 *************** *** 5,9 **** import java.util.Vector; - import javax.xml.namespace.QName; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; --- 5,8 ---- |
|
From: Stefan K. <sh...@us...> - 2006-08-28 14:34:06
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32127/src/java/org/openscience/nmrshiftdb/webservices Modified Files: MyNmrshiftdbServices.java NMRShiftDB.java NMRShiftDBServiceBindingImpl.java Log Message: updated cdk Index: MyNmrshiftdbServices.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/MyNmrshiftdbServices.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -r1.35 -r1.36 *** MyNmrshiftdbServices.java 23 Nov 2005 10:28:36 -0000 1.35 --- MyNmrshiftdbServices.java 28 Aug 2006 14:33:58 -0000 1.36 *************** *** 66,71 **** DBSpectrumType type = DBSpectrumTypePeer.getByName(spectrumTypeName); for (int i = 0; i < mol.getAtomCount(); i++) { ! if (mol.getAtomAt(i).getSymbol().equals(type.getDBIsotope(1).getElementSymbol())) { ! returnValue.add(AtomUtils.predictRange(mol, mol.getAtomAt(i), false, true, null, new StringBuffer(), false, true, null, null, -1,true,null, true)); } } --- 66,71 ---- DBSpectrumType type = DBSpectrumTypePeer.getByName(spectrumTypeName); for (int i = 0; i < mol.getAtomCount(); i++) { ! if (mol.getAtom(i).getSymbol().equals(type.getDBIsotope(1).getElementSymbol())) { ! returnValue.add(AtomUtils.predictRange(mol, mol.getAtom(i), false, true, null, new StringBuffer(), false, true, null, null, -1,true,null, true)); } } Index: NMRShiftDB.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDB.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** NMRShiftDB.java 4 Jul 2006 13:38:55 -0000 1.3 --- NMRShiftDB.java 28 Aug 2006 14:33:58 -0000 1.4 *************** *** 1,6 **** package org.openscience.nmrshiftdb.webservices; - import java.rmi.RemoteException; - import org.w3c.dom.Document; --- 1,4 ---- Index: NMRShiftDBServiceBindingImpl.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDBServiceBindingImpl.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** NMRShiftDBServiceBindingImpl.java 28 Aug 2006 09:34:39 -0000 1.12 --- NMRShiftDBServiceBindingImpl.java 28 Aug 2006 14:33:58 -0000 1.13 *************** *** 9,13 **** import java.util.HashMap; import java.util.Properties; - import java.util.StringTokenizer; import java.util.Vector; --- 9,12 ---- *************** *** 83,89 **** spectrum.addPeakList(peakList); for(int i=0;i<mol.getAtomCount();i++){ ! if(spectype.equals("All") || dbspectype.getDBIsotope(1).getElementSymbol().equals(mol.getAtomAt(i).getSymbol())){ try{ ! double[] result=PredictionTool.generalPredict(mol,mol.getAtomAt(i),false,true,-1,-1,new StringBuffer(),false,false,null,new HashMap(),-1,true,new StringBuffer(),6,true,true); CMLPeak peak=new CMLPeak(); peak.setXMin(result[0]); --- 82,88 ---- spectrum.addPeakList(peakList); for(int i=0;i<mol.getAtomCount();i++){ ! if(spectype.equals("All") || dbspectype.getDBIsotope(1).getElementSymbol().equals(mol.getAtom(i).getSymbol())){ try{ ! double[] result=PredictionTool.generalPredict(mol,mol.getAtom(i),false,true,-1,-1,new StringBuffer(),false,false,null,new HashMap(),-1,true,new StringBuffer(),6,true,true); CMLPeak peak=new CMLPeak(); peak.setXMin(result[0]); *************** *** 92,96 **** peak.setXUnits("units:ppm"); peak.setId("p"+i); ! String[] atomrefs=new String[]{mol.getAtomAt(i).getID()}; peak.setAtomRefs(atomrefs); peakList.addPeak(peak); --- 91,95 ---- peak.setXUnits("units:ppm"); peak.setId("p"+i); ! String[] atomrefs=new String[]{mol.getAtom(i).getID()}; peak.setAtomRefs(atomrefs); peakList.addPeak(peak); *************** *** 169,175 **** subData.setMol(writer.toString(),false,false,true); for(int k=0;k<cmlmol.getAtomCount();k++){ ! subData.getMolWithH().getAtomAt(k).setID(cmlmol.getAtom(k).getId()); if(k<subData.getMolWithHCount().getAtomCount()) ! subData.getMolWithHCount().getAtomAt(k).setID(cmlmol.getAtom(k).getId()); } CMLElements<CMLPeak> peaks=spectrum.getPeakListElements().get(0).getPeakElements(); --- 168,174 ---- subData.setMol(writer.toString(),false,false,true); for(int k=0;k<cmlmol.getAtomCount();k++){ ! subData.getMolWithH().getAtom(k).setID(cmlmol.getAtom(k).getId()); if(k<subData.getMolWithHCount().getAtomCount()) ! subData.getMolWithHCount().getAtom(k).setID(cmlmol.getAtom(k).getId()); } CMLElements<CMLPeak> peaks=spectrum.getPeakListElements().get(0).getPeakElements(); |
|
From: Stefan K. <sh...@us...> - 2006-08-28 14:34:05
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/map In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32127/src/java/org/openscience/nmrshiftdb/om/map Modified Files: DBConditionTypeMapBuilder.java Log Message: updated cdk Index: DBConditionTypeMapBuilder.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/om/map/DBConditionTypeMapBuilder.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** DBConditionTypeMapBuilder.java 8 Jun 2006 12:22:45 -0000 1.8 --- DBConditionTypeMapBuilder.java 28 Aug 2006 14:33:58 -0000 1.9 *************** *** 1,10 **** package org.openscience.nmrshiftdb.om.map; - import java.util.*; - import java.math.*; - import org.apache.turbine.services.db.PoolBrokerService; import org.apache.turbine.services.db.TurbineDB; - import org.apache.turbine.util.db.map.MapBuilder; import org.apache.turbine.util.db.map.DatabaseMap; import org.apache.turbine.util.db.map.TableMap; --- 1,7 ---- package org.openscience.nmrshiftdb.om.map; import org.apache.turbine.services.db.TurbineDB; import org.apache.turbine.util.db.map.DatabaseMap; + import org.apache.turbine.util.db.map.MapBuilder; import org.apache.turbine.util.db.map.TableMap; |
|
From: Stefan K. <sh...@us...> - 2006-08-28 09:34:47
|
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4643/src/java/org/openscience/nmrshiftdb/webservices Modified Files: NMRShiftDBServiceBindingImpl.java Log Message: more work on web services Index: NMRShiftDBServiceBindingImpl.java =================================================================== RCS file: /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/webservices/NMRShiftDBServiceBindingImpl.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** NMRShiftDBServiceBindingImpl.java 25 Aug 2006 19:32:54 -0000 1.11 --- NMRShiftDBServiceBindingImpl.java 28 Aug 2006 09:34:39 -0000 1.12 *************** *** 189,193 **** if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Solvent")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").equals(".SOLVENTNAME")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; --- 189,193 ---- if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Solvent")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals("jcamp:.SOLVENTNAME")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; *************** *** 197,201 **** if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Temperature [K]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").equals("TEMPERATURE")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; --- 197,201 ---- if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Temperature [K]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals("jcamp:TEMPERATURE")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; *************** *** 205,209 **** if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Field Strength [MHz]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").equals(".OBSERVE FREQUENCY")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; --- 205,209 ---- if(((DBConditionType) subData.getConditions().get(l)).getConditionName().equals("Field Strength [MHz]")){ for(int k=0;k<els.size();k++){ ! if(els.get(k).getAttribute("dictRef")!=null && els.get(k).getAttribute("dictRef").getValue().equals("jcamp:.OBSERVE FREQUENCY")){ ((DBConditionType) subData.getConditions().get(l)).setCurrentValue(((CMLScalar)els.get(k)).getValue()); break; *************** *** 217,236 **** Elements els=spectrum.getChildElements("entry","http://bibtexml.sf.net/"); for(int k=0;k<els.size();k++){ - Element el=els.get(k).getChildElements().get(0); DBLiterature lit=null; ! if(el.getValue().equals("article")){ ! lit=new DBLiterature(NmrshiftdbConstants.JOURNAL_ARTICLE); ! lit.setAuthor(el.getChildElements("author","http://bibtexml.sf.net/").get(0).getValue()); ! lit.setTitle(el.getChildElements("title","http://bibtexml.sf.net/").get(0).getValue()); ! lit.journaltitle=el.getChildElements("journal","http://bibtexml.sf.net/").get(0).getValue(); ! lit.year=Integer.parseInt(el.getChildElements("year","http://bibtexml.sf.net/").get(0).getValue()); ! lit.volume=Integer.parseInt(el.getChildElements("volume","http://bibtexml.sf.net/").get(0).getValue()); ! String pages=el.getChildElements("author","http://bibtexml.sf.net/").get(0).getValue(); ! StringTokenizer pagestokenizer=new StringTokenizer(pages,"-"); ! lit.from=Integer.parseInt(pagestokenizer.nextToken()); ! lit.to=Integer.parseInt(pagestokenizer.nextToken()); ! //TODO consistrency checks? } //TODO other types } subData.save(user.getUserId(),"false","bioclipse", new Date(),null,Integer.parseInt(GeneralUtils.getNmrshiftdbProperty("hosecode.spheres")), false); --- 217,252 ---- Elements els=spectrum.getChildElements("entry","http://bibtexml.sf.net/"); for(int k=0;k<els.size();k++){ DBLiterature lit=null; ! for(int m=0;m<els.get(k).getChildElements().size();m++){ ! Element el=els.get(k).getChildElements().get(m); ! if(el.getLocalName().equals("article")){ ! lit=new DBLiterature(NmrshiftdbConstants.JOURNAL_ARTICLE); ! lit.setAuthor(el.getChildElements("author","http://bibtexml.sf.net/").get(0).getValue()); ! lit.setTitle(el.getChildElements("title","http://bibtexml.sf.net/").get(0).getValue()); ! lit.journaltitle=el.getChildElements("journal","http://bibtexml.sf.net/").get(0).getValue(); ! lit.year=Integer.parseInt(el.getChildElements("year","http://bibtexml.sf.net/").get(0).getValue()); ! lit.volume=Integer.parseInt(el.getChildElements("volume","http://bibtexml.sf.net/").get(0).getValue()); ! String pages=el.getChildElements("pages","http://bibtexml.sf.net/").get(0).getValue(); ! StringBuffer sb1=new StringBuffer(); ! StringBuffer sb2=new StringBuffer(); ! boolean first=true; ! for(int o=0;o<pages.length();o++){ ! if(first && Character.isDigit(pages.charAt(o))){ ! sb1.append(pages.charAt(o)); ! }else if(first && !Character.isDigit(pages.charAt(o))){ ! first=false; ! }else{ ! sb2.append(pages.charAt(o)); ! } ! } ! lit.from=Integer.parseInt(sb1.toString()); ! lit.to=Integer.parseInt(sb2.toString()); ! //TODO consistrency checks? ! } } //TODO other types + if(lit!=null){ + subData.getLiterature().add(lit); + } } subData.save(user.getUserId(),"false","bioclipse", new Date(),null,Integer.parseInt(GeneralUtils.getNmrshiftdbProperty("hosecode.spheres")), false); *************** *** 253,259 **** for(int i=0; i<elements.size(); i++) { Element elem = elements.get(i); ! elem.setNamespaceURI(CMLUtil.CML_NS); ! if (elem.getChildCount() != 0) { ! namespaceThemAll(elem.getChildElements()); } } --- 269,277 ---- for(int i=0; i<elements.size(); i++) { Element elem = elements.get(i); ! if(!elem.getLocalName().equals("entry")){ ! elem.setNamespaceURI(CMLUtil.CML_NS); ! if (elem.getChildCount() != 0) { ! namespaceThemAll(elem.getChildElements()); ! } } } |